public class BlockJoinComparatorSource extends FieldComparatorSource
Note that this class is intended to used with SortingMergePolicy,
and for other purposes has some limitations:
IndexSearcher.searchAfter
| Constructor and Description |
|---|
BlockJoinComparatorSource(Filter parentsFilter,
Sort parentSort)
Create a new BlockJoinComparatorSource, sorting only blocks of documents
with
parentSort and not reordering children with a block. |
BlockJoinComparatorSource(Filter parentsFilter,
Sort parentSort,
Sort childSort)
Create a new BlockJoinComparatorSource, specifying the sort order for both
blocks of documents and children within a block.
|
| Modifier and Type | Method and Description |
|---|---|
FieldComparator<Integer> |
newComparator(String fieldname,
int numHits,
int sortPos,
boolean reversed) |
String |
toString() |
public BlockJoinComparatorSource(Filter parentsFilter, Sort parentSort)
parentSort and not reordering children with a block.parentsFilter - Filter identifying parent documentsparentSort - Sort for parent documentspublic BlockJoinComparatorSource(Filter parentsFilter, Sort parentSort, Sort childSort)
parentsFilter - Filter identifying parent documentsparentSort - Sort for parent documentschildSort - Sort for child documents in the same blockpublic FieldComparator<Integer> newComparator(String fieldname, int numHits, int sortPos, boolean reversed) throws IOException
newComparator in class FieldComparatorSourceIOExceptionCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.