Package org.elasticsearch.search.sort
Interface BucketedSort.ExtraData
- Enclosing class:
- BucketedSort
public static interface BucketedSort.ExtraData
Callbacks for storing extra data along with competitive sorts.
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
BucketedSort.ExtraData.Loader
-
Method Summary
Modifier and Type Method Description BucketedSort.ExtraData.Loader
loader(org.apache.lucene.index.LeafReaderContext ctx)
Prepare to load extra data from a leaf.void
swap(long lhs, long rhs)
Swap the position of two bits of extra data.
-
Method Details
-
swap
void swap(long lhs, long rhs)Swap the position of two bits of extra data.Both parameters will have previously been loaded by
BucketedSort.ExtraData.Loader.loadFromDoc(long, int)
so the implementer shouldn't need to grow the underlying storage to implement this. -
loader
BucketedSort.ExtraData.Loader loader(org.apache.lucene.index.LeafReaderContext ctx) throws java.io.IOExceptionPrepare to load extra data from a leaf.- Throws:
java.io.IOException
-