- All Implemented Interfaces:
- org.neo4j.collection.primitive.PrimitiveLongIterator, DocValuesAccess
- Enclosing class:
- DocValuesCollector
public static class DocValuesCollector.LongValuesIterator
extends ValuesIterator
Iterates over all per-segment DocValuesCollector.MatchingDocs. Supports two kinds of lookups.
One, iterate over all long values of the given field (constructor argument).
Two, lookup a value for the current doc in a sidecar NumericDocValues field.
That is, this iterator has a main field, that drives the iteration and allow for lookups
in other, secondary fields based on the current document of the main iteration.
Lookups from this class are not thread-safe. Races can happen when the segment barrier
is crossed; one thread might think it is reading from one segment while another thread has
already advanced this Iterator to the next segment, having raced the first thread.