Class AnalyticsFacet

    • Constructor Detail

      • AnalyticsFacet

        public AnalyticsFacet​(String name)
    • Method Detail

      • setReductionCollectionManager

        public void setReductionCollectionManager​(ReductionCollectionManager collectionManager)
        Set the ReductionCollectionManager that manages the collection of the expressions calculated with this facet.
        Parameters:
        collectionManager - The manager for relevant expressions
      • setExpressionCalculator

        public void setExpressionCalculator​(ExpressionCalculator expressionCalculator)
        Set the ExpressionCalculator that calculates the collection of the expressions requested for this facet.
        Parameters:
        expressionCalculator - The calculator for relevant expressions
      • importFacetValue

        protected void importFacetValue​(DataInput input,
                                        String facetValue)
                                 throws IOException
        Import the next facet value's set of ReductionData.
        Parameters:
        input - the bit-stream to import the reduction data from
        facetValue - the next facet value
        Throws:
        IOException - if an exception occurs while reading from the input
      • exportFacetValue

        protected void exportFacetValue​(DataOutput output,
                                        String facetValue)
                                 throws IOException
        Export the next facet value's set of ReductionData.
        Parameters:
        output - the bit-stream to output the reduction data to
        facetValue - the next facet value
        Throws:
        IOException - if an exception occurs while reading from the input
      • createOldResponse

        public NamedList<Object> createOldResponse()
        Create the old olap-style response of the facet to be returned in the overall analytics response.
        Returns:
        the response of the facet
      • createResponse

        public Iterable<Map<String,​Object>> createResponse()
        Create the response of the facet to be returned in the overall analytics response.
        Returns:
        the response of the facet
      • getName

        public String getName()
        Get the name of the Facet. This is unique for the grouping.
        Returns:
        The name of the Facet