Package com.illumon.iris.db.v2
Class TreeTableFilter
java.lang.Object
com.illumon.iris.db.v2.TreeTableFilter
- All Implemented Interfaces:
com.fishlib.base.Function.Unary<Table,Table>
,MemoizedOperationKey.Provider
public class TreeTableFilter extends Object implements com.fishlib.base.Function.Unary<Table,Table>, MemoizedOperationKey.Provider
Apply filters, preserving parents.
The TreeTableFilter takes a TreeTable and SelectFilters as input. The original source table is filtered and
any matching rows are included; as well as their ancestors. The result table is then converted into a tree
table using the original parameters.
-
Method Summary
Modifier and Type Method Description Table
call(Table table)
static HierarchicalTable
filterTree(com.fishlib.io.logger.Logger log, Table tree, SelectFilter[] filters)
static HierarchicalTable
filterTree(com.fishlib.io.logger.Logger log, Table tree, String... filters)
MemoizedOperationKey
getMemoKey()
static Table
rawFilterTree(com.fishlib.io.logger.Logger log, Table tree, SelectFilter[] filters)
static Table
rawFilterTree(com.fishlib.io.logger.Logger log, Table tree, String... filters)
static HierarchicalTable
toTreeTable(Table rawTable, Table originalTree)
-
Method Details
-
call
-
getMemoKey
- Specified by:
getMemoKey
in interfaceMemoizedOperationKey.Provider
-
toTreeTable
-
rawFilterTree
-
rawFilterTree
public static Table rawFilterTree(com.fishlib.io.logger.Logger log, Table tree, SelectFilter[] filters) -
filterTree
public static HierarchicalTable filterTree(com.fishlib.io.logger.Logger log, Table tree, String... filters) -
filterTree
public static HierarchicalTable filterTree(com.fishlib.io.logger.Logger log, Table tree, SelectFilter[] filters)
-