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.
-
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 IOExceptionPrepare to load extra data from a leaf.- Throws:
IOException
-