Interface BPlusTree.TreeRowClosure<L,T extends L>
-
- All Known Implementing Classes:
InlineObjectBytesDetector,InlineTreeFilterClosure
public static interface BPlusTree.TreeRowClosure<L,T extends L>A generic visitor-style interface for performing filtering/modifications/miscellaneous operations on the tree.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description booleanapply(BPlusTree<L,T> tree, BPlusIO<L> io, long pageAddr, int idx)Performs inspection or operation on a specified row and returns true if this row is required or matches or /operation successful (depending on the context).default LlastRow()Optional operation to provide access to the last analyzed row.
-
-
-
Method Detail
-
apply
boolean apply(BPlusTree<L,T> tree, BPlusIO<L> io, long pageAddr, int idx) throws IgniteCheckedException
Performs inspection or operation on a specified row and returns true if this row is required or matches or /operation successful (depending on the context).- Parameters:
tree- The tree.io- Th tree IO object.pageAddr- The page address.idx- The item index.- Returns:
Trueif the item passes the predicate.- Throws:
IgniteCheckedException- If failed.
-
lastRow
default L lastRow()
Optional operation to provide access to the last analyzed row. Can be used to optimize chained filters and omit several tree reads.- Returns:
- Last row that was analyzed or
null.
-
-