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
public class TreeTableInfo extends AbstractHierarchicalTableInfo
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description String
idColumn
String
parentColumn
-
Constructor Summary
Constructors Constructor Description TreeTableInfo(String idColumn, String parentColumn)
TreeTableInfo(String idColumn, String parentColumn, String[] columnFormats, SortPair[] sortPairs, String[] flatFilters)
-
Method Summary
Modifier and Type Method Description String
getHierarchicalColumnName()
boolean
includesConstituents()
HierarchicalTableInfo
withColumnFormats(String[] columnFormats)
Sets the column formats for the table info.HierarchicalTableInfo
withFlatFilterColumns(String... flatFilterColumns)
Mark the specified columns to be filtered as flat tables at each level, rather than globally with a re-tree.HierarchicalTableInfo
withSortPairs(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
-
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.
-