|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.facet.search.FacetResult
public class FacetResult
Result of faceted search.
Constructor Summary | |
---|---|
FacetResult(FacetRequest facetRequest,
FacetResultNode rootNode,
int numValidDescendants)
|
Method Summary | |
---|---|
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. |
static List<FacetResult> |
mergeHierarchies(List<FacetResult> results,
TaxonomyReader taxoReader,
Map<String,FacetArrays> dimArrays)
A utility for merging multiple FacetResult of the same
(hierarchical) dimension into a single FacetResult , to reconstruct
the hierarchy. |
String |
toString()
|
String |
toString(String prefix)
String representation of this facet result. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FacetResult(FacetRequest facetRequest, FacetResultNode rootNode, int numValidDescendants)
Method Detail |
---|
public static List<FacetResult> mergeHierarchies(List<FacetResult> results, TaxonomyReader taxoReader, Map<String,FacetArrays> dimArrays) throws IOException
FacetResult
of the same
(hierarchical) dimension into a single FacetResult
, to reconstruct
the hierarchy. The results are merged according to the following rules:
CategoryPath
), they are merged.
FacetArrays
).
NOTE: the returned results are not guaranteed to be in the same order of the input ones.
results
- the results to mergetaxoReader
- the TaxonomyReader
to use when creating missing ancestor
nodesdimArrays
- a mapping from a dimension to the respective FacetArrays
from which to pull the nodes values
IOException
public final FacetResultNode getFacetResultNode()
facet request
.
getFacetRequest()
,
FacetRequest.categoryPath
public final int getNumValidDescendants()
root facet result
node
, up till the requested depth.
public final FacetRequest getFacetRequest()
public String toString(String prefix)
prefix
- prefix for each result linetoString()
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |