java.lang.Object
java.lang.Record
org.apache.lucene.store.FlushInfo
A FlushInfo provides information required for a FLUSH context. It is used as part of an
IOContext
in case of FLUSH context.
These values are only estimates and are not the actual values.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final long
The field for theestimatedSegmentSize
record component.private final int
The field for thenumDocs
record component. -
Constructor Summary
ConstructorsConstructorDescriptionFlushInfo
(int numDocs, long estimatedSegmentSize) Creates an instance of aFlushInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.long
Returns the value of theestimatedSegmentSize
record component.final int
hashCode()
Returns a hash code value for this object.int
numDocs()
Returns the value of thenumDocs
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
numDocs
private final int numDocsThe field for thenumDocs
record component. -
estimatedSegmentSize
private final long estimatedSegmentSizeThe field for theestimatedSegmentSize
record component.
-
-
Constructor Details
-
FlushInfo
public FlushInfo(int numDocs, long estimatedSegmentSize) Creates an instance of aFlushInfo
record class.- Parameters:
numDocs
- the value for thenumDocs
record componentestimatedSegmentSize
- the value for theestimatedSegmentSize
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with '=='. -
numDocs
public int numDocs()Returns the value of thenumDocs
record component.- Returns:
- the value of the
numDocs
record component
-
estimatedSegmentSize
public long estimatedSegmentSize()Returns the value of theestimatedSegmentSize
record component.- Returns:
- the value of the
estimatedSegmentSize
record component
-