public class PivotFacet extends AnalyticsFacet implements StreamingFacet
collectionManager, expressionCalculator, name, reductionData
Constructor and Description |
---|
PivotFacet(String name,
PivotNode<?> topPivot) |
Modifier and Type | Method and Description |
---|---|
void |
addFacetValueCollectionTargets()
Determine which facet values match the current document.
|
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.
|
void |
exportShardData(DataOutput output)
Export the shard data through a bit-stream, to be imported by the
AnalyticsFacet.importShardData(java.io.DataInput) method
in the originating shard. |
void |
importShardData(DataInput input)
Import the shard data from a bit-stream, exported by the
AnalyticsFacet.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. |
exportFacetValue, getName, importFacetValue
public void setReductionCollectionManager(ReductionCollectionManager collectionManager)
AnalyticsFacet
ReductionCollectionManager
that manages the collection of the expressions
calculated with this facet.setReductionCollectionManager
in class AnalyticsFacet
collectionManager
- The manager for relevant expressionspublic void setExpressionCalculator(ExpressionCalculator expressionCalculator)
AnalyticsFacet
ExpressionCalculator
that calculates the collection of the expressions
requested for this facet.setExpressionCalculator
in class AnalyticsFacet
expressionCalculator
- The calculator for relevant expressionspublic void addFacetValueCollectionTargets()
StreamingFacet
ReductionCollectionManager.ReductionDataCollection
s of the relevant facet values
to the targets of the streaming ReductionCollectionManager
so that they are updated with the current document's data.addFacetValueCollectionTargets
in interface StreamingFacet
public void importShardData(DataInput input) throws IOException
AnalyticsFacet
AnalyticsFacet.exportShardData(java.io.DataOutput)
method
in the each of the collection's shards.importShardData
in class AnalyticsFacet
input
- The bit-stream to import the data fromIOException
- if an exception occurs while reading from the DataInput
public void exportShardData(DataOutput output) throws IOException
AnalyticsFacet
AnalyticsFacet.importShardData(java.io.DataInput)
method
in the originating shard.exportShardData
in class AnalyticsFacet
output
- The bit-stream to output the data throughIOException
- if an exception occurs while writing to the DataOutput
public NamedList<Object> createOldResponse()
AnalyticsFacet
createOldResponse
in class AnalyticsFacet
public Iterable<Map<String,Object>> createResponse()
AnalyticsFacet
createResponse
in class AnalyticsFacet
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.