|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sleepycat.je.tree.Node
com.sleepycat.je.tree.IN
com.sleepycat.je.tree.BIN
com.sleepycat.je.tree.DBIN
A DBIN represents an Duplicate Bottom Internal Node in the JE tree.
| Field Summary |
| Fields inherited from class com.sleepycat.je.tree.BIN |
cursorSet |
| Fields inherited from class com.sleepycat.je.tree.IN |
DBMAP_LEVEL, evictionProhibited, EXACT_MATCH, INSERT_SUCCESS, MAIN_LEVEL, MAX_LEVEL, MIN_LEVEL |
| Constructor Summary | |
DBIN()
|
|
DBIN(DatabaseImpl db,
Key identifierKey,
int maxEntriesPerNode,
Key dupKey,
int level)
|
|
| Method Summary | |
(package private) void |
accumulateStats(TreeWalkerStatsAccumulator acc)
|
String |
beginTag()
|
protected boolean |
canBeAncestor(boolean targetContainsDuplicates)
|
protected boolean |
childrenAreEvictable()
|
static long |
computeOverhead(DbConfigManager configManager)
|
boolean |
containsDuplicates()
|
protected IN |
createNewInstance(Key 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(StringBuffer sb)
DBINS need to dump their dup key |
String |
dumpString(int nSpaces,
boolean dumpTags)
For unit test support: |
String |
endTag()
|
protected int |
generateLevel(DatabaseId dbId,
int newLevel)
|
LogEntryType |
getBINDeltaType()
|
Key |
getChildKey(IN child)
Get the key (dupe or identifier) in child that is used to locate it in 'this' node. |
(package private) BIN |
getCursorBIN(CursorImpl cursor)
The following four methods access the correct fields in a cursor depending on whether "this" is a BIN or DBIN. |
(package private) int |
getCursorIndex(CursorImpl cursor)
|
Key |
getDupKey()
Return the key for this duplicate set. |
Key |
getDupTreeKey()
Return the key for navigating through the duplicate tree. |
Comparator |
getKeyComparator()
Return the comparator function to be used for DBINs. |
int |
getLogSize()
|
LogEntryType |
getLogType()
All objects that are reponsible for a generating a type of log entry must implement this. |
Key |
getMainTreeKey()
Return the key for navigating through the main tree. |
protected long |
getMemoryOverhead(MemoryBudget mb)
|
(package private) boolean |
matchLNByNodeId(TreeLocation location,
long nodeId)
|
void |
readFromLog(ByteBuffer itemBuffer)
Initialize this object from the data in itemBuf. |
Key |
selectKey(Key mainTreeKey,
Key dupTreeKey)
|
(package private) void |
setCursorBIN(CursorImpl cursor,
BIN bin)
|
(package private) void |
setCursorIndex(CursorImpl cursor,
int index)
|
String |
shortClassName()
|
void |
writeToLog(ByteBuffer logBuffer)
Serialize this object into the buffer. |
| Methods inherited from class com.sleepycat.je.tree.BIN |
addCursor, adjustCursors, adjustCursorsForInsert, adjustCursorsForMutation, clearKnownDeleted, compress, descendOnParentSearch, entryZeroKeyComparesLow, evictLNs, getCursorSet, getLastDeltaVersion, isEvictable, isValidForDelete, logInternal, nCursors, removeCursor, setCleanedSinceLastLog, setCompressedSinceLastLog, setKnownDeleted, setKnownDeletedLeaveTarget, splitSpecial, validateSubtreeBeforeDelete, verifyCursors |
| Methods inherited from class com.sleepycat.je.tree.Node |
dump, getLastId, getMemorySizeIncludedByParent, getNextNodeId, getNodeId, getType, marshallOutsideWriteLatch, postLogWork, setLastNodeId, setNodeId, shortDescription |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.sleepycat.je.log.LoggableObject |
marshallOutsideWriteLatch, postLogWork |
| Constructor Detail |
public DBIN()
public DBIN(DatabaseImpl db,
Key identifierKey,
int maxEntriesPerNode,
Key dupKey,
int level)
| Method Detail |
protected IN createNewInstance(Key identifierKey,
int maxEntries,
int level)
createNewInstance in class BIN
protected int generateLevel(DatabaseId dbId,
int newLevel)
generateLevel in class INpublic final Comparator getKeyComparator()
getKeyComparator in class BINpublic Key getDupKey()
getDupKey in class IN
public Key getChildKey(IN child)
throws DatabaseException
getChildKey in class BINDatabaseException
public Key selectKey(Key mainTreeKey,
Key dupTreeKey)
selectKey in class INpublic Key getDupTreeKey()
getDupTreeKey in class INpublic Key getMainTreeKey()
getMainTreeKey in class INpublic boolean containsDuplicates()
containsDuplicates in class Nodepublic LogEntryType getBINDeltaType()
getBINDeltaType in class BINpublic BINReference createReference()
BIN
createReference in class BIN
public static long computeOverhead(DbConfigManager configManager)
throws DatabaseException
DatabaseExceptionprotected long getMemoryOverhead(MemoryBudget mb)
getMemoryOverhead in class BINprotected boolean canBeAncestor(boolean targetContainsDuplicates)
canBeAncestor in class BINprotected boolean childrenAreEvictable()
childrenAreEvictable in class BINBIN getCursorBIN(CursorImpl cursor)
getCursorBIN in class BINint getCursorIndex(CursorImpl cursor)
getCursorIndex in class BIN
void setCursorBIN(CursorImpl cursor,
BIN bin)
setCursorBIN in class BIN
void setCursorIndex(CursorImpl cursor,
int index)
setCursorIndex in class BIN
boolean matchLNByNodeId(TreeLocation location,
long nodeId)
throws DatabaseException
matchLNByNodeId in class NodeDatabaseExceptionvoid accumulateStats(TreeWalkerStatsAccumulator acc)
accumulateStats in class BINpublic String beginTag()
beginTag in class BINpublic String endTag()
endTag in class BIN
public String dumpString(int nSpaces,
boolean dumpTags)
dumpString in class INpublic LogEntryType getLogType()
LoggableObject
getLogType in interface LoggableObjectgetLogType in class BINLoggableObject.getLogType()public int getLogSize()
getLogSize in interface LogWritablegetLogSize in class INLogWritable.getLogSize()public void writeToLog(ByteBuffer logBuffer)
LogWritable
writeToLog in interface LogWritablewriteToLog in class INLogWritable.writeToLog(java.nio.ByteBuffer)
public void readFromLog(ByteBuffer itemBuffer)
throws LogException
LogReadable
readFromLog in interface LogReadablereadFromLog in class INLogExceptionIN.readFromLog(java.nio.ByteBuffer)protected void dumpLogAdditional(StringBuffer sb)
dumpLogAdditional in class INpublic String shortClassName()
shortClassName in class BIN
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||