Package com.illumon.iris.db.v2
Class RollupInfo
java.lang.Object
com.illumon.iris.db.v2.AbstractHierarchicalTableInfo
com.illumon.iris.db.v2.RollupInfo
- All Implemented Interfaces:
HierarchicalTableInfo,Serializable
public class RollupInfo extends AbstractHierarchicalTableInfo
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRollupInfo.LeafTypeThe type of leaf nodes the rollup has. -
Field Summary
Fields Modifier and Type Field Description Set<String>byColumnNamesComboAggregateFactoryfactoryRollupInfo.LeafTypeleafTypeList<MatchPair>matchPairsstatic StringROLLUP_COLUMNSelectColumn[]selectColumns -
Constructor Summary
Constructors Constructor Description RollupInfo(ComboAggregateFactory factory, SelectColumn[] selectColumns, RollupInfo.LeafType leafType)RollupInfo(ComboAggregateFactory factory, SelectColumn[] selectColumns, RollupInfo.LeafType leafType, String[] columnFormats, SortPair[] sortPairs, String[] flatFilters) -
Method Summary
Modifier and Type Method Description StringgetHierarchicalColumnName()RollupInfo.LeafTypegetLeafType()List<MatchPair>getMatchPairs()Set<String>getSelectColumnNames()Get the names of the SelectColumns.SelectColumn[]getSelectColumns()Get a copy of the SelectColumns, that can be used for performing a new aggregation.booleanincludesConstituents()HierarchicalTableInfowithColumnFormats(String[] columnFormats)Sets the column formats for the table info.HierarchicalTableInfowithFlatFilterColumns(String... flatFilters)Mark the specified columns to be filtered as flat tables at each level, rather than globally with a re-tree.HierarchicalTableInfowithSortPairs(SortPair... columnsToSortBy)Sets sort-preferences for the displayed tableMethods inherited from class com.illumon.iris.db.v2.AbstractHierarchicalTableInfo
getColumnFormats, getFlatFilterColumns, getSortPairs
-
Field Details
-
Constructor Details
-
RollupInfo
public RollupInfo(ComboAggregateFactory factory, SelectColumn[] selectColumns, RollupInfo.LeafType leafType) -
RollupInfo
public RollupInfo(ComboAggregateFactory factory, SelectColumn[] selectColumns, RollupInfo.LeafType leafType, String[] columnFormats, SortPair[] sortPairs, String[] flatFilters)
-
-
Method Details
-
getSelectColumns
Get a copy of the SelectColumns, that can be used for performing a new aggregation.- Returns:
- a copy of selectColumns
-
getSelectColumnNames
Get the names of the SelectColumns. -
getHierarchicalColumnName
- Returns:
- the name of the column that contains the hierarchical keys.
-
withColumnFormats
Description copied from interface:HierarchicalTableInfoSets the column formats for the table info.- Parameters:
columnFormats- the column formats to set.- Returns:
- a copy of this HierarchicalTableInfo with column formats
-
getLeafType
-
getMatchPairs
-
includesConstituents
public boolean includesConstituents()- Returns:
- If this hierarchical table contains constituent rows.
-
withSortPairs
Description copied from interface:HierarchicalTableInfoSets sort-preferences for the displayed table- Parameters:
columnsToSortBy- column/direction pairing of sorts- Returns:
- a copy of this HierarchicalTableInfo with new sort-directives included
-
withFlatFilterColumns
Description copied from interface:HierarchicalTableInfoMark the specified columns to be filtered as flat tables at each level, rather than globally with a re-tree. Hierarchical rows that are orphaned will be filtered out.- Parameters:
flatFilters- the columns that should be filtered flat.- Returns:
- a copy of this
HierarchicalTableInfowith new flatFilterColumns.
-