public class AssociationFloatSumFacetRequest extends FacetRequest
FacetRequest.ResultMode, FacetRequest.SortBy, FacetRequest.SortOrderDEFAULT_DEPTH, DEFAULT_RESULT_MODE, DEFAULT_SORT_BY| Constructor and Description |
|---|
AssociationFloatSumFacetRequest(CategoryPath path,
int num)
Create a float association facet request for a given node in the
taxonomy.
|
| Modifier and Type | Method and Description |
|---|---|
Aggregator |
createAggregator(boolean useComplements,
FacetArrays arrays,
IndexReader reader,
TaxonomyReader taxonomy)
Create an aggregator for this facet request.
|
double |
getValueOf(FacetArrays arrays,
int ordinal)
Return the value of a category used for facets computations for this
request.
|
boolean |
requireDocumentScore()
Indicates whether the results of this request depends on each result document's score
|
boolean |
supportsComplements()
Indicates whether this facet request is eligible for applying the complements optimization.
|
clone, createCategoryListIterator, createFacetResultsHandler, equals, getCategoryPath, getDepth, getNumLabel, getNumResults, getResultMode, getSortBy, getSortOrder, hashCode, setDepth, setNumLabel, setResultMode, setSortBy, setSortOrder, toStringpublic AssociationFloatSumFacetRequest(CategoryPath path, int num)
public Aggregator createAggregator(boolean useComplements, FacetArrays arrays, IndexReader reader, TaxonomyReader taxonomy) throws IOException
FacetRequestcreateAggregator in class FacetRequestuseComplements - whether the complements optimization is being used for current
computation.arrays - provider for facet arrays in use for current computation.reader - index reader in effect.taxonomy - reader of taxonomy in effect.IOExceptionpublic double getValueOf(FacetArrays arrays, int ordinal)
FacetRequestgetValueOf in class FacetRequestarrays - provider for facet arrays in use for current computation.ordinal - an index into the count arrays now in effect in
arrays. E.g., for ordinal number n, with
partition, of size partitionSize, now covering n,
getValueOf would be invoked with idx
being n % partitionSize.public boolean supportsComplements()
FacetRequestsupportsComplements in class FacetRequestpublic boolean requireDocumentScore()
FacetRequestrequireDocumentScore in class FacetRequest