Class FacetRequest


  • public final class FacetRequest
    extends Object
    A request to compute additional statistics (facets) over the query results.
    • Constructor Detail

      • FacetRequest

        public FacetRequest()
    • Method Detail

      • expression

        public String expression()
        Get the expression property: The column or list of columns to summarize by.
        Returns:
        the expression value.
      • withExpression

        public FacetRequest withExpression​(String expression)
        Set the expression property: The column or list of columns to summarize by.
        Parameters:
        expression - the expression value to set.
        Returns:
        the FacetRequest object itself.
      • options

        public FacetRequestOptions options()
        Get the options property: The options for facet evaluation.
        Returns:
        the options value.
      • withOptions

        public FacetRequest withOptions​(FacetRequestOptions options)
        Set the options property: The options for facet evaluation.
        Parameters:
        options - the options value to set.
        Returns:
        the FacetRequest object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.