Package org.apache.lucene.store
Record Class MergeInfo
java.lang.Object
java.lang.Record
org.apache.lucene.store.MergeInfo
public record MergeInfo(int totalMaxDoc, long estimatedMergeBytes, boolean isExternal, int mergeMaxNumSegments)
extends Record
A MergeInfo provides information required for a MERGE context. It is used as part of an
IOContext in case of MERGE context.
These values are only estimates and are not the actual values.
-
Constructor Summary
ConstructorsConstructorDescriptionMergeInfo(int totalMaxDoc, long estimatedMergeBytes, boolean isExternal, int mergeMaxNumSegments) Creates an instance of aMergeInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.longReturns the value of theestimatedMergeBytesrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisExternalrecord component.intReturns the value of themergeMaxNumSegmentsrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetotalMaxDocrecord component.
-
Constructor Details
-
MergeInfo
public MergeInfo(int totalMaxDoc, long estimatedMergeBytes, boolean isExternal, int mergeMaxNumSegments) Creates an instance of aMergeInforecord class.- Parameters:
totalMaxDoc- the value for thetotalMaxDocrecord componentestimatedMergeBytes- the value for theestimatedMergeBytesrecord componentisExternal- the value for theisExternalrecord componentmergeMaxNumSegments- the value for themergeMaxNumSegmentsrecord 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 '=='. -
totalMaxDoc
public int totalMaxDoc()Returns the value of thetotalMaxDocrecord component.- Returns:
- the value of the
totalMaxDocrecord component
-
estimatedMergeBytes
public long estimatedMergeBytes()Returns the value of theestimatedMergeBytesrecord component.- Returns:
- the value of the
estimatedMergeBytesrecord component
-
isExternal
public boolean isExternal()Returns the value of theisExternalrecord component.- Returns:
- the value of the
isExternalrecord component
-
mergeMaxNumSegments
public int mergeMaxNumSegments()Returns the value of themergeMaxNumSegmentsrecord component.- Returns:
- the value of the
mergeMaxNumSegmentsrecord component
-