public abstract class AnalyticsFacet extends Object
Modifier and Type | Field and Description |
---|---|
protected ReductionCollectionManager |
collectionManager |
protected ExpressionCalculator |
expressionCalculator |
protected String |
name |
protected Map<String,ReductionCollectionManager.ReductionDataCollection> |
reductionData |
Constructor and Description |
---|
AnalyticsFacet(String name) |
Modifier and Type | Method and Description |
---|---|
NamedList<Object> |
createOldResponse()
Create the old olap-style response of the facet to be returned in the overall analytics response.
|
Iterable<Map<String,Object>> |
createResponse()
Create the response of the facet to be returned in the overall analytics response.
|
protected void |
exportFacetValue(DataOutput output,
String facetValue)
Export the next facet value's set of
ReductionData . |
void |
exportShardData(DataOutput output)
Export the shard data through a bit-stream, to be imported by the
importShardData(java.io.DataInput) method
in the originating shard. |
String |
getName()
Get the name of the Facet.
|
protected void |
importFacetValue(DataInput input,
String facetValue)
Import the next facet value's set of
ReductionData . |
void |
importShardData(DataInput input)
Import the shard data from a bit-stream, exported by the
exportShardData(java.io.DataOutput) method
in the each of the collection's shards. |
void |
setExpressionCalculator(ExpressionCalculator expressionCalculator)
Set the
ExpressionCalculator that calculates the collection of the expressions
requested for this facet. |
void |
setReductionCollectionManager(ReductionCollectionManager collectionManager)
Set the
ReductionCollectionManager that manages the collection of the expressions
calculated with this facet. |
protected final Map<String,ReductionCollectionManager.ReductionDataCollection> reductionData
protected ReductionCollectionManager collectionManager
protected ExpressionCalculator expressionCalculator
protected final String name
public AnalyticsFacet(String name)
public void setReductionCollectionManager(ReductionCollectionManager collectionManager)
ReductionCollectionManager
that manages the collection of the expressions
calculated with this facet.collectionManager
- The manager for relevant expressionspublic void setExpressionCalculator(ExpressionCalculator expressionCalculator)
ExpressionCalculator
that calculates the collection of the expressions
requested for this facet.expressionCalculator
- The calculator for relevant expressionspublic void importShardData(DataInput input) throws IOException
exportShardData(java.io.DataOutput)
method
in the each of the collection's shards.input
- The bit-stream to import the data fromIOException
- if an exception occurs while reading from the DataInput
protected void importFacetValue(DataInput input, String facetValue) throws IOException
ReductionData
.input
- the bit-stream to import the reduction data fromfacetValue
- the next facet valueIOException
- if an exception occurs while reading from the inputpublic void exportShardData(DataOutput output) throws IOException
importShardData(java.io.DataInput)
method
in the originating shard.output
- The bit-stream to output the data throughIOException
- if an exception occurs while writing to the DataOutput
protected void exportFacetValue(DataOutput output, String facetValue) throws IOException
ReductionData
.output
- the bit-stream to output the reduction data tofacetValue
- the next facet valueIOException
- if an exception occurs while reading from the inputpublic NamedList<Object> createOldResponse()
public Iterable<Map<String,Object>> createResponse()
public String getName()
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.