Class PivotNode<T>

    • Field Detail

      • currentPivot

        protected Map<String,​T> currentPivot
    • Method Detail

      • importPivotValue

        protected abstract void importPivotValue​(DataInput input,
                                                 String pivotValue)
                                          throws IOException
        Import the next pivot value's set of ReductionData and children's ReductionData if they exist.
        Parameters:
        input - the bit-stream to import the reduction data from
        pivotValue - the next pivot value
        Throws:
        IOException - if an exception occurs while reading from the input
      • exportPivotValue

        protected abstract void exportPivotValue​(DataOutput output,
                                                 T pivotData)
                                          throws IOException
        Export the given pivot data, containing ReductionData and pivot children if they exist.
        Parameters:
        output - the bit-stream to output the reduction data to
        pivotData - the next pivot value data
        Throws:
        IOException - if an exception occurs while reading from the input
      • getPivotedResponse

        public abstract Iterable<Map<String,​Object>> getPivotedResponse​(Map<String,​T> pivot)
        Create the response of the facet to be returned in the overall analytics response.
        Parameters:
        pivot - the pivot to create a response for
        Returns:
        the response of the facet