Class SortedNumericStatsValues
- java.lang.Object
 - 
- org.apache.solr.handler.component.SortedNumericStatsValues
 
 
- 
- All Implemented Interfaces:
 StatsValues
public class SortedNumericStatsValues extends Object implements StatsValues
 
- 
- 
Constructor Summary
Constructors Constructor Description SortedNumericStatsValues(org.apache.solr.handler.component.StatsValuesFactory.NumericStatsValues nsv, StatsField field) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccumulate(int docId)Accumulate the value associated withdocID.voidaccumulate(org.apache.lucene.util.BytesRef value, int count)Accumulate the values based on the given valuevoidaccumulate(org.apache.solr.common.util.NamedList<?> stv)Accumulate the values based on those in the given NamedListvoidaddFacet(String facetName, Map<String,StatsValues> facetValues)Adds the facet statistics for the facet with the given namevoidaddMissing(int count)Updates the statistics when multiple documents are missing a valueorg.apache.solr.common.util.NamedList<?>getStatsValues()Translates the values into a NamedList representationvoidmissing()Updates the statistics when a document is missing a valuevoidsetNextReader(org.apache.lucene.index.LeafReaderContext ctx)Set the context forStatsValues.accumulate(int). 
 - 
 
- 
- 
Constructor Detail
- 
SortedNumericStatsValues
public SortedNumericStatsValues(org.apache.solr.handler.component.StatsValuesFactory.NumericStatsValues nsv, StatsField field) 
 - 
 
- 
Method Detail
- 
accumulate
public void accumulate(org.apache.solr.common.util.NamedList<?> stv)
Description copied from interface:StatsValuesAccumulate the values based on those in the given NamedList- Specified by:
 accumulatein interfaceStatsValues- Parameters:
 stv- NamedList whose values will be used to accumulate the current values
 
- 
accumulate
public void accumulate(int docId) throws IOExceptionDescription copied from interface:StatsValuesAccumulate the value associated withdocID.- Specified by:
 accumulatein interfaceStatsValues- Throws:
 IOException- See Also:
 StatsValues.setNextReader(org.apache.lucene.index.LeafReaderContext)
 
- 
accumulate
public void accumulate(org.apache.lucene.util.BytesRef value, int count)Description copied from interface:StatsValuesAccumulate the values based on the given value- Specified by:
 accumulatein interfaceStatsValues- Parameters:
 value- Value to use to accumulate the current valuescount- number of times to accumulate this value
 
- 
missing
public void missing()
Description copied from interface:StatsValuesUpdates the statistics when a document is missing a value- Specified by:
 missingin interfaceStatsValues
 
- 
addMissing
public void addMissing(int count)
Description copied from interface:StatsValuesUpdates the statistics when multiple documents are missing a value- Specified by:
 addMissingin interfaceStatsValues- Parameters:
 count- number of times to count a missing value
 
- 
addFacet
public void addFacet(String facetName, Map<String,StatsValues> facetValues)
Description copied from interface:StatsValuesAdds the facet statistics for the facet with the given name- Specified by:
 addFacetin interfaceStatsValues- Parameters:
 facetName- Name of the facetfacetValues- Facet statistics on a per facet value basis
 
- 
getStatsValues
public org.apache.solr.common.util.NamedList<?> getStatsValues()
Description copied from interface:StatsValuesTranslates the values into a NamedList representation- Specified by:
 getStatsValuesin interfaceStatsValues- Returns:
 - NamedList representation of the current values
 
 
- 
setNextReader
public void setNextReader(org.apache.lucene.index.LeafReaderContext ctx) throws IOExceptionDescription copied from interface:StatsValuesSet the context forStatsValues.accumulate(int).- Specified by:
 setNextReaderin interfaceStatsValues- Throws:
 IOException
 
 - 
 
 -