ACCUMULATED_LIMIT, BIN_LEVEL, DBMAP_LEVEL, EXACT_MATCH, INSERT_SUCCESS, latch, LEVEL_MASK, MAIN_LEVEL, MAX_LEVEL, MAY_EVICT_LNS, MAY_EVICT_NODE, MAY_NOT_EVICT, MIN_LEVEL| Constructor and Description |
|---|
DBIN() |
DBIN(DatabaseImpl db,
byte[] identifierKey,
int maxEntriesPerNode,
byte[] dupKey,
int level) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
beginTag() |
protected boolean |
canBeAncestor(boolean targetContainsDuplicates) |
protected long |
computeMemorySize()
Count up the memory usage attributable to this node alone.
|
static long |
computeOverhead(DbConfigManager configManager) |
boolean |
containsDuplicates() |
protected IN |
createNewInstance(byte[] identifierKey,
int maxEntries,
int level)
Create a new DBIN.
|
BINReference |
createReference()
Create a holder object that encapsulates information about this BIN for
the INCompressor.
|
protected void |
dumpLogAdditional(java.lang.StringBuffer sb)
DBINS need to dump their dup key
|
java.lang.String |
dumpString(int nSpaces,
boolean dumpTags)
For unit test support:
|
java.lang.String |
endTag() |
protected int |
generateLevel(DatabaseId dbId,
int newLevel) |
byte[] |
getChildKey(IN child)
Get the key (dupe or identifier) in child that is used to locate
it in 'this' node.
|
byte[] |
getDupKey()
Return the key for this duplicate set.
|
byte[] |
getDupTreeKey()
Return the key for navigating through the duplicate tree.
|
java.util.Comparator<byte[]> |
getKeyComparator()
Return the comparator function to be used for DBINs.
|
int |
getLogSize() |
LogEntryType |
getLogType() |
byte[] |
getMainTreeKey()
Return the key for navigating through the main tree.
|
protected long |
getMemoryOverhead(MemoryBudget mb) |
void |
readFromLog(java.nio.ByteBuffer itemBuffer,
byte entryVersion)
Initialize this object from the data in itemBuf.
|
byte[] |
selectKey(byte[] mainTreeKey,
byte[] dupTreeKey) |
java.lang.String |
shortClassName() |
void |
writeToLog(java.nio.ByteBuffer logBuffer)
Serialize this object into the buffer.
|
addCursor, afterLog, beforeLog, clearKnownDeleted, compress, descendOnParentSearch, evictLN, evictLNs, getCursorSet, getLastDeltaVersion, getTreeAdminMemorySize, isCompressible, logDirtyChildren, nCursors, removeCursor, setKnownDeleted, setKnownDeletedLeaveTarget, setProhibitNextDelta, verifyCursorsclearLsn, clearPendingDeleted, compareTo, computeArraysOverhead, deleteEntry, dumpLog, equals, fetchTarget, findEntry, getBudgetedMemorySize, getDatabase, getDatabaseId, getDirty, getEntryInMemorySize, getEvictionType, getGeneration, getIdentifierKey, getInListResident, getInMemorySize, getKey, getLastFullVersion, getLevel, getLsn, getMigrate, getNEntries, getRecalcToggle, getState, getTarget, hashCode, init, initMemorySize, insertEntry, insertEntry1, isDbRoot, isEntryKnownDeleted, isEntryPendingDeleted, isEvictable, isKeyInBounds, isLatchOwnerForRead, isLatchOwnerForWrite, isRoot, isSoughtNode, latch, latch, latchNoWait, latchNoWait, latchShared, latchShared, log, log, log, logicalEquals, needsSplitting, optionalLog, optionalLogProvisional, postFetchInit, postRecoveryInit, releaseLatch, releaseLatchIfOwner, setDatabase, setDirty, setEntry, setGeneration, setGeneration, setInListResident, setMigrate, setPendingDeleted, setRecalcToggle, splitInternal, toString, updateEntry, updateEntry, updateEntry, updateMemorySize, updateMemorySize, updateNode, updateNode, updateNode, verify, verifyMemorySizedump, getMemorySizeIncludedByParent, getNodeId, getTransactionId, getType, shortDescriptionclone, finalize, getClass, notify, notifyAll, wait, wait, waitdumpLog, getTransactionId, logicalEqualspublic DBIN()
public DBIN(DatabaseImpl db, byte[] identifierKey, int maxEntriesPerNode, byte[] dupKey, int level)
protected IN createNewInstance(byte[] identifierKey, int maxEntries, int level)
createNewInstance in class BINprotected int generateLevel(DatabaseId dbId, int newLevel)
generateLevel in class INpublic final java.util.Comparator<byte[]> getKeyComparator()
getKeyComparator in class BINpublic byte[] getDupKey()
public byte[] getChildKey(IN child) throws DatabaseException
getChildKey in class BINDatabaseExceptionpublic byte[] selectKey(byte[] mainTreeKey,
byte[] dupTreeKey)
public byte[] getDupTreeKey()
getDupTreeKey in class INpublic byte[] getMainTreeKey()
getMainTreeKey in class INpublic boolean containsDuplicates()
containsDuplicates in class Nodepublic BINReference createReference()
BINcreateReference in class BINprotected long computeMemorySize()
computeMemorySize in class INpublic static long computeOverhead(DbConfigManager configManager) throws DatabaseException
DatabaseExceptionprotected long getMemoryOverhead(MemoryBudget mb)
getMemoryOverhead in class BINprotected boolean canBeAncestor(boolean targetContainsDuplicates)
canBeAncestor in class BINpublic java.lang.String dumpString(int nSpaces,
boolean dumpTags)
dumpString in class INpublic LogEntryType getLogType()
getLogType in class BINNode.getLogType()public int getLogSize()
getLogSize in interface LoggablegetLogSize in class INLoggable.getLogSize()public void writeToLog(java.nio.ByteBuffer logBuffer)
LoggablewriteToLog in interface LoggablewriteToLog in class INlogBuffer - is the destination bufferLoggable.writeToLog(java.nio.ByteBuffer)public void readFromLog(java.nio.ByteBuffer itemBuffer,
byte entryVersion)
throws LogException
LoggablereadFromLog in interface LoggablereadFromLog in class INLogExceptionIN.readFromLog(java.nio.ByteBuffer, byte)protected void dumpLogAdditional(java.lang.StringBuffer sb)
dumpLogAdditional in class INpublic java.lang.String shortClassName()
shortClassName in class BIN