Constructor and Description |
---|
BINDelta()
For instantiating from the log.
|
BINDelta(BIN bin)
Read a BIN and create the deltas.
|
BINDelta(SizeofMarker marker)
For Sizeof.
|
Modifier and Type | Method and Description |
---|---|
void |
dumpLog(java.lang.StringBuilder sb,
boolean verbose)
Write the object into the string buffer for log dumping.
|
DatabaseId |
getDbId() |
long |
getLastFullLsn() |
int |
getLogSize() |
long |
getMemorySize()
Returns the number of bytes occupied by this object.
|
(package private) int |
getNumDeltas() |
(package private) static int |
getNumDeltas(BIN bin) |
long |
getPrevDeltaLsn() |
byte[] |
getSearchKey()
Returns a key that can be used to find the BIN associated with this
delta.
|
long |
getTransactionId() |
boolean |
logicalEquals(Loggable other) |
void |
readFromLog(java.nio.ByteBuffer itemBuffer,
int entryVersion)
Initialize this object from the data in itemBuf.
|
BIN |
reconstituteBIN(DatabaseImpl dbImpl)
Create a BIN by fetching the full version and applying the deltas.
|
void |
reconstituteBIN(DatabaseImpl dbImpl,
BIN fullBIN)
Given a full version BIN, apply the deltas.
|
void |
writeToLog(java.nio.ByteBuffer logBuffer)
Serialize this object into the buffer.
|
public BINDelta(BIN bin)
public BINDelta()
public BINDelta(SizeofMarker marker)
int getNumDeltas()
static int getNumDeltas(BIN bin)
public DatabaseId getDbId()
public long getLastFullLsn()
public long getPrevDeltaLsn()
public byte[] getSearchKey()
public BIN reconstituteBIN(DatabaseImpl dbImpl)
public void reconstituteBIN(DatabaseImpl dbImpl, BIN fullBIN)
public int getLogSize()
getLogSize
in interface Loggable
public void writeToLog(java.nio.ByteBuffer logBuffer)
Loggable
writeToLog
in interface Loggable
logBuffer
- is the destination bufferpublic void readFromLog(java.nio.ByteBuffer itemBuffer, int entryVersion)
Loggable
readFromLog
in interface Loggable
public void dumpLog(java.lang.StringBuilder sb, boolean verbose)
Loggable
public long getTransactionId()
getTransactionId
in interface Loggable
Loggable.getTransactionId()
public boolean logicalEquals(Loggable other)
logicalEquals
in interface Loggable
Always return false, this item should never be compared.
public long getMemorySize()
Copyright (c) 2004-2012 Oracle. All rights reserved.