Module org.elasticsearch.compute
Package org.elasticsearch.compute.lucene
Record Class PartialLeafReaderContext
java.lang.Object
java.lang.Record
org.elasticsearch.compute.lucene.PartialLeafReaderContext
- Record Components:
leafReaderContext- the context to subsetminDoc- the first documentmaxDoc- one more than the last document
public record PartialLeafReaderContext(org.apache.lucene.index.LeafReaderContext leafReaderContext, int minDoc, int maxDoc)
extends Record
A subset of a
LeafReaderContext.-
Constructor Summary
ConstructorsConstructorDescriptionPartialLeafReaderContext(org.apache.lucene.index.LeafReaderContext leafReaderContext) PartialLeafReaderContext(org.apache.lucene.index.LeafReaderContext leafReaderContext, int minDoc, int maxDoc) Creates an instance of aPartialLeafReaderContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.org.apache.lucene.index.LeafReaderContextReturns the value of theleafReaderContextrecord component.intmaxDoc()Returns the value of themaxDocrecord component.intminDoc()Returns the value of theminDocrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PartialLeafReaderContext
public PartialLeafReaderContext(org.apache.lucene.index.LeafReaderContext leafReaderContext) -
PartialLeafReaderContext
public PartialLeafReaderContext(org.apache.lucene.index.LeafReaderContext leafReaderContext, int minDoc, int maxDoc) Creates an instance of aPartialLeafReaderContextrecord class.- Parameters:
leafReaderContext- the value for theleafReaderContextrecord componentminDoc- the value for theminDocrecord componentmaxDoc- the value for themaxDocrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
leafReaderContext
public org.apache.lucene.index.LeafReaderContext leafReaderContext()Returns the value of theleafReaderContextrecord component.- Returns:
- the value of the
leafReaderContextrecord component
-
minDoc
public int minDoc()Returns the value of theminDocrecord component.- Returns:
- the value of the
minDocrecord component
-
maxDoc
public int maxDoc()Returns the value of themaxDocrecord component.- Returns:
- the value of the
maxDocrecord component
-