java.lang.Object
org.apache.lucene.facet.Facets
org.apache.lucene.facet.taxonomy.TaxonomyFacets
org.apache.lucene.facet.taxonomy.FloatTaxonomyFacets
- Direct Known Subclasses:
TaxonomyFacetFloatAssociations
Deprecated.
Base class for all taxonomy-based facets that aggregate to a per-ords float[].
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classDeprecated.An accumulator for a float aggregated value.Nested classes/interfaces inherited from class org.apache.lucene.facet.taxonomy.TaxonomyFacets
TaxonomyFacets.AggregatedValue, TaxonomyFacets.TopChildrenForPath -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final AssociationAggregationFunctionDeprecated.Aggregation function used for combining values.(package private) IntFloatHashMapDeprecated.Sparse ordinal values.protected float[]Deprecated.Per-ordinal value.Fields inherited from class org.apache.lucene.facet.taxonomy.TaxonomyFacets
config, counts, fc, indexFieldName, initialized, parents, sparseCounts, taxoReader, valueComparator -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFloatTaxonomyFacets(String indexFieldName, TaxonomyReader taxoReader, FacetsConfig config) Deprecated.Constructor that defaults the aggregation function toAssociationAggregationFunction.SUM.protectedFloatTaxonomyFacets(String indexFieldName, TaxonomyReader taxoReader, AssociationAggregationFunction aggregationFunction, FacetsConfig config, FacetsCollector fc) Deprecated.Constructor that uses the provided aggregation function. -
Method Summary
Modifier and TypeMethodDescriptionprotected NumberDeprecated.Apply an aggregation to the two values and return the result.protected NumbergetAggregationValue(int ordinal) Deprecated.Get the aggregation value for this ordinal.(package private) floatgetValue(int ordinal) Deprecated.Get the value associated with this ordinal.protected voidDeprecated.If not done already, initialize the data structures storing counts.protected TopOrdAndNumberQueuemakeTopOrdAndNumberQueue(int topN) Deprecated.Return aTopOrdAndNumberQueueof the appropriate type, i.e.protected NumberDeprecated.Return the value for a missing aggregation, i.e.protected TaxonomyFacets.AggregatedValueDeprecated.Initialize an accumulator.private floatrollup(int ord) Deprecated.protected voidsetIncomingValue(TopOrdAndNumberQueue.OrdAndValue incomingOrdAndValue, int ord) Deprecated.Set the value for aTopOrdAndNumberQueue.OrdAndValueto the one corresponding to the given ordinal.(package private) voidsetValue(int ordinal, float newValue) Deprecated.Set the value associated with this ordinal tonewValue.protected voidupdateValueFromRollup(int ordinal, int childOrdinal) Deprecated.Roll-up the aggregation values fromchildOrdinaltoordinal.Methods inherited from class org.apache.lucene.facet.taxonomy.TaxonomyFacets
childrenLoaded, getAllChildren, getAllDims, getChildren, getCount, getSiblings, getSpecificValue, getTopChildren, getTopChildrenForPath, getTopDims, hasValues, insertIntoQueue, rollup, setCount, siblingsLoaded, useHashTable, verifyDimMethods inherited from class org.apache.lucene.facet.Facets
validateTopN
-
Field Details
-
aggregationFunction
Deprecated.Aggregation function used for combining values. -
values
protected float[] valuesDeprecated.Per-ordinal value. -
sparseValues
IntFloatHashMap sparseValuesDeprecated.Sparse ordinal values.
-
-
Constructor Details
-
FloatTaxonomyFacets
protected FloatTaxonomyFacets(String indexFieldName, TaxonomyReader taxoReader, FacetsConfig config) throws IOException Deprecated.Constructor that defaults the aggregation function toAssociationAggregationFunction.SUM.- Throws:
IOException
-
FloatTaxonomyFacets
protected FloatTaxonomyFacets(String indexFieldName, TaxonomyReader taxoReader, AssociationAggregationFunction aggregationFunction, FacetsConfig config, FacetsCollector fc) throws IOException Deprecated.Constructor that uses the provided aggregation function.- Throws:
IOException
-
-
Method Details
-
initializeValueCounters
protected void initializeValueCounters()Deprecated.Description copied from class:TaxonomyFacetsIf not done already, initialize the data structures storing counts.- Overrides:
initializeValueCountersin classTaxonomyFacets
-
setValue
void setValue(int ordinal, float newValue) Deprecated.Set the value associated with this ordinal tonewValue. -
getValue
float getValue(int ordinal) Deprecated.Get the value associated with this ordinal. -
getAggregationValue
Deprecated.Description copied from class:TaxonomyFacetsGet the aggregation value for this ordinal.- Overrides:
getAggregationValuein classTaxonomyFacets
-
aggregate
Deprecated.Description copied from class:TaxonomyFacetsApply an aggregation to the two values and return the result.- Overrides:
aggregatein classTaxonomyFacets
-
updateValueFromRollup
Deprecated.Description copied from class:TaxonomyFacetsRoll-up the aggregation values fromchildOrdinaltoordinal. Overrides should probably call this to update the counts. Overriding allows us to work with primitive types for the aggregation values, keeping aggregation efficient.- Overrides:
updateValueFromRollupin classTaxonomyFacets- Throws:
IOException
-
makeTopOrdAndNumberQueue
Deprecated.Description copied from class:TaxonomyFacetsReturn aTopOrdAndNumberQueueof the appropriate type, i.e. aTopOrdAndIntNumberQueueor aTopOrdAndFloatNumberQueue.- Overrides:
makeTopOrdAndNumberQueuein classTaxonomyFacets
-
missingAggregationValue
Deprecated.Description copied from class:TaxonomyFacetsReturn the value for a missing aggregation, i.e.-1or-1f.- Overrides:
missingAggregationValuein classTaxonomyFacets
-
rollup
Deprecated.- Throws:
IOException
-
setIncomingValue
Deprecated.Description copied from class:TaxonomyFacetsSet the value for aTopOrdAndNumberQueue.OrdAndValueto the one corresponding to the given ordinal.- Overrides:
setIncomingValuein classTaxonomyFacets
-
newAggregatedValue
Deprecated.Description copied from class:TaxonomyFacetsInitialize an accumulator.- Overrides:
newAggregatedValuein classTaxonomyFacets
-
Facetsimplementations. If your code is relying on this, please migrate necessary functionality down into your own class.