public class AssociationFloatSumFacetRequest extends FacetRequest
FacetRequest
for weighting facets according to their float
association by summing the association values.FacetRequest.FacetArraysSource, FacetRequest.ResultMode, FacetRequest.SortOrder
categoryPath, DEFAULT_DEPTH, DEFAULT_RESULT_MODE, numResults
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 |
---|---|
FacetRequest.FacetArraysSource |
getFacetArraysSource()
Returns the
FacetRequest.FacetArraysSource this FacetRequest uses in
FacetRequest.getValueOf(FacetArrays, int) . |
double |
getValueOf(FacetArrays arrays,
int ordinal)
Return the value of a category used for facets computations for this
request.
|
createAggregator, equals, getDepth, getNumLabel, getResultMode, getSortOrder, hashCode, setDepth, setNumLabel, setResultMode, setSortOrder, toString
public AssociationFloatSumFacetRequest(CategoryPath path, int num)
public double getValueOf(FacetArrays arrays, int ordinal)
FacetRequest
getValueOf
in class FacetRequest
arrays
- 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 FacetRequest.FacetArraysSource getFacetArraysSource()
FacetRequest
FacetRequest.FacetArraysSource
this FacetRequest
uses in
FacetRequest.getValueOf(FacetArrays, int)
.getFacetArraysSource
in class FacetRequest
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.