|
|||||||||
| 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.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.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.sleepycat.je.tree.LN |
|---|
LN.LNWriteFailureException |
| 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. |
|
DupCountLN(EnvironmentImpl envImpl,
int count)
Create a new DupCountLn to hold a new DIN. |
|
| Method Summary | |
|---|---|
void |
accumulateStats(TreeWalkerStatsAccumulator acc)
|
String |
beginTag()
|
boolean |
containsDuplicates()
|
int |
decDupCount()
|
protected void |
dumpLogAdditional(StringBuilder sb,
boolean verbose)
Dump additional fields |
String |
dumpString(int nSpaces,
boolean dumpTags)
|
String |
endTag()
|
int |
getDupCount()
|
int |
getLogSize()
|
LogEntryType |
getLogType()
|
long |
getMemorySizeIncludedByParent()
Compute the approximate size of this node in memory for evictor invocation purposes. |
protected LogEntryType |
getTransactionalLogType()
Log type for transactional entries. |
int |
incDupCount()
|
boolean |
isDeleted()
|
boolean |
logicalEquals(Loggable other)
|
void |
readFromLog(ByteBuffer itemBuffer,
int entryVersion)
Initialize this object from the data in itemBuf. |
(package private) void |
setDupCount(int dupCount)
|
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 |
|---|
accountForSubtreeRemoval, canBeAncestor, copyData, createLogEntry, delete, dumpKey, dumpLog, getData, getLastLoggedSize, incFetchStats, isDirty, isEvictable, isEvictableInexact, isSoughtNode, isValidForDelete, log, log, makeDeleted, modify, optionalLog, optionalLogProvisional, rebuildINList, releaseMemoryBudget, setDirty, setLastLoggedSize |
| Methods inherited from class com.sleepycat.je.tree.Node |
|---|
dump, getLevel, getNodeId, getTransactionId, getType, latchShared, latchShared, matchLNByNodeId, postFetchInit, releaseLatch, setNodeId, shortDescription, 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(EnvironmentImpl envImpl,
int count)
public DupCountLN()
| Method Detail |
|---|
public int getDupCount()
public int incDupCount()
public int decDupCount()
void setDupCount(int dupCount)
public boolean containsDuplicates()
containsDuplicates in class Nodepublic boolean isDeleted()
isDeleted in class LNpublic long getMemorySizeIncludedByParent()
getMemorySizeIncludedByParent in class LNpublic void accumulateStats(TreeWalkerStatsAccumulator acc)
public String toString()
Node
toString in class Nodepublic String beginTag()
beginTag in class LNpublic String endTag()
endTag in class LN
public String dumpString(int nSpaces,
boolean dumpTags)
dumpString in class LNprotected LogEntryType getTransactionalLogType()
getTransactionalLogType in class LNpublic LogEntryType getLogType()
getLogType in class LNNode.getLogType()public int getLogSize()
getLogSize in interface LoggablegetLogSize in class LNLN.getLogSize()public void writeToLog(ByteBuffer logBuffer)
Loggable
writeToLog in interface LoggablewriteToLog in class LNlogBuffer - is the destination bufferLN.writeToLog(java.nio.ByteBuffer)
public void readFromLog(ByteBuffer itemBuffer,
int entryVersion)
Loggable
readFromLog in interface LoggablereadFromLog in class LNLN.readFromLog(java.nio.ByteBuffer, int)public boolean logicalEquals(Loggable other)
logicalEquals in interface LoggablelogicalEquals in class LNDupCountLNs 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 | ||||||||