public abstract class BTreeBase extends java.lang.Object implements ITree
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
allowsDuplicates |
protected @NotNull BTreeBalancePolicy |
balancePolicy |
static byte |
BOTTOM |
static byte |
BOTTOM_ROOT |
protected DataIterator |
dataIterator |
static byte |
DUP_BOTTOM |
static byte |
DUP_INTERNAL |
static byte |
DUP_LEAF |
static byte |
INTERNAL |
static byte |
INTERNAL_ROOT |
static byte |
LEAF |
static byte |
LEAF_DUP_BOTTOM_ROOT |
static byte |
LEAF_DUP_INTERNAL_ROOT |
protected @NotNull jetbrains.exodus.log.Log |
log |
protected long |
size |
protected int |
structureId |
| Modifier and Type | Method and Description |
|---|---|
AddressIterator |
addressIterator() |
void |
dump(java.io.PrintStream out) |
void |
dump(java.io.PrintStream out,
Dumpable.ToString renderer) |
@Nullable jetbrains.exodus.ByteIterable |
get(@NotNull jetbrains.exodus.ByteIterable key) |
@NotNull BTreeBalancePolicy |
getBalancePolicy() |
@NotNull DataIterator |
getDataIterator(long address) |
@NotNull jetbrains.exodus.log.Log |
getLog() |
protected RandomAccessLoggable |
getLoggable(long address) |
abstract @NotNull BTreeMutable |
getMutableCopy() |
protected abstract @NotNull jetbrains.exodus.tree.btree.BasePage |
getRoot()
Returns root page of the tree
|
long |
getSize() |
int |
getStructureId() |
boolean |
hasKey(@NotNull jetbrains.exodus.ByteIterable key) |
boolean |
hasPair(@NotNull jetbrains.exodus.ByteIterable key,
@NotNull jetbrains.exodus.ByteIterable value) |
protected boolean |
isDupKey(long address) |
boolean |
isEmpty() |
protected @NotNull jetbrains.exodus.tree.btree.LeafNode |
loadLeaf(long address) |
protected @NotNull jetbrains.exodus.tree.btree.BasePageImmutable |
loadPage(int type,
@NotNull ByteIterableWithAddress data) |
protected @NotNull jetbrains.exodus.tree.btree.BasePageImmutable |
loadPage(long address) |
ITreeCursor |
openCursor() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRootAddresspublic static final byte BOTTOM_ROOT
public static final byte INTERNAL_ROOT
public static final byte BOTTOM
public static final byte INTERNAL
public static final byte LEAF
public static final byte LEAF_DUP_BOTTOM_ROOT
public static final byte LEAF_DUP_INTERNAL_ROOT
public static final byte DUP_BOTTOM
public static final byte DUP_INTERNAL
public static final byte DUP_LEAF
@NotNull protected final @NotNull jetbrains.exodus.log.Log log
protected DataIterator dataIterator
@NotNull protected final @NotNull BTreeBalancePolicy balancePolicy
protected final boolean allowsDuplicates
protected long size
protected final int structureId
@NotNull public abstract @NotNull BTreeMutable getMutableCopy()
getMutableCopy in interface ITree@NotNull protected abstract @NotNull jetbrains.exodus.tree.btree.BasePage getRoot()
public int getStructureId()
getStructureId in interface ITree@NotNull public @NotNull jetbrains.exodus.log.Log getLog()
@NotNull public @NotNull DataIterator getDataIterator(long address)
getDataIterator in interface ITree@NotNull public @NotNull BTreeBalancePolicy getBalancePolicy()
public AddressIterator addressIterator()
addressIterator in interface ITreepublic ITreeCursor openCursor()
openCursor in interface ITreeprotected final RandomAccessLoggable getLoggable(long address)
@NotNull protected final @NotNull jetbrains.exodus.tree.btree.BasePageImmutable loadPage(long address)
@NotNull
protected final @NotNull jetbrains.exodus.tree.btree.BasePageImmutable loadPage(int type,
@NotNull
@NotNull ByteIterableWithAddress data)
@NotNull protected @NotNull jetbrains.exodus.tree.btree.LeafNode loadLeaf(long address)
protected boolean isDupKey(long address)
@Nullable
public @Nullable jetbrains.exodus.ByteIterable get(@NotNull
@NotNull jetbrains.exodus.ByteIterable key)
public boolean hasKey(@NotNull
@NotNull jetbrains.exodus.ByteIterable key)
public boolean hasPair(@NotNull
@NotNull jetbrains.exodus.ByteIterable key,
@NotNull
@NotNull jetbrains.exodus.ByteIterable value)
public void dump(java.io.PrintStream out,
Dumpable.ToString renderer)