public class LeaveBlockImpl extends Object implements LeaveBlock
| Constructor and Description |
|---|
LeaveBlockImpl(BlockPersister persister,
DataBlock dataBlock,
long parentBlock,
boolean modified) |
| Modifier and Type | Method and Description |
|---|---|
void |
addKey(Key key) |
void |
close() |
boolean |
contains(Key key) |
LeaveBlock |
findFirstLeaveBlock(LockIntentType intentType) |
LeaveBlockImpl |
findLeaveBlock(LockIntentType intent,
Key key) |
DataBlock |
getDataBlock() |
Key |
getFirst() |
Key |
getKey(Key key) |
List<Key> |
getKeyRange(Key start,
boolean includeStart,
Key end,
boolean includeEnd) |
Key |
getLast() |
ReadWriteLock |
getLockManager() |
long |
getParentPointer() |
long |
getPosition() |
LeaveBlockProperties |
getProperties() |
BlockTypes |
getType() |
List<Key> |
getValues() |
void |
insertKey(Key key) |
boolean |
isModified() |
long |
memorySize() |
protected void |
recalculateMemorySize() |
void |
removeKey(Key key) |
protected void |
removeKeyInternal(Key key) |
void |
reset() |
protected void |
setNext(long next) |
void |
setParentPointer(long block) |
protected void |
setPrevious(long previous) |
int |
size() |
String |
toString() |
void |
updateKey(Key key) |
public LeaveBlockImpl(BlockPersister persister, DataBlock dataBlock, long parentBlock, boolean modified)
public Key getKey(Key key)
getKey in interface LeaveBlockpublic DataBlock getDataBlock()
getDataBlock in interface IndexBlockpublic void close()
throws JasDBStorageException
close in interface BlockJasDBStorageExceptionpublic List<Key> getKeyRange(Key start, boolean includeStart, Key end, boolean includeEnd)
getKeyRange in interface LeaveBlockpublic LeaveBlockImpl findLeaveBlock(LockIntentType intent, Key key) throws JasDBStorageException
findLeaveBlock in interface IndexBlockJasDBStorageExceptionpublic LeaveBlock findFirstLeaveBlock(LockIntentType intentType) throws JasDBStorageException
findFirstLeaveBlock in interface IndexBlockJasDBStorageExceptionpublic void insertKey(Key key) throws JasDBStorageException
insertKey in interface LeaveBlockJasDBStorageExceptionprotected void recalculateMemorySize()
public void updateKey(Key key) throws JasDBStorageException
updateKey in interface LeaveBlockJasDBStorageExceptionpublic void removeKey(Key key) throws JasDBStorageException
removeKey in interface LeaveBlockJasDBStorageExceptionprotected void removeKeyInternal(Key key) throws JasDBStorageException
JasDBStorageExceptionpublic void addKey(Key key)
public List<Key> getValues()
getValues in interface LeaveBlockpublic LeaveBlockProperties getProperties()
getProperties in interface LeaveBlockpublic BlockTypes getType()
getType in interface IndexBlockpublic boolean isModified()
isModified in interface IndexBlockpublic long getParentPointer()
getParentPointer in interface IndexBlockpublic void setParentPointer(long block)
setParentPointer in interface IndexBlockpublic boolean contains(Key key)
contains in interface LeaveBlockpublic int size()
size in interface IndexBlocksize in interface LeaveBlockpublic long memorySize()
memorySize in interface IndexBlockpublic long getPosition()
getPosition in interface Blockpublic Key getLast()
getLast in interface IndexBlockpublic Key getFirst()
getFirst in interface IndexBlockpublic void reset()
reset in interface IndexBlockprotected void setNext(long next)
protected void setPrevious(long previous)
public ReadWriteLock getLockManager()
getLockManager in interface IndexBlockCopyright © 2015. All rights reserved.