public class TreeCursorMutable extends TreeCursor implements ITreeCursorMutable
| Modifier and Type | Field and Description |
|---|---|
protected @Nullable jetbrains.exodus.ByteIterable |
nextAfterRemovedKey |
protected @Nullable jetbrains.exodus.ByteIterable |
nextAfterRemovedValue |
protected ITreeMutable |
tree |
protected boolean |
wasDelete |
canGoDownEMPTY_CURSOR| Constructor and Description |
|---|
TreeCursorMutable(ITreeMutable tree,
TreeTraverser traverser) |
TreeCursorMutable(ITreeMutable tree,
TreeTraverser traverser,
boolean alreadyIn) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
deleteCurrent() |
@NotNull jetbrains.exodus.ByteIterable |
getKey() |
boolean |
getNext() |
boolean |
getPrev() |
@NotNull jetbrains.exodus.ByteIterable |
getValue() |
protected boolean |
hasNext() |
protected boolean |
hasPrev() |
boolean |
isMutable() |
protected void |
moveIfNecessary() |
protected @Nullable jetbrains.exodus.ByteIterable |
moveTo(@NotNull jetbrains.exodus.ByteIterable key,
@Nullable jetbrains.exodus.ByteIterable value,
boolean rangeSearch) |
static void |
notifyCursors(ITreeMutable tree) |
static void |
notifyCursors(ITreeMutable tree,
ITreeCursorMutable cursorToSkip) |
protected void |
reset(MutableTreeRoot newRoot) |
void |
treeChanged() |
count, getLast, getNextDup, getNextNoDup, getPrevDup, getPrevNoDup, getSearchBoth, getSearchBothRange, getSearchKey, getSearchKeyRange, getTreeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTreeprotected ITreeMutable tree
protected boolean wasDelete
@Nullable protected @Nullable jetbrains.exodus.ByteIterable nextAfterRemovedKey
@Nullable protected @Nullable jetbrains.exodus.ByteIterable nextAfterRemovedValue
public TreeCursorMutable(ITreeMutable tree, TreeTraverser traverser)
public TreeCursorMutable(ITreeMutable tree, TreeTraverser traverser, boolean alreadyIn)
public boolean getNext()
getNext in interface jetbrains.exodus.env.CursorgetNext in class TreeCursorprotected void reset(MutableTreeRoot newRoot)
protected boolean hasNext()
hasNext in class TreeCursorpublic boolean getPrev()
getPrev in interface jetbrains.exodus.env.CursorgetPrev in class TreeCursorprotected boolean hasPrev()
hasPrev in class TreeCursor@NotNull public @NotNull jetbrains.exodus.ByteIterable getKey()
getKey in interface jetbrains.exodus.env.CursorgetKey in class TreeCursor@NotNull public @NotNull jetbrains.exodus.ByteIterable getValue()
getValue in interface jetbrains.exodus.env.CursorgetValue in class TreeCursorpublic boolean deleteCurrent()
deleteCurrent in interface jetbrains.exodus.env.CursordeleteCurrent in class TreeCursorpublic boolean isMutable()
isMutable in interface jetbrains.exodus.env.CursorisMutable in interface ITreeCursorisMutable in class TreeCursorpublic void treeChanged()
treeChanged in interface ITreeCursorMutablepublic void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in interface jetbrains.exodus.env.Cursorclose in class TreeCursor@Nullable
protected @Nullable jetbrains.exodus.ByteIterable moveTo(@NotNull
@NotNull jetbrains.exodus.ByteIterable key,
@Nullable
@Nullable jetbrains.exodus.ByteIterable value,
boolean rangeSearch)
moveTo in class TreeCursorpublic static void notifyCursors(ITreeMutable tree)
public static void notifyCursors(ITreeMutable tree, ITreeCursorMutable cursorToSkip)
protected void moveIfNecessary()