Package io.objectbox.tree
Class Branch
java.lang.Object
io.objectbox.tree.Branch
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the branch following the given path of child branches from this branch.Get the branch following the given path of child branches from this branch.branchChild(String name) Get the child branch directly attached to this branch with the given name.private voidcheckNameOrPath(String name) private voidlonggetId()getTree()Get the leaf following the given path of children from this branch.Get the leaf following the given path of children from this branch.Get the child leaf directly attached to this branch with the given name.private longnativeGetBranchId(long treeHandle, long branchId, String[] path) Get a data branch ID matching the path, starting at the given databranchId.private LeafNodenativeGetLeaf(long treeHandle, long branchId, String[] path) Get a data leaf matching the path, starting at the given databranchId.
-
Field Details
-
tree
-
id
private final long id
-
-
Constructor Details
-
Branch
Branch(Tree tree, long id)
-
-
Method Details
-
getTree
-
getId
public long getId() -
branch
Get the branch following the given path of child branches from this branch.- Returns:
- null if no matching tree node was found
-
branch
Get the branch following the given path of child branches from this branch.- Returns:
- null if no matching tree node was found
-
branchChild
Get the child branch directly attached to this branch with the given name.- Returns:
- null if no matching tree node was found
-
leaf
Get the leaf following the given path of children from this branch.- Returns:
- null if no matching tree node was found
-
leaf
Get the leaf following the given path of children from this branch.- Returns:
- null if no matching tree node was found
-
leafChild
Get the child leaf directly attached to this branch with the given name.- Returns:
- null if no matching tree node was found
-
checkNameOrPath
-
checkPath
-
nativeGetBranchId
Get a data branch ID matching the path, starting at the given databranchId. IfbranchId == 0, it assumes there's only one data tree in the database. -
nativeGetLeaf
Get a data leaf matching the path, starting at the given databranchId. IfbranchId == 0, it assumes there's only one data tree in the database.
-