public class BlockJoinComparatorSource extends FieldComparatorSource
Note that this class is intended to used with SortingMergePolicy,
and for other purposes has some limitations:
IndexSearcher.searchAfter
| Modifier and Type | Field and Description |
|---|---|
(package private) Sort |
childSort |
(package private) Query |
parentsFilter |
(package private) Sort |
parentSort |
| Constructor and Description |
|---|
BlockJoinComparatorSource(Query parentsFilter,
Sort parentSort)
Create a new BlockJoinComparatorSource, sorting only blocks of documents
with
parentSort and not reordering children with a block. |
BlockJoinComparatorSource(Query 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<java.lang.Integer> |
newComparator(java.lang.String fieldname,
int numHits,
int sortPos,
boolean reversed)
Creates a comparator for the field in the given index.
|
java.lang.String |
toString() |
final Query parentsFilter
final Sort parentSort
final Sort childSort
public BlockJoinComparatorSource(Query parentsFilter, Sort parentSort)
parentSort and not reordering children with a block.parentsFilter - Filter identifying parent documentsparentSort - Sort for parent documentspublic BlockJoinComparatorSource(Query parentsFilter, Sort parentSort, Sort childSort)
parentsFilter - Filter identifying parent documentsparentSort - Sort for parent documentschildSort - Sort for child documents in the same blockpublic FieldComparator<java.lang.Integer> newComparator(java.lang.String fieldname, int numHits, int sortPos, boolean reversed) throws java.io.IOException
FieldComparatorSourcenewComparator in class FieldComparatorSourcefieldname - Name of the field to create comparator for.java.io.IOException - If an error occurs reading the index.public java.lang.String toString()
toString in class java.lang.Object