public class InlineObjectBytesDetector extends Object implements BPlusTree.TreeRowClosure<IndexRow,IndexRow>
| Constructor and Description |
|---|
InlineObjectBytesDetector(int inlineSize,
List<IndexKeyDefinition> keyDefs,
IndexName idxName,
IgniteLogger log) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
apply(BPlusTree<IndexRow,IndexRow> tree,
BPlusIO<IndexRow> 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).
|
boolean |
inlineObjectSupported() |
static boolean |
objectMayBeInlined(int inlineSize,
List<IndexKeyDefinition> keyDefs)
Static analyze inline_size and inline columns set.
|
public InlineObjectBytesDetector(int inlineSize,
List<IndexKeyDefinition> keyDefs,
IndexName idxName,
IgniteLogger log)
inlineSize - Inline size.keyDefs - Index key definitions.idxName - Index name.log - Ignite logger.public boolean apply(BPlusTree<IndexRow,IndexRow> tree, BPlusIO<IndexRow> io, long pageAddr, int idx) throws IgniteCheckedException
apply in interface BPlusTree.TreeRowClosure<IndexRow,IndexRow>tree - The tree.io - Th tree IO object.pageAddr - The page address.idx - The item index.True if the item passes the predicate.IgniteCheckedException - If failed.public boolean inlineObjectSupported()
true if inline object is supported on current tree.public static boolean objectMayBeInlined(int inlineSize,
List<IndexKeyDefinition> keyDefs)
keyDefs - Index key definition.inlineSize - Inline size.true If the object may be inlined.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.11.1 Release Date : December 20 2021