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 LeaveBlock
public DataBlock getDataBlock()
getDataBlock
in interface IndexBlock
public void close() throws JasDBStorageException
close
in interface Block
JasDBStorageException
public List<Key> getKeyRange(Key start, boolean includeStart, Key end, boolean includeEnd)
getKeyRange
in interface LeaveBlock
public LeaveBlockImpl findLeaveBlock(LockIntentType intent, Key key) throws JasDBStorageException
findLeaveBlock
in interface IndexBlock
JasDBStorageException
public LeaveBlock findFirstLeaveBlock(LockIntentType intentType) throws JasDBStorageException
findFirstLeaveBlock
in interface IndexBlock
JasDBStorageException
public void insertKey(Key key) throws JasDBStorageException
insertKey
in interface LeaveBlock
JasDBStorageException
protected void recalculateMemorySize()
public void updateKey(Key key) throws JasDBStorageException
updateKey
in interface LeaveBlock
JasDBStorageException
public void removeKey(Key key) throws JasDBStorageException
removeKey
in interface LeaveBlock
JasDBStorageException
protected void removeKeyInternal(Key key) throws JasDBStorageException
JasDBStorageException
public void addKey(Key key)
public List<Key> getValues()
getValues
in interface LeaveBlock
public LeaveBlockProperties getProperties()
getProperties
in interface LeaveBlock
public BlockTypes getType()
getType
in interface IndexBlock
public boolean isModified()
isModified
in interface IndexBlock
public long getParentPointer()
getParentPointer
in interface IndexBlock
public void setParentPointer(long block)
setParentPointer
in interface IndexBlock
public boolean contains(Key key)
contains
in interface LeaveBlock
public int size()
size
in interface IndexBlock
size
in interface LeaveBlock
public long memorySize()
memorySize
in interface IndexBlock
public long getPosition()
getPosition
in interface Block
public Key getLast()
getLast
in interface IndexBlock
public Key getFirst()
getFirst
in interface IndexBlock
public void reset()
reset
in interface IndexBlock
protected void setNext(long next)
protected void setPrevious(long previous)
public ReadWriteLock getLockManager()
getLockManager
in interface IndexBlock
Copyright © 2015. All rights reserved.