public final class IntFacetResultsHandler extends DepthOneFacetResultsHandler
DepthOneFacetResultsHandler which fills the categories values from
FacetArrays.getIntArray().facetArrays, facetRequest, taxonomyReader| Constructor and Description |
|---|
IntFacetResultsHandler(TaxonomyReader taxonomyReader,
FacetRequest facetRequest,
FacetArrays facetArrays) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addSiblings(int ordinal,
int[] siblings,
ArrayList<FacetResultNode> nodes)
Add the siblings of
ordinal to the given list. |
protected int |
addSiblings(int ordinal,
int[] siblings,
PriorityQueue<FacetResultNode> pq)
Add the siblings of
ordinal to the given PriorityQueue. |
protected double |
valueOf(int ordinal)
Returnt the value of the requested ordinal.
|
computepublic IntFacetResultsHandler(TaxonomyReader taxonomyReader, FacetRequest facetRequest, FacetArrays facetArrays)
protected final double valueOf(int ordinal)
DepthOneFacetResultsHandlervalueOf in class DepthOneFacetResultsHandlerprotected final int addSiblings(int ordinal,
int[] siblings,
PriorityQueue<FacetResultNode> pq)
DepthOneFacetResultsHandlerordinal to the given PriorityQueue. The
given PriorityQueue is already filled with sentinel objects, so
implementations are encouraged to use PriorityQueue.top() and
PriorityQueue.updateTop() for best performance. Returns the total
number of siblings.addSiblings in class DepthOneFacetResultsHandlerprotected final void addSiblings(int ordinal,
int[] siblings,
ArrayList<FacetResultNode> nodes)
throws IOException
DepthOneFacetResultsHandlerordinal to the given list. This is called
whenever the number of results is too high (> taxonomy size), instead of
adding them to a PriorityQueue.addSiblings in class DepthOneFacetResultsHandlerIOExceptionCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.