Package io.objectbox.config
Class TreeOptionFlags
java.lang.Object
io.objectbox.config.TreeOptionFlags
Options flags for trees.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
In some scenarios, e.g.static final int
Nodes described in AllowNonUniqueNodes will be automatically consolidated to make them unique.static final int
If true, debug logs are always disabled for this tree regardless of the store's debug flags.static final int
If true, debug logs are always enabled for this tree regardless of the store's debug flags.static final int
Nodes described in AllowNonUniqueNodes will be automatically detected to consolidate them (manually).static final int
By default, a path such as "a/b/c" can address a branch and a leaf at the same time. -
Method Summary
-
Field Details
-
DebugLogsDisable
public static final int DebugLogsDisableIf true, debug logs are always disabled for this tree regardless of the store's debug flags.- See Also:
-
DebugLogsEnable
public static final int DebugLogsEnableIf true, debug logs are always enabled for this tree regardless of the store's debug flags.- See Also:
-
EnforceUniquePath
public static final int EnforceUniquePathBy default, a path such as "a/b/c" can address a branch and a leaf at the same time. E.g. under the common parent path "a/b", a branch "c" and a "c" leaf may exist. To disable this, set this flag to true. This will enable an additional check when inserting new leafs and new branches for the existence of the other.- See Also:
-
AllowNonUniqueNodes
public static final int AllowNonUniqueNodesIn some scenarios, e.g. when using Sync, multiple node objects of the same type (e.g. branch or leaf) at the same path may exist temporarily. By enabling this flag, this is not considered an error situation. Instead, the first node is picked.- See Also:
-
DetectNonUniqueNodes
public static final int DetectNonUniqueNodesNodes described in AllowNonUniqueNodes will be automatically detected to consolidate them (manually).- See Also:
-
AutoConsolidateNonUniqueNodes
public static final int AutoConsolidateNonUniqueNodesNodes described in AllowNonUniqueNodes will be automatically consolidated to make them unique. This consolidation happens e.g. on put/remove operations. Using this value implies DetectNonUniqueNodes.- See Also:
-