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. |
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.getFacetRequest(),
FacetRequest.categoryPathpublic final int getNumValidDescendants()
root facet result
node, up till the requested depth. 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()Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.