public abstract static class PrefixTreeFacetCounter.FacetVisitor extends Object
Constructor and Description |
---|
FacetVisitor() |
Modifier and Type | Method and Description |
---|---|
void |
startOfSegment()
Called at the start of the segment, if there is indexed data.
|
abstract void |
visit(Cell cell,
int count)
Called for cells with a leaf, or cells at the target facet level.
|
public void startOfSegment()
public abstract void visit(Cell cell, int count)
count
is greater than zero.
When an ancestor cell is given with non-zero count, the count can be considered to be added to all cells
below. You won't necessarily get a cell at level facetLevel
if the indexed data is courser (bigger).Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.