public class BTree extends LocalPersistentBase implements TransactionParticipant, BTreeStructureListener
| Modifier and Type | Field and Description |
|---|---|
protected Queue4 |
_processing |
_id, _state| Constructor and Description |
|---|
BTree(Transaction trans,
BTreeConfiguration config,
Indexable4 keyHandler) |
BTree(Transaction trans,
BTreeConfiguration config,
int id,
Indexable4 keyHandler) |
BTree(Transaction trans,
BTreeConfiguration config,
int id,
Indexable4 keyHandler,
int treeNodeSize) |
BTree(Transaction trans,
int id,
Indexable4 keyHandler) |
BTree(Transaction trans,
int id,
Indexable4 keyHandler,
int nodeSize) |
idSystem, readBufferByIdlinkLength, newWriteBuffer, produceReadBuffer, produceWriteBuffer, read, read, write, writeObjectBegin, writeOwnIDbeginProcessing, endProcessing, getID, hashCode, isActive, isDirty, isNew, setID, setStateClean, setStateDeactivated, setStateDirtyprotected Queue4 _processing
public BTree(Transaction trans, BTreeConfiguration config, int id, Indexable4 keyHandler, int treeNodeSize)
public BTree(Transaction trans, BTreeConfiguration config, Indexable4 keyHandler)
public BTree(Transaction trans, BTreeConfiguration config, int id, Indexable4 keyHandler)
public BTree(Transaction trans, int id, Indexable4 keyHandler)
public BTree(Transaction trans, int id, Indexable4 keyHandler, int nodeSize)
public BTreeNode root()
public int nodeSize()
public void add(Transaction trans, java.lang.Object key)
public void add(Transaction trans, PreparedComparison preparedComparison, java.lang.Object key)
public java.lang.Object remove(Transaction trans, java.lang.Object key)
public BTreeRange searchRange(Transaction trans, java.lang.Object key)
public BTreePointer searchPointer(Transaction trans, java.lang.Object key)
public java.lang.Object search(Transaction trans, java.lang.Object key)
public Indexable4 keyHandler()
public BTreeNodeSearchResult searchLeaf(Transaction trans, java.lang.Object key, SearchTarget target)
public BTreeNodeSearchResult searchLeaf(Transaction trans, PreparedComparison preparedComparison, SearchTarget target)
public void commit(Transaction transaction)
commit in interface TransactionParticipantpublic void rollback(Transaction trans)
rollback in interface TransactionParticipantprotected boolean canEnlistWithTransaction()
public byte getIdentifier()
getIdentifier in interface Persistentpublic void setRemoveListener(Visitor4 vis)
public int ownLength()
ownLength in interface Persistentpublic BTreeNode produceNode(int id)
public void readThis(Transaction a_trans, ByteArrayBuffer a_reader)
readThis in interface Persistentpublic void writeThis(Transaction trans, ByteArrayBuffer a_writer)
writeThis in interface Persistentpublic int size(Transaction trans)
public void traverseKeys(Transaction trans, Visitor4 visitor)
public void sizeChanged(Transaction transaction, BTreeNode node, int changeBy)
public void dispose(Transaction transaction)
dispose in interface TransactionParticipantpublic BTreePointer firstPointer(Transaction trans)
public BTreePointer lastPointer(Transaction trans)
public BTree debugLoadFully(Transaction trans)
public void defragIndex(DefragmentContextImpl context)
public void defragIndexNode(DefragmentContextImpl context)
public void defragBTree(DefragmentServices services)
public void free(LocalTransaction systemTrans)
free in class PersistentBasepublic Iterator4 allNodeIds(Transaction systemTrans)
public BTreeRange asRange(Transaction trans)
public java.lang.String toString()
toString in class java.lang.Objectpublic void structureListener(BTreeStructureListener listener)
public void notifySplit(Transaction trans, BTreeNode originalNode, BTreeNode newRightNode)
notifySplit in interface BTreeStructureListenerpublic void notifyDeleted(Transaction trans, BTreeNode node)
notifyDeleted in interface BTreeStructureListenerpublic void notifyCountChanged(Transaction trans, BTreeNode node, int diff)
notifyCountChanged in interface BTreeStructureListenerpublic Iterator4 iterator(Transaction trans)
public void clear(Transaction transaction)
public Cache4<java.lang.Integer,BTreeNodeCacheEntry> nodeCache()
public SlotChangeFactory slotChangeFactory()
slotChangeFactory in class PersistentBasepublic void evictedFromCache(BTreeNode node)
public void convertCacheEvictedNodesToReadMode()