Package org.apache.lucene.store
Record Class FlushInfo
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.
-
Constructor Summary
ConstructorsConstructorDescriptionFlushInfo(int numDocs, long estimatedSegmentSize) Creates an instance of aFlushInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.longReturns the value of theestimatedSegmentSizerecord component.final inthashCode()Returns a hash code value for this object.intnumDocs()Returns the value of thenumDocsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FlushInfo
public FlushInfo(int numDocs, long estimatedSegmentSize) Creates an instance of aFlushInforecord class.- Parameters:
numDocs- the value for thenumDocsrecord componentestimatedSegmentSize- the value for theestimatedSegmentSizerecord 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 thenumDocsrecord component.- Returns:
- the value of the
numDocsrecord component
-
estimatedSegmentSize
public long estimatedSegmentSize()Returns the value of theestimatedSegmentSizerecord component.- Returns:
- the value of the
estimatedSegmentSizerecord component
-