Class AllFacetsState

  • All Implemented Interfaces:
    Serializable, FacetState

    public class AllFacetsState
    extends Object
    implements FacetState
    State of aggregation of all facets, used to compute the states of all facets in a single aggregation over the grid. It also computes column-level datatype statistics (ColumnStats) for each column.
    See Also:
    Serialized Form
    • Constructor Detail

      • AllFacetsState

        public AllFacetsState​(com.google.common.collect.ImmutableList<FacetState> states,
                              com.google.common.collect.ImmutableList<ColumnStats> columnStats,
                              long aggregatedCount,
                              long filteredCount)
        Constructs a state for aggregation of all facets.
    • Method Detail

      • get

        public FacetState get​(int index)
        Helper for facet access.
        Parameters:
        index - position of the facet state to retrieve
      • size

        public int size()
        Number of facet states stored in this state.
      • getStates

        public com.google.common.collect.ImmutableList<FacetState> getStates()
        List of all facet states
      • getColumnStats

        public com.google.common.collect.ImmutableList<ColumnStats> getColumnStats()
        List of column statistics for all columns.
      • getAggregatedCount

        public long getAggregatedCount()
        Number of rows or records seen by the aggregator.
      • getFilteredCount

        public long getFilteredCount()
        Numbers of rows or records seen by the aggregator which matched all facets
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object