|
|||||||||
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.dupConvert.DIN
public final class DIN
An DIN represents an Duplicate Internal Node in the JE tree. Obsolete in log version 8, only used by DupConvert and some log readers.
Field Summary |
---|
Fields inherited from class com.sleepycat.je.tree.IN |
---|
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 |
Fields inherited from class com.sleepycat.je.tree.Node |
---|
NULL_NODE_ID |
Constructor Summary | |
---|---|
DIN()
Create an empty DIN, with no node ID, to be filled in from the log. |
|
DIN(SizeofMarker marker)
For Sizeof, set all array fields to null, since they are not part of the fixed overhead. |
Method Summary | |
---|---|
String |
beginTag()
|
long |
computeMemorySize()
Count up the memory usage attributable to this node alone. |
boolean |
containsDuplicates()
Since DIN/DBIN/DupCountLN are no longer used in the Btree, this method should normally only be used by dup conversion or entities that do not access records via the Btree. |
protected void |
dumpLogAdditional(StringBuilder sb)
DINS need to dump their dup key |
String |
dumpString(int nSpaces,
boolean dumpTags)
For unit test support: |
String |
endTag()
|
DupCountLN |
getDupCountLN()
|
ChildReference |
getDupCountLNRef()
|
protected long |
getFixedMemoryOverhead()
|
int |
getLogSize()
|
LogEntryType |
getLogType()
Get the log type of this node. |
protected boolean |
isEvictionProhibited()
Returns whether the node is not evictable, irrespective of the status of the children nodes. |
protected long |
printMemorySize()
|
void |
readFromLog(ByteBuffer itemBuffer,
int entryVersion)
Initialize this object from the data in itemBuf. |
String |
shortClassName()
|
String |
toString()
Default toString method at the root of the tree. |
void |
writeToLog(ByteBuffer logBuffer)
Serialize this object into the buffer. |
Methods inherited from class com.sleepycat.je.tree.Node |
---|
dump, getMemorySizeIncludedByParent, getTransactionId, getType, isBIN, isCompressible, isLN |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.sleepycat.je.log.Loggable |
---|
getTransactionId |
Constructor Detail |
---|
public DIN()
public DIN(SizeofMarker marker)
Method Detail |
---|
public ChildReference getDupCountLNRef()
public DupCountLN getDupCountLN() throws DatabaseException
DatabaseException
public boolean containsDuplicates()
Node
containsDuplicates
in class Node
public long computeMemorySize()
computeMemorySize
in class IN
protected long printMemorySize()
printMemorySize
in class IN
protected long getFixedMemoryOverhead()
getFixedMemoryOverhead
in class IN
protected boolean isEvictionProhibited()
IN
isEvictionProhibited
in class IN
public LogEntryType getLogType()
IN
getLogType
in class IN
IN.getLogType()
public int getLogSize()
getLogSize
in interface Loggable
getLogSize
in class IN
IN.getLogSize()
public void writeToLog(ByteBuffer logBuffer)
Loggable
writeToLog
in interface Loggable
writeToLog
in class IN
logBuffer
- is the destination bufferIN.writeToLog(java.nio.ByteBuffer)
public void readFromLog(ByteBuffer itemBuffer, int entryVersion)
Loggable
readFromLog
in interface Loggable
readFromLog
in class IN
IN.readFromLog(java.nio.ByteBuffer, int)
protected void dumpLogAdditional(StringBuilder sb)
dumpLogAdditional
in class IN
public String beginTag()
beginTag
in class IN
public String endTag()
endTag
in class IN
public String dumpString(int nSpaces, boolean dumpTags)
dumpString
in class IN
public String toString()
Node
toString
in class IN
public String shortClassName()
shortClassName
in class IN
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |