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
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe type of leaf nodes the rollup has. -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal ComboAggregateFactoryfinal RollupInfo.LeafTypestatic final Stringfinal SelectColumn[] -
Constructor Summary
ConstructorsConstructorDescriptionRollupInfo(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 TypeMethodDescriptionGet the names of the SelectColumns.Get a copy of the SelectColumns, that can be used for performing a new aggregation.booleanwithColumnFormats(String[] columnFormats) Sets the column formats for the table info.withFlatFilterColumns(String... flatFilters) Mark the specified columns to be filtered as flat tables at each level, rather than globally with a re-tree.withSortPairs(SortPair... columnsToSortBy) Sets sort-preferences for the displayed tableMethods inherited from class com.illumon.iris.db.v2.AbstractHierarchicalTableInfo
getColumnFormats, getFlatFilterColumns, getSortPairs
-
Field Details
-
ROLLUP_COLUMN
- See Also:
-
matchPairs
-
leafType
-
byColumnNames
-
factory
-
selectColumns
-
-
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.
-