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.
|
compute
public IntFacetResultsHandler(TaxonomyReader taxonomyReader, FacetRequest facetRequest, FacetArrays facetArrays)
protected final double valueOf(int ordinal)
DepthOneFacetResultsHandler
valueOf
in class DepthOneFacetResultsHandler
protected final int addSiblings(int ordinal, int[] siblings, PriorityQueue<FacetResultNode> pq)
DepthOneFacetResultsHandler
ordinal
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 DepthOneFacetResultsHandler
protected final void addSiblings(int ordinal, int[] siblings, ArrayList<FacetResultNode> nodes) throws IOException
DepthOneFacetResultsHandler
ordinal
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 DepthOneFacetResultsHandler
IOException
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.