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 int
The field for thecount
record component.private final DocIdSetIterator
The field for theit
record component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
IteratorAndCount
(DocIdSetIterator it, int count) Creates an instance of aIteratorAndCount
record class. -
Method Summary
Modifier and TypeMethodDescription(package private) static IndexSortSortedNumericDocValuesRangeQuery.IteratorAndCount
all
(int maxDoc) int
count()
Returns the value of thecount
record component.(package private) static IndexSortSortedNumericDocValuesRangeQuery.IteratorAndCount
denseRange
(int minDoc, int maxDoc) (package private) static IndexSortSortedNumericDocValuesRangeQuery.IteratorAndCount
empty()
final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.it()
Returns the value of theit
record component.(package private) static IndexSortSortedNumericDocValuesRangeQuery.IteratorAndCount
sparseRange
(int minDoc, int maxDoc, DocIdSetIterator delegate) final String
toString()
Returns a string representation of this record class.
-
Field Details
-
it
The field for theit
record component. -
count
private final int countThe field for thecount
record component.
-
-
Constructor Details
-
IteratorAndCount
Creates an instance of aIteratorAndCount
record class.- Parameters:
it
- the value for theit
record componentcount
- the value for thecount
record 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 theit
record component.- Returns:
- the value of the
it
record component
-
count
public int count()Returns the value of thecount
record component.- Returns:
- the value of the
count
record component
-