private class PointInSetQuery.SinglePointVisitor extends java.lang.Object implements PointValues.IntersectVisitor
| Modifier and Type | Field and Description |
|---|---|
private DocIdSetBuilder.BulkAdder |
adder |
private byte[] |
pointBytes |
private DocIdSetBuilder |
result |
| Constructor and Description |
|---|
SinglePointVisitor(DocIdSetBuilder result) |
| Modifier and Type | Method and Description |
|---|---|
PointValues.Relation |
compare(byte[] minPackedValue,
byte[] maxPackedValue)
Called for non-leaf cells to test how the cell relates to the query, to
determine how to further recurse down the tree.
|
void |
grow(int count)
Notifies the caller that this many documents are about to be visited
|
void |
setPoint(BytesRef point) |
void |
visit(int docID)
Called for all documents in a leaf cell that's fully contained by the query.
|
void |
visit(int docID,
byte[] packedValue)
Called for all documents in a leaf cell that crosses the query.
|
private final DocIdSetBuilder result
private final byte[] pointBytes
private DocIdSetBuilder.BulkAdder adder
public SinglePointVisitor(DocIdSetBuilder result)
public void setPoint(BytesRef point)
public void grow(int count)
PointValues.IntersectVisitorgrow in interface PointValues.IntersectVisitorpublic void visit(int docID)
PointValues.IntersectVisitorvisit in interface PointValues.IntersectVisitorpublic void visit(int docID,
byte[] packedValue)
PointValues.IntersectVisitorvisit in interface PointValues.IntersectVisitorpublic PointValues.Relation compare(byte[] minPackedValue, byte[] maxPackedValue)
PointValues.IntersectVisitorcompare in interface PointValues.IntersectVisitor