|
|||||||||
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.LN
com.sleepycat.je.tree.dupConvert.DupCountLN
public final class DupCountLN
A DupCountLN represents the transactional part of the root of a duplicate tree, specifically the count of dupes in the tree. Obsolete in log version 8, only used by DupConvert and some log readers.
Field Summary |
---|
Fields inherited from class com.sleepycat.je.tree.Node |
---|
NULL_NODE_ID |
Constructor Summary | |
---|---|
DupCountLN()
Create an empty DupCountLN, to be filled in from the log. |
Method Summary | |
---|---|
String |
beginTag()
|
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,
boolean verbose)
Dump additional fields |
String |
dumpString(int nSpaces,
boolean dumpTags)
|
String |
endTag()
|
int |
getDupCount()
|
int |
getLogSize()
|
protected LogEntryType |
getLogType(boolean isInsert,
boolean isTransactional)
Return the correct log entry type for a DupCountLN depends on whether it's transactional. |
long |
getMemorySizeIncludedByParent()
Compute the approximate size of this node in memory for evictor invocation purposes. |
boolean |
isDeleted()
|
boolean |
logicalEquals(Loggable other)
|
void |
readFromLog(ByteBuffer itemBuffer,
int entryVersion)
Initialize this object from the data in itemBuf. |
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.LN |
---|
addExtraMarshaledMemorySize, copyEntryData, delete, dumpKey, dumpLog, getData, getGenericLogType, getLastLoggedSize, getVLSNSequence, incFetchStats, isDirty, isLN, log, log, makeLN, makeLN, modify, optionalLog, optionalLogProvisional, releaseMemoryBudget, resolvePartialEntry, setDirty, setEmpty, setEntry, setEntry, setLastLoggedSize, setVLSNSequence |
Methods inherited from class com.sleepycat.je.tree.Node |
---|
dump, getLevel, getTransactionId, getType, isBIN, isCompressible, isIN, latchShared, latchShared, postFetchInit, releaseLatch, verify |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.sleepycat.je.log.Loggable |
---|
getTransactionId |
Constructor Detail |
---|
public DupCountLN()
Method Detail |
---|
public int getDupCount()
public boolean containsDuplicates()
Node
containsDuplicates
in class Node
public boolean isDeleted()
isDeleted
in class LN
public long getMemorySizeIncludedByParent()
getMemorySizeIncludedByParent
in class LN
public String toString()
Node
toString
in class Node
public String beginTag()
beginTag
in class LN
public String endTag()
endTag
in class LN
public String dumpString(int nSpaces, boolean dumpTags)
dumpString
in class LN
protected LogEntryType getLogType(boolean isInsert, boolean isTransactional)
getLogType
in class LN
public int getLogSize()
getLogSize
in interface Loggable
getLogSize
in class LN
LN.getLogSize()
public void writeToLog(ByteBuffer logBuffer)
Loggable
writeToLog
in interface Loggable
writeToLog
in class LN
logBuffer
- is the destination bufferLN.writeToLog(java.nio.ByteBuffer)
public void readFromLog(ByteBuffer itemBuffer, int entryVersion)
Loggable
readFromLog
in interface Loggable
readFromLog
in class LN
LN.readFromLog(java.nio.ByteBuffer, int)
public boolean logicalEquals(Loggable other)
logicalEquals
in interface Loggable
logicalEquals
in class LN
DupCountLNs are never replicated.
protected void dumpLogAdditional(StringBuilder sb, boolean verbose)
dumpLogAdditional
in class LN
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |