@Deprecated public class TransactionEdit extends Object implements org.apache.hadoop.io.Writable
TransactionLog
.
This class was included for backward compatibility reasons. It will be removed in future releases.Modifier and Type | Class and Description |
---|---|
static class |
TransactionEdit.State
Deprecated.
The possible state changes for a transaction.
|
Constructor and Description |
---|
TransactionEdit()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static TransactionEdit |
createAborted(long writePointer,
TransactionType type,
long[] checkpointPointers)
Deprecated.
Creates a new instance in the
TransactionEdit.State.ABORTED state. |
static TransactionEdit |
createCheckpoint(long writePointer,
long parentWritePointer)
Deprecated.
Creates a new instance in the
TransactionEdit.State.CHECKPOINT state. |
static TransactionEdit |
createCommitted(long writePointer,
Set<ChangeId> changes,
long nextWritePointer,
boolean canCommit)
Deprecated.
Creates a new instance in the
TransactionEdit.State.COMMITTED state. |
static TransactionEdit |
createCommitting(long writePointer,
Set<ChangeId> changes)
Deprecated.
Creates a new instance in the
TransactionEdit.State.COMMITTING state. |
static TransactionEdit |
createInvalid(long writePointer)
Deprecated.
Creates a new instance in the
TransactionEdit.State.INVALID state. |
static TransactionEdit |
createMoveWatermark(long writePointer)
Deprecated.
Creates a new instance in the
TransactionEdit.State.MOVE_WATERMARK state. |
static TransactionEdit |
createStarted(long writePointer,
long visibilityUpperBound,
long expirationDate,
TransactionType type)
Deprecated.
Creates a new instance in the
TransactionEdit.State.INPROGRESS state. |
static TransactionEdit |
createTruncateInvalidTx(Set<Long> truncateInvalidTx)
Deprecated.
Creates a new instance in the
TransactionEdit.State.TRUNCATE_INVALID_TX state. |
static TransactionEdit |
createTruncateInvalidTxBefore(long truncateInvalidTxTime)
Deprecated.
Creates a new instance in the
TransactionEdit.State.TRUNCATE_INVALID_TX state. |
boolean |
equals(Object o)
Deprecated.
|
boolean |
getCanCommit()
Deprecated.
Returns whether or not the transaction should be moved to the committed set.
|
Set<ChangeId> |
getChanges()
Deprecated.
|
long[] |
getCheckpointPointers()
Deprecated.
Returns the checkpoint write pointers for the edit.
|
long |
getCommitPointer()
Deprecated.
Returns the write pointer used to commit the row key change set.
|
long |
getExpiration()
Deprecated.
Returns any expiration timestamp (in milliseconds) associated with the state change.
|
long |
getParentWritePointer()
Deprecated.
Returns the parent write pointer for a checkpoint operation.
|
TransactionEdit.State |
getState()
Deprecated.
Returns the type of state change represented.
|
Set<Long> |
getTruncateInvalidTx()
Deprecated.
Returns the transaction ids to be removed from invalid transaction list.
|
long |
getTruncateInvalidTxTime()
Deprecated.
Returns the time until which the invalid transactions need to be truncated from invalid transaction list.
|
TransactionType |
getType()
Deprecated.
Returns the transaction type.
|
long |
getVisibilityUpperBound()
Deprecated.
|
long |
getWritePointer()
Deprecated.
Returns the transaction write pointer assigned for the state change.
|
int |
hashCode()
Deprecated.
|
void |
readFields(DataInput in)
Deprecated.
|
String |
toString()
Deprecated.
|
void |
write(DataOutput out)
Deprecated.
|
public long getWritePointer()
public long getVisibilityUpperBound()
public TransactionEdit.State getState()
public long getExpiration()
TransactionEdit.State.INPROGRESS
.public Set<ChangeId> getChanges()
TransactionEdit.State.COMMITTING
or TransactionEdit.State.COMMITTED
.public long getCommitPointer()
TransactionEdit.State.COMMITTED
.public boolean getCanCommit()
TransactionEdit.State.COMMITTED
.public TransactionType getType()
TransactionEdit.State.INPROGRESS
or
TransactionEdit.State.ABORTED
.public Set<Long> getTruncateInvalidTx()
TransactionEdit.State.TRUNCATE_INVALID_TX
public long getTruncateInvalidTxTime()
TransactionEdit.State.TRUNCATE_INVALID_TX
public long getParentWritePointer()
TransactionEdit.State.CHECKPOINT
public long[] getCheckpointPointers()
TransactionEdit.State.ABORTED
.public static TransactionEdit createStarted(long writePointer, long visibilityUpperBound, long expirationDate, TransactionType type)
TransactionEdit.State.INPROGRESS
state.public static TransactionEdit createCommitting(long writePointer, Set<ChangeId> changes)
TransactionEdit.State.COMMITTING
state.public static TransactionEdit createCommitted(long writePointer, Set<ChangeId> changes, long nextWritePointer, boolean canCommit)
TransactionEdit.State.COMMITTED
state.public static TransactionEdit createAborted(long writePointer, TransactionType type, long[] checkpointPointers)
TransactionEdit.State.ABORTED
state.public static TransactionEdit createInvalid(long writePointer)
TransactionEdit.State.INVALID
state.public static TransactionEdit createMoveWatermark(long writePointer)
TransactionEdit.State.MOVE_WATERMARK
state.public static TransactionEdit createTruncateInvalidTx(Set<Long> truncateInvalidTx)
TransactionEdit.State.TRUNCATE_INVALID_TX
state.public static TransactionEdit createTruncateInvalidTxBefore(long truncateInvalidTxTime)
TransactionEdit.State.TRUNCATE_INVALID_TX
state.public static TransactionEdit createCheckpoint(long writePointer, long parentWritePointer)
TransactionEdit.State.CHECKPOINT
state.public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
Copyright © 2016 The Apache Software Foundation. All rights reserved.