Module org.apache.lucene.core
Package org.apache.lucene.search
Record Class IndexSortSortedNumericDocValuesRangeQuery.IteratorAndCount
java.lang.Object
java.lang.Record
org.apache.lucene.search.IndexSortSortedNumericDocValuesRangeQuery.IteratorAndCount
- Enclosing class:
IndexSortSortedNumericDocValuesRangeQuery
private static record IndexSortSortedNumericDocValuesRangeQuery.IteratorAndCount(DocIdSetIterator it, int count)
extends Record
Provides a
DocIdSetIterator along with an accurate count of documents provided by the
iterator (or -1 if an accurate count is unknown).-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thecountrecord component.private final DocIdSetIteratorThe field for theitrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateIteratorAndCount(DocIdSetIterator it, int count) Creates an instance of aIteratorAndCountrecord class. -
Method Summary
Modifier and TypeMethodDescription(package private) static IndexSortSortedNumericDocValuesRangeQuery.IteratorAndCountall(int maxDoc) intcount()Returns the value of thecountrecord component.(package private) static IndexSortSortedNumericDocValuesRangeQuery.IteratorAndCountdenseRange(int minDoc, int maxDoc) (package private) static IndexSortSortedNumericDocValuesRangeQuery.IteratorAndCountempty()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.it()Returns the value of theitrecord component.(package private) static IndexSortSortedNumericDocValuesRangeQuery.IteratorAndCountsparseRange(int minDoc, int maxDoc, DocIdSetIterator delegate) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
it
The field for theitrecord component. -
count
private final int countThe field for thecountrecord component.
-
-
Constructor Details
-
IteratorAndCount
Creates an instance of aIteratorAndCountrecord class.- Parameters:
it- the value for theitrecord componentcount- the value for thecountrecord component
-
-
Method Details
-
empty
-
all
-
denseRange
static IndexSortSortedNumericDocValuesRangeQuery.IteratorAndCount denseRange(int minDoc, int maxDoc) -
sparseRange
static IndexSortSortedNumericDocValuesRangeQuery.IteratorAndCount sparseRange(int minDoc, int maxDoc, DocIdSetIterator delegate) -
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 '=='. -
it
Returns the value of theitrecord component.- Returns:
- the value of the
itrecord component
-
count
public int count()Returns the value of thecountrecord component.- Returns:
- the value of the
countrecord component
-