public class RootBlock extends TreeBlock implements LeaveBlock
| Constructor and Description |
|---|
RootBlock(BlockPersister persister,
DataBlock dataBlock,
boolean isLeave) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addKeys(List<TreeNode> nodes,
LeaveBlockImpl targetLeave) |
boolean |
contains(Key key) |
LeaveBlock |
findFirstLeaveBlock(LockIntentType intentType) |
LeaveBlock |
findLeaveBlock(LockIntentType intent,
Key key) |
Key |
getKey(Key key) |
List<Key> |
getKeyRange(Key start,
boolean includeStart,
Key end,
boolean includeEnd) |
long |
getParentPointer() |
LeaveBlockProperties |
getProperties() |
BlockTypes |
getType() |
List<Key> |
getValues() |
void |
insertKey(Key key) |
boolean |
isLeave() |
protected void |
removeBlockPointer(Key minBlockValue,
IndexBlock removedBlock) |
void |
removeKey(Key key) |
void |
setLeave(boolean leave) |
void |
setParentPointer(long parentBlock) |
int |
size() |
void |
updateKey(Key key) |
addKey, addNodes, close, getDataBlock, getFirst, getLast, getLeftSibbling, getLockManager, getMax, getMin, getNodes, getPosition, getRightSibbling, handleBlockUnderflow, insertBlock, isModified, memorySize, reset, setModified, updateBlockPointerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDataBlock, getFirst, getLast, getLockManager, isModified, memorySize, resetclose, getPositionpublic RootBlock(BlockPersister persister, DataBlock dataBlock, boolean isLeave)
public long getParentPointer()
getParentPointer in interface IndexBlockgetParentPointer in class TreeBlockpublic void setParentPointer(long parentBlock)
setParentPointer in interface IndexBlocksetParentPointer in class TreeBlockpublic BlockTypes getType()
getType in interface IndexBlockgetType in class TreeBlockpublic boolean contains(Key key)
contains in interface LeaveBlockpublic int size()
size in interface IndexBlocksize in interface LeaveBlocksize in class TreeBlockpublic Key getKey(Key key)
getKey in interface LeaveBlockpublic LeaveBlockProperties getProperties()
getProperties in interface LeaveBlockpublic LeaveBlock findLeaveBlock(LockIntentType intent, Key key) throws JasDBStorageException
findLeaveBlock in interface IndexBlockfindLeaveBlock in class TreeBlockJasDBStorageExceptionpublic LeaveBlock findFirstLeaveBlock(LockIntentType intentType) throws JasDBStorageException
findFirstLeaveBlock in interface IndexBlockfindFirstLeaveBlock in class TreeBlockJasDBStorageExceptionpublic void insertKey(Key key) throws JasDBStorageException
insertKey in interface LeaveBlockJasDBStorageExceptionprotected void removeBlockPointer(Key minBlockValue, IndexBlock removedBlock) throws JasDBStorageException
removeBlockPointer in class TreeBlockJasDBStorageExceptionpublic void updateKey(Key key) throws JasDBStorageException
updateKey in interface LeaveBlockJasDBStorageExceptionpublic void removeKey(Key key) throws JasDBStorageException
removeKey in interface LeaveBlockJasDBStorageExceptionpublic List<Key> getKeyRange(Key start, boolean includeStart, Key end, boolean includeEnd)
getKeyRange in interface LeaveBlockpublic List<Key> getValues()
getValues in interface LeaveBlockprotected void addKeys(List<TreeNode> nodes, LeaveBlockImpl targetLeave)
public void setLeave(boolean leave)
public boolean isLeave()
Copyright © 2015. All rights reserved.