public class FacetResultNode extends Object
ordinal
as well as label. You are not expected to modify those values.| Modifier and Type | Field and Description |
|---|---|
static List<FacetResultNode> |
EMPTY_SUB_RESULTS |
CategoryPath |
label
The
label of this result. |
int |
ordinal
The category ordinal of this node.
|
List<FacetResultNode> |
subResults
The sub-results of this result.
|
double |
value
The value of this result.
|
| Constructor and Description |
|---|
FacetResultNode(int ordinal,
double value) |
public static final List<FacetResultNode> EMPTY_SUB_RESULTS
public int ordinal
public CategoryPath label
label of this result. May be null if not
computed, in which case use TaxonomyReader.getPath(int) to label
it.
NOTE: by default, all nodes are labeled. Only when
FacetRequest.getNumLabel() <
FacetRequest.numResults there will be unlabeled nodes.
public double value
FacetRequest used (e.g. in case of CountFacetRequest it is
int).public List<FacetResultNode> subResults
FacetRequest.getResultMode() is
FacetRequest.ResultMode.PER_NODE_IN_TREE, every sub result denotes an immediate
child of this node. Otherwise, it is a descendant of any level.
NOTE: this member should not be null. To denote that a
result does not have sub results, set it to EMPTY_SUB_RESULTS (or
don't modify it).
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.