Module org.apache.lucene.facet
Package org.apache.lucene.facet.taxonomy
Class TaxonomyFacetIntAssociations
java.lang.Object
org.apache.lucene.facet.Facets
org.apache.lucene.facet.taxonomy.TaxonomyFacets
org.apache.lucene.facet.taxonomy.IntTaxonomyFacets
org.apache.lucene.facet.taxonomy.TaxonomyFacetIntAssociations
Aggregates int values previously indexed with
IntAssociationFacetField
, assuming the
default encoding. The aggregation function is defined by a provided AssociationAggregationFunction
.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.facet.taxonomy.IntTaxonomyFacets
IntTaxonomyFacets.IntAggregatedValue
Nested classes/interfaces inherited from class org.apache.lucene.facet.taxonomy.TaxonomyFacets
TaxonomyFacets.AggregatedValue, TaxonomyFacets.TopChildrenForPath
-
Field Summary
Fields inherited from class org.apache.lucene.facet.taxonomy.IntTaxonomyFacets
aggregationFunction, sparseValues, values
Fields inherited from class org.apache.lucene.facet.taxonomy.TaxonomyFacets
config, counts, fc, indexFieldName, initialized, parents, sparseCounts, taxoReader, valueComparator
-
Constructor Summary
ConstructorsConstructorDescriptionTaxonomyFacetIntAssociations
(String indexFieldName, TaxonomyReader taxoReader, FacetsConfig config, FacetsCollector fc, AssociationAggregationFunction aggregationFunction) CreateTaxonomyFacetIntAssociations
against the specified index field.TaxonomyFacetIntAssociations
(TaxonomyReader taxoReader, FacetsConfig config, FacetsCollector fc, AssociationAggregationFunction aggregationFunction) CreateTaxonomyFacetIntAssociations
against the default index field. -
Method Summary
Modifier and TypeMethodDescriptionprivate void
aggregateValues
(AssociationAggregationFunction aggregationFunction, List<FacetsCollector.MatchingDocs> matchingDocs) Methods inherited from class org.apache.lucene.facet.taxonomy.IntTaxonomyFacets
aggregate, getAggregationValue, getValue, initializeValueCounters, newAggregatedValue, setIncomingValue, setValue, updateValueFromRollup
Methods inherited from class org.apache.lucene.facet.taxonomy.TaxonomyFacets
childrenLoaded, getAllChildren, getAllDims, getChildren, getCount, getSiblings, getSpecificValue, getTopChildren, getTopChildrenForPath, getTopDims, hasValues, insertIntoQueue, makeTopOrdAndNumberQueue, missingAggregationValue, rollup, setCount, siblingsLoaded, verifyDim
Methods inherited from class org.apache.lucene.facet.Facets
validateTopN
-
Constructor Details
-
TaxonomyFacetIntAssociations
public TaxonomyFacetIntAssociations(TaxonomyReader taxoReader, FacetsConfig config, FacetsCollector fc, AssociationAggregationFunction aggregationFunction) throws IOException CreateTaxonomyFacetIntAssociations
against the default index field.- Throws:
IOException
-
TaxonomyFacetIntAssociations
public TaxonomyFacetIntAssociations(String indexFieldName, TaxonomyReader taxoReader, FacetsConfig config, FacetsCollector fc, AssociationAggregationFunction aggregationFunction) throws IOException CreateTaxonomyFacetIntAssociations
against the specified index field.- Throws:
IOException
-
-
Method Details
-
aggregateValues
private void aggregateValues(AssociationAggregationFunction aggregationFunction, List<FacetsCollector.MatchingDocs> matchingDocs) throws IOException - Throws:
IOException
-