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)
Creates a comparator for the field in the given index.
|
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
FieldComparatorSource
newComparator
in class FieldComparatorSource
fieldname
- Name of the field to create comparator for.IOException
- If an error occurs reading the index.Copyright © 2000–2015 The Apache Software Foundation. All rights reserved.