public final class DupCountLN extends LN
NULL_NODE_ID| Constructor and Description |
|---|
DupCountLN()
Create an empty DupCountLN, to be filled in from the log.
|
| Modifier and Type | Method and Description |
|---|---|
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,
DatabaseImpl db)
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.
|
addExtraMarshaledMemorySize, clearDirty, copyEntryData, delete, dumpKey, dumpLog, getData, getEmbeddedLoggables, getFetchedCold, getGenericLogType, getLastFormatChange, getLogSize, getVLSNSequence, hasReplicationFormat, isDirty, isLN, isReplicationFormatWorthwhile, log, makeLN, makeLN, modify, optionalLog, postFetchInit, resolvePartialEntry, setDirty, setEmpty, setEntry, setEntry, setEntry, setFetchedCold, setVLSNSequence, writeToLogdump, getLevel, getTransactionId, getType, isBIN, isBINDelta, isBINDelta, isDBIN, isDIN, isIN, isUpperIN, latch, latchShared, latchShared, releaseLatchclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetTransactionIdpublic DupCountLN()
public int getDupCount()
public boolean containsDuplicates()
NodecontainsDuplicates in class Nodepublic long getMemorySizeIncludedByParent()
getMemorySizeIncludedByParent in class LNpublic String toString()
Nodepublic String dumpString(int nSpaces, boolean dumpTags)
dumpString in class LNprotected LogEntryType getLogType(boolean isInsert, boolean isTransactional, DatabaseImpl db)
getLogType in class LNpublic int getLogSize()
getLogSize in interface LoggablegetLogSize in class LNLN.getLogSize()public void writeToLog(ByteBuffer logBuffer)
LoggablewriteToLog in interface LoggablewriteToLog in class LNlogBuffer - is the destination bufferLN.writeToLog(java.nio.ByteBuffer)public void readFromLog(ByteBuffer itemBuffer, int entryVersion)
LoggablereadFromLog in interface LoggablereadFromLog in class LNitemBuffer - the source bufferentryVersion - the log version of the dataLN.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 LNCopyright © 2024. All rights reserved.