Package org.apache.solr.analytics.facet
Class PivotNode.PivotLeaf
- java.lang.Object
-
- org.apache.solr.analytics.facet.AnalyticsFacet
-
- org.apache.solr.analytics.facet.SortableFacet
-
- org.apache.solr.analytics.facet.PivotNode<ReductionCollectionManager.ReductionDataCollection>
-
- org.apache.solr.analytics.facet.PivotNode.PivotLeaf
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.solr.analytics.facet.PivotNode
PivotNode.PivotBranch<T>, PivotNode.PivotLeaf
-
Nested classes/interfaces inherited from class org.apache.solr.analytics.facet.SortableFacet
SortableFacet.FacetBucket, SortableFacet.FacetSortSpecification
-
-
Field Summary
-
Fields inherited from class org.apache.solr.analytics.facet.PivotNode
currentPivot
-
Fields inherited from class org.apache.solr.analytics.facet.SortableFacet
sort
-
Fields inherited from class org.apache.solr.analytics.facet.AnalyticsFacet
collectionManager, expressionCalculator, name, reductionData
-
-
Constructor Summary
Constructors Constructor Description PivotLeaf(String name, StringValueStream expression)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(String pivotValue)protected voidexportPivotValue(DataOutput output, ReductionCollectionManager.ReductionDataCollection pivotData)Export the given pivot data, containingReductionDataand 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 voidimportPivotValue(DataInput input, String pivotValue)Import the next pivot value's set ofReductionDataand children'sReductionDataif they exist.-
Methods inherited from class org.apache.solr.analytics.facet.PivotNode
addFacetValueCollectionTargets, exportPivot, importPivot
-
Methods inherited from class org.apache.solr.analytics.facet.SortableFacet
applyOptions, createOldResponse, createResponse, getSort, setSort
-
Methods inherited from class org.apache.solr.analytics.facet.AnalyticsFacet
exportFacetValue, exportShardData, getName, importFacetValue, importShardData, setExpressionCalculator, setReductionCollectionManager
-
-
-
-
Constructor Detail
-
PivotLeaf
public PivotLeaf(String name, StringValueStream expression)
-
-
Method Detail
-
accept
public void accept(String pivotValue)
-
importPivotValue
protected void importPivotValue(DataInput input, String pivotValue) throws IOException
Description copied from class:PivotNodeImport the next pivot value's set ofReductionDataand children'sReductionDataif they exist.- Specified by:
importPivotValuein classPivotNode<ReductionCollectionManager.ReductionDataCollection>- Parameters:
input- the bit-stream to import the reduction data frompivotValue- the next pivot value- Throws:
IOException- if an exception occurs while reading from the input
-
exportPivotValue
protected void exportPivotValue(DataOutput output, ReductionCollectionManager.ReductionDataCollection pivotData) throws IOException
Description copied from class:PivotNodeExport the given pivot data, containingReductionDataand pivot children if they exist.- Specified by:
exportPivotValuein classPivotNode<ReductionCollectionManager.ReductionDataCollection>- Parameters:
output- the bit-stream to output the reduction data topivotData- the next pivot value data- Throws:
IOException- if an exception occurs while reading from the input
-
getPivotedResponse
public Iterable<Map<String,Object>> getPivotedResponse(Map<String,ReductionCollectionManager.ReductionDataCollection> pivot)
Description copied from class:PivotNodeCreate the response of the facet to be returned in the overall analytics response.- Specified by:
getPivotedResponsein classPivotNode<ReductionCollectionManager.ReductionDataCollection>- Parameters:
pivot- the pivot to create a response for- Returns:
- the response of the facet
-
-