public class AssociationIntSumFacetRequest extends FacetRequest
FacetRequest
for weighting facets according to their integer
association by summing the association values.FacetRequest.FacetArraysSource, FacetRequest.ResultMode, FacetRequest.SortOrder
categoryPath, DEFAULT_DEPTH, DEFAULT_RESULT_MODE, numResults
Constructor and Description |
---|
AssociationIntSumFacetRequest(CategoryPath path,
int num)
Create an integer 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 AssociationIntSumFacetRequest(CategoryPath path, int num)
public FacetRequest.FacetArraysSource getFacetArraysSource()
FacetRequest
FacetRequest.FacetArraysSource
this FacetRequest
uses in
FacetRequest.getValueOf(FacetArrays, int)
.getFacetArraysSource
in class FacetRequest
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.Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.