public class FacetResult extends Object
Constructor and Description |
---|
FacetResult(FacetRequest facetRequest,
FacetResultNode rootNode,
int numValidDescendants) |
Modifier and Type | Method and Description |
---|---|
FacetRequest |
getFacetRequest()
Request for which this result was obtained.
|
FacetResultNode |
getFacetResultNode()
Facet result node matching the root of the
facet request . |
int |
getNumValidDescendants()
Number of descendants of
root facet result node ,
up till the requested depth, which are valid by the
results handler in effect . |
String |
toString() |
String |
toString(String prefix)
String representation of this facet result.
|
public FacetResult(FacetRequest facetRequest, FacetResultNode rootNode, int numValidDescendants)
public final FacetResultNode getFacetResultNode()
facet request
.public final int getNumValidDescendants()
root facet result node
,
up till the requested depth, which are valid by the
results handler in effect
. Typically -- have value != 0.
This number does not include the root node.getFacetRequest()
,
FacetRequest.getDepth()
public final FacetRequest getFacetRequest()
public String toString(String prefix)
prefix
- prefix for each result linetoString()