LN.LNWriteFailureException
NULL_NODE_ID
Constructor and Description |
---|
NameLN()
Create an empty NameLN, to be filled in from the log.
|
NameLN(DatabaseId id)
In the ideal world, we'd have a base LN class so that this NameLN
doesn't have a superfluous data field, but we want to optimize the LN
class for size and speed right now.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
beginTag() |
(package private) LNLogEntry |
createLogEntry(LogEntryType entryType,
DatabaseImpl dbImpl,
byte[] key,
long logAbortLsn,
boolean logAbortKnownDeleted,
Txn logTxn,
ReplicationContext repContext) |
protected void |
dumpLogAdditional(java.lang.StringBuilder sb,
boolean verbose)
Dump additional fields.
|
java.lang.String |
dumpString(int nSpaces,
boolean dumpTags) |
java.lang.String |
endTag() |
DatabaseId |
getId() |
int |
getLogSize() |
protected LogEntryType |
getLogType(boolean isInsert,
boolean isTransactional)
Return the correct log entry type for a NameLN depends on whether it's
transactional.
|
boolean |
isDeleted() |
boolean |
logicalEquals(Loggable other) |
(package private) void |
makeDeleted() |
void |
readFromLog(java.nio.ByteBuffer itemBuffer,
int entryVersion)
Initialize this object from the data in itemBuf.
|
void |
setId(DatabaseId id) |
java.lang.String |
toString()
Default toString method at the root of the tree.
|
void |
writeToLog(java.nio.ByteBuffer logBuffer)
Serialize this object into the buffer.
|
accountForDeferredWriteSubtreeRemoval, accountForSubtreeRemoval, addExtraMarshaledMemorySize, copyEntryData, delete, dumpKey, dumpLog, getData, getGenericLogType, getLastLoggedSize, getMemorySizeIncludedByParent, getVLSNSequence, incFetchStats, isDirty, isEvictable, isEvictableInexact, isLN, isValidForDelete, log, log, makeLN, makeLN, modify, optionalLog, optionalLogProvisional, rebuildINList, releaseMemoryBudget, resolvePartialEntry, setDirty, setEmpty, setEntry, setEntry, setLastLoggedSize, setVLSNSequence
containsDuplicates, dump, getLevel, getTransactionId, getType, isBIN, isCompressible, isIN, latchShared, latchShared, postFetchInit, releaseLatch, verify
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getTransactionId
public NameLN(DatabaseId id)
public NameLN()
void makeDeleted()
makeDeleted
in class LN
public DatabaseId getId()
public void setId(DatabaseId id)
public java.lang.String toString()
Node
public java.lang.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(java.nio.ByteBuffer logBuffer)
Loggable
writeToLog
in interface Loggable
writeToLog
in class LN
logBuffer
- is the destination bufferLN.writeToLog(java.nio.ByteBuffer)
public void readFromLog(java.nio.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
Loggable.logicalEquals(com.sleepycat.je.log.Loggable)
protected void dumpLogAdditional(java.lang.StringBuilder sb, boolean verbose)
dumpLogAdditional
in class LN
LNLogEntry createLogEntry(LogEntryType entryType, DatabaseImpl dbImpl, byte[] key, long logAbortLsn, boolean logAbortKnownDeleted, Txn logTxn, ReplicationContext repContext)
createLogEntry
in class LN
Copyright (c) 2004-2012 Oracle. All rights reserved.