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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final long
The field for theestimatedMergeBytes
record component.private final boolean
The field for theisExternal
record component.private final int
The field for themergeMaxNumSegments
record component.private final int
The field for thetotalMaxDoc
record component. -
Constructor Summary
ConstructorsConstructorDescriptionMergeInfo
(int totalMaxDoc, long estimatedMergeBytes, boolean isExternal, int mergeMaxNumSegments) Creates an instance of aMergeInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.long
Returns the value of theestimatedMergeBytes
record component.final int
hashCode()
Returns a hash code value for this object.boolean
Returns the value of theisExternal
record component.int
Returns the value of themergeMaxNumSegments
record component.final String
toString()
Returns a string representation of this record class.int
Returns the value of thetotalMaxDoc
record component.
-
Field Details
-
totalMaxDoc
private final int totalMaxDocThe field for thetotalMaxDoc
record component. -
estimatedMergeBytes
private final long estimatedMergeBytesThe field for theestimatedMergeBytes
record component. -
isExternal
private final boolean isExternalThe field for theisExternal
record component. -
mergeMaxNumSegments
private final int mergeMaxNumSegmentsThe field for themergeMaxNumSegments
record component.
-
-
Constructor Details
-
MergeInfo
public MergeInfo(int totalMaxDoc, long estimatedMergeBytes, boolean isExternal, int mergeMaxNumSegments) Creates an instance of aMergeInfo
record class.- Parameters:
totalMaxDoc
- the value for thetotalMaxDoc
record componentestimatedMergeBytes
- the value for theestimatedMergeBytes
record componentisExternal
- the value for theisExternal
record componentmergeMaxNumSegments
- the value for themergeMaxNumSegments
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 '=='. -
totalMaxDoc
public int totalMaxDoc()Returns the value of thetotalMaxDoc
record component.- Returns:
- the value of the
totalMaxDoc
record component
-
estimatedMergeBytes
public long estimatedMergeBytes()Returns the value of theestimatedMergeBytes
record component.- Returns:
- the value of the
estimatedMergeBytes
record component
-
isExternal
public boolean isExternal()Returns the value of theisExternal
record component.- Returns:
- the value of the
isExternal
record component
-
mergeMaxNumSegments
public int mergeMaxNumSegments()Returns the value of themergeMaxNumSegments
record component.- Returns:
- the value of the
mergeMaxNumSegments
record component
-