PivotNode.PivotBranch<T>, PivotNode.PivotLeaf
SortableFacet.FacetBucket, SortableFacet.FacetSortSpecification
currentPivot
sort
collectionManager, expressionCalculator, name, reductionData
Constructor and Description |
---|
PivotLeaf(String name,
StringValueStream expression) |
Modifier and Type | Method and Description |
---|---|
void |
accept(String pivotValue) |
protected void |
exportPivotValue(DataOutput output,
ReductionCollectionManager.ReductionDataCollection pivotData)
Export the given pivot data, containing
ReductionData and pivot children if they exist. |
Iterable<Map<String,Object>> |
getPivotedResponse(Map<String,ReductionCollectionManager.ReductionDataCollection> pivot)
Create the response of the facet to be returned in the overall analytics response.
|
protected void |
importPivotValue(DataInput input,
String pivotValue)
Import the next pivot value's set of
ReductionData and children's ReductionData if they exist. |
addFacetValueCollectionTargets, exportPivot, importPivot
applyOptions, createOldResponse, createResponse, getSort, setSort
exportFacetValue, exportShardData, getName, importFacetValue, importShardData, setExpressionCalculator, setReductionCollectionManager
public PivotLeaf(String name, StringValueStream expression)
public void accept(String pivotValue)
protected void importPivotValue(DataInput input, String pivotValue) throws IOException
PivotNode
ReductionData
and children's ReductionData
if they exist.importPivotValue
in class PivotNode<ReductionCollectionManager.ReductionDataCollection>
input
- the bit-stream to import the reduction data frompivotValue
- the next pivot valueIOException
- if an exception occurs while reading from the inputprotected void exportPivotValue(DataOutput output, ReductionCollectionManager.ReductionDataCollection pivotData) throws IOException
PivotNode
ReductionData
and pivot children if they exist.exportPivotValue
in class PivotNode<ReductionCollectionManager.ReductionDataCollection>
output
- the bit-stream to output the reduction data topivotData
- the next pivot value dataIOException
- if an exception occurs while reading from the inputpublic Iterable<Map<String,Object>> getPivotedResponse(Map<String,ReductionCollectionManager.ReductionDataCollection> pivot)
PivotNode
getPivotedResponse
in class PivotNode<ReductionCollectionManager.ReductionDataCollection>
pivot
- the pivot to create a response forCopyright © 2000-2017 Apache Software Foundation. All Rights Reserved.