- Enclosing interface:
BlockLoader
public static interface BlockLoader.Docs
A list of documents to load. Documents are always in non-decreasing order.
-
Method Summary
Modifier and TypeMethodDescriptionintcount()intget(int i) booleanCan this vector reference duplicate documents? SomeBlockLoaders will run more slowly if this istrue.
-
Method Details
-
count
int count() -
get
int get(int i) -
mayContainDuplicates
boolean mayContainDuplicates()Can this vector reference duplicate documents? SomeBlockLoaders will run more slowly if this istrue. These BlockLoaders will return incorrect results if there are duplicates and this isfalse. This exists because of a hierarchy of speeds:-
We can better optimize some
BlockLoaders when they receive BlockLoader.Docss that don't contain duplicates. - It's rare that we want to load from duplicate doc ids. We don't need to spend that much time optimizing it.
- We sometimes really want to load from duplicate doc ids to minimize total amount of loading we have to do in fairly specific cases like resolving dimension values after time series aggregations.
-
We can better optimize some
-