Interface MemtableOrdering
- All Known Implementing Classes:
MemoryIndex,MemtableIndex,TrieMemoryIndex,VectorMemoryIndex
public interface MemtableOrdering
Analogue of
SegmentOrdering, but for memtables.-
Method Summary
Modifier and TypeMethodDescriptionorderBy(QueryContext queryContext, Expression orderer, AbstractBounds<PartitionPosition> keyRange) Order the index based on the given orderer (expression).orderResultsBy(QueryContext context, List<PrimaryKey> results, Expression orderer) Order the given list ofPrimaryKeyresults corresponding to the given orderer.
-
Method Details
-
orderBy
CloseableIterator<PrimaryKeyWithScore> orderBy(QueryContext queryContext, Expression orderer, AbstractBounds<PartitionPosition> keyRange) Order the index based on the given orderer (expression).- Parameters:
queryContext- - the query contextorderer- - the expression to order bykeyRange- - the key range to search- Returns:
- an iterator over the results in score order.
-
orderResultsBy
CloseableIterator<PrimaryKeyWithScore> orderResultsBy(QueryContext context, List<PrimaryKey> results, Expression orderer) Order the given list ofPrimaryKeyresults corresponding to the given orderer. Returns an iterator over the results in score order. Assumes that the given spans the same rows as the implementing index's segment.
-