public class PendingChange<T extends java.io.Serializable> extends java.lang.Object implements java.io.Serializable, Recoverable<T>
Modifier and Type | Method and Description |
---|---|
void |
apply(BlueCollectionOnDisk<T> collection) |
void |
applyChange(Segment<T> segment) |
static <T extends java.io.Serializable> |
createDelete(BlueKey key,
T value) |
static <T extends java.io.Serializable> |
createInsert(BlueKey key,
T value,
BlueSerializer serializer) |
static <T extends java.io.Serializable> |
createUpdate(BlueEntity<T> entity,
Mapper<T> mapper,
BlueSerializer serializer) |
static <T extends java.io.Serializable> |
createUpdate(BlueKey key,
T value,
Mapper<T> mapper,
BlueSerializer serializer) |
static <T extends java.io.Serializable> |
createUpdate(BlueKey key,
T value,
Updater<T> updater,
BlueSerializer serializer) |
BlueKey |
getKey() |
T |
getNewValue() |
T |
getOldValue() |
long |
getRecoverableId() |
long |
getTimeCreated() |
boolean |
isDelete() |
boolean |
isInsert() |
boolean |
isUpdate() |
void |
setRecoverableId(long recoverableId) |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
compareTo
public static <T extends java.io.Serializable> PendingChange<T> createDelete(BlueKey key, T value)
public static <T extends java.io.Serializable> PendingChange<T> createInsert(BlueKey key, T value, BlueSerializer serializer)
public static <T extends java.io.Serializable> PendingChange<T> createUpdate(BlueKey key, T value, Updater<T> updater, BlueSerializer serializer)
public static <T extends java.io.Serializable> PendingChange<T> createUpdate(BlueEntity<T> entity, Mapper<T> mapper, BlueSerializer serializer)
public static <T extends java.io.Serializable> PendingChange<T> createUpdate(BlueKey key, T value, Mapper<T> mapper, BlueSerializer serializer)
public void apply(BlueCollectionOnDisk<T> collection) throws BlueDbException
apply
in interface Recoverable<T extends java.io.Serializable>
BlueDbException
public void applyChange(Segment<T> segment) throws BlueDbException
BlueDbException
public BlueKey getKey()
public T getOldValue()
public T getNewValue()
public long getTimeCreated()
getTimeCreated
in interface Recoverable<T extends java.io.Serializable>
public boolean isDelete()
public boolean isInsert()
public boolean isUpdate()
public java.lang.String toString()
toString
in class java.lang.Object
public long getRecoverableId()
getRecoverableId
in interface Recoverable<T extends java.io.Serializable>
public void setRecoverableId(long recoverableId)
setRecoverableId
in interface Recoverable<T extends java.io.Serializable>