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, updateBlockPointer
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDataBlock, getFirst, getLast, getLockManager, isModified, memorySize, reset
close, getPosition
public RootBlock(BlockPersister persister, DataBlock dataBlock, boolean isLeave)
public long getParentPointer()
getParentPointer
in interface IndexBlock
getParentPointer
in class TreeBlock
public void setParentPointer(long parentBlock)
setParentPointer
in interface IndexBlock
setParentPointer
in class TreeBlock
public BlockTypes getType()
getType
in interface IndexBlock
getType
in class TreeBlock
public boolean contains(Key key)
contains
in interface LeaveBlock
public int size()
size
in interface IndexBlock
size
in interface LeaveBlock
size
in class TreeBlock
public Key getKey(Key key)
getKey
in interface LeaveBlock
public LeaveBlockProperties getProperties()
getProperties
in interface LeaveBlock
public LeaveBlock findLeaveBlock(LockIntentType intent, Key key) throws JasDBStorageException
findLeaveBlock
in interface IndexBlock
findLeaveBlock
in class TreeBlock
JasDBStorageException
public LeaveBlock findFirstLeaveBlock(LockIntentType intentType) throws JasDBStorageException
findFirstLeaveBlock
in interface IndexBlock
findFirstLeaveBlock
in class TreeBlock
JasDBStorageException
public void insertKey(Key key) throws JasDBStorageException
insertKey
in interface LeaveBlock
JasDBStorageException
protected void removeBlockPointer(Key minBlockValue, IndexBlock removedBlock) throws JasDBStorageException
removeBlockPointer
in class TreeBlock
JasDBStorageException
public void updateKey(Key key) throws JasDBStorageException
updateKey
in interface LeaveBlock
JasDBStorageException
public void removeKey(Key key) throws JasDBStorageException
removeKey
in interface LeaveBlock
JasDBStorageException
public List<Key> getKeyRange(Key start, boolean includeStart, Key end, boolean includeEnd)
getKeyRange
in interface LeaveBlock
public List<Key> getValues()
getValues
in interface LeaveBlock
protected void addKeys(List<TreeNode> nodes, LeaveBlockImpl targetLeave)
public void setLeave(boolean leave)
public boolean isLeave()
Copyright © 2015. All rights reserved.