Package org.openrefine.browsing.facets
Class AllFacetsState
- java.lang.Object
-
- org.openrefine.browsing.facets.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 Summary
Constructors Constructor Description 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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object other)
FacetState
get(int index)
Helper for facet access.long
getAggregatedCount()
Number of rows or records seen by the aggregator.com.google.common.collect.ImmutableList<ColumnStats>
getColumnStats()
List of column statistics for all columns.long
getFilteredCount()
Numbers of rows or records seen by the aggregator which matched all facetscom.google.common.collect.ImmutableList<FacetState>
getStates()
List of all facet statesint
hashCode()
int
size()
Number of facet states stored in this state.String
toString()
-
-
-
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
-
-