Package com.illumon.iris.db.v2
Class TreeTableInfo
java.lang.Object
com.illumon.iris.db.v2.AbstractHierarchicalTableInfo
com.illumon.iris.db.v2.TreeTableInfo
- All Implemented Interfaces:
HierarchicalTableInfo
,Serializable
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTreeTableInfo
(String idColumn, String parentColumn) TreeTableInfo
(String idColumn, String parentColumn, String[] columnFormats, SortPair[] sortPairs, String[] flatFilters) -
Method Summary
Modifier and TypeMethodDescriptionboolean
withColumnFormats
(String[] columnFormats) Sets the column formats for the table info.withFlatFilterColumns
(String... flatFilterColumns) 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
-
idColumn
-
parentColumn
-
-
Constructor Details
-
TreeTableInfo
-
TreeTableInfo
-
-
Method Details
-
getHierarchicalColumnName
- Returns:
- the name of the column that contains the hierarchical keys.
-
withColumnFormats
Description copied from interface:HierarchicalTableInfo
Sets the column formats for the table info.- Parameters:
columnFormats
- the column formats to set.- Returns:
- a copy of this HierarchicalTableInfo with column formats
-
includesConstituents
public boolean includesConstituents()- Returns:
- If this hierarchical table contains constituent rows.
-
withSortPairs
Description copied from interface:HierarchicalTableInfo
Sets 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:HierarchicalTableInfo
Mark 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:
flatFilterColumns
- the columns that should be filtered flat.- Returns:
- a copy of this
HierarchicalTableInfo
with new flatFilterColumns.
-