public interface ILogData extends IMetadata, Comparable<ILogData>
Modifier and Type | Interface and Description |
---|---|
static class |
ILogData.SerializationHandle
This class provides a serialization handle, which
manages the lifetime of the serialized copy of this
entry.
|
IMetadata.DataRank, IMetadata.LogUnitMetadataType
metadataTypeMap
Modifier and Type | Method and Description |
---|---|
void |
acquireBuffer() |
default int |
compareTo(ILogData o) |
default Long |
getBackpointer(UUID streamId)
Return the backpointer for a particular stream.
|
default LogEntry |
getLogEntry(CorfuRuntime runtime)
Return the payload as a log entry.
|
Object |
getPayload(CorfuRuntime t) |
default ILogData.SerializationHandle |
getSerializedForm() |
static int |
getSerializedSize(Object obj)
Return the serialized size of an object
|
default int |
getSizeEstimate()
Get an estimate of how large this entry is in memory.
|
DataType |
getType() |
default boolean |
hasBackpointer(UUID streamId)
Return if there is backpointer for a particular stream.
|
default boolean |
isEmpty()
Return whether the entry represents an empty entry or not.
|
default boolean |
isFirstEntry(UUID streamId)
Return if this is the first entry in a particular stream.
|
default boolean |
isHole()
Return whether the entry represents a hole or not.
|
default boolean |
isLogEntry(CorfuRuntime runtime)
Return whether or not this entry is a log entry.
|
default boolean |
isTrimmed()
Return true if and only if the entry represents a trimmed address.
|
void |
releaseBuffer() |
default void |
setId(UUID clientId) |
default void |
useToken(IToken token)
Assign a given token to this log data.
|
clearCommit, containsStream, getBackpointerMap, getCheckpointedStreamId, getCheckpointedStreamStartLogAddress, getCheckpointId, getCheckpointType, getClientId, getEpoch, getGlobalAddress, getMetadataMap, getRank, getStreams, getThreadId, getToken, hasCheckpointMetadata, setBackpointerMap, setCheckpointedStreamId, setCheckpointedStreamStartLogAddress, setCheckpointId, setCheckpointType, setClientId, setCommit, setEpoch, setGlobalAddress, setRank, setThreadId
Object getPayload(CorfuRuntime t)
DataType getType()
default int compareTo(ILogData o)
compareTo
in interface Comparable<ILogData>
void releaseBuffer()
void acquireBuffer()
default ILogData.SerializationHandle getSerializedForm()
default boolean isLogEntry(CorfuRuntime runtime)
default LogEntry getLogEntry(CorfuRuntime runtime)
default boolean hasBackpointer(UUID streamId)
default Long getBackpointer(UUID streamId)
default boolean isFirstEntry(UUID streamId)
default int getSizeEstimate()
default boolean isHole()
default boolean isEmpty()
default boolean isTrimmed()
static int getSerializedSize(Object obj)
obj
- the entry's payload objectdefault void useToken(IToken token)
token
- The token to use.default void setId(UUID clientId)
Copyright © 2019 CorfuDB. All rights reserved.