Package | Description |
---|---|
co.cask.tephra.persist | |
org.apache.tephra |
This package contains implementations of the transaction system v2.
|
org.apache.tephra.persist |
This package contains interfaces and implementations for persisting transaction state.
|
Modifier and Type | Method and Description |
---|---|
TransactionType |
TransactionEdit.getType()
Deprecated.
Returns the transaction type.
|
Modifier and Type | Method and Description |
---|---|
static TransactionEdit |
TransactionEdit.createAborted(long writePointer,
TransactionType type,
long[] checkpointPointers)
Deprecated.
Creates a new instance in the
TransactionEdit.State.ABORTED state. |
static TransactionEdit |
TransactionEdit.createStarted(long writePointer,
long visibilityUpperBound,
long expirationDate,
TransactionType type)
Deprecated.
Creates a new instance in the
TransactionEdit.State.INPROGRESS state. |
Modifier and Type | Method and Description |
---|---|
TransactionType |
TransactionManager.InProgressTx.getType() |
TransactionType |
Transaction.getType() |
static TransactionType |
TransactionType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TransactionType[] |
TransactionType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Constructor and Description |
---|
Transaction(long readPointer,
long txId,
long[] invalids,
long[] inProgress,
long firstShortInProgress,
TransactionType type)
Creates a new transaction.
|
Transaction(long readPointer,
long txId,
long writePointer,
long[] invalids,
long[] inProgress,
long firstShortInProgress,
TransactionType type,
long[] checkpointPointers,
Transaction.VisibilityLevel visibilityLevel)
Creates a new transaction.
|
TransactionManager.InProgressTx(long visibilityUpperBound,
long expiration,
TransactionType type) |
TransactionManager.InProgressTx(long visibilityUpperBound,
long expiration,
TransactionType type,
it.unimi.dsi.fastutil.longs.LongArrayList checkpointWritePointers) |
Modifier and Type | Method and Description |
---|---|
TransactionType |
TransactionEdit.getType()
Returns the transaction type.
|
Modifier and Type | Method and Description |
---|---|
static TransactionEdit |
TransactionEdit.createAborted(long writePointer,
TransactionType type,
long[] checkpointPointers)
Creates a new instance in the
TransactionEdit.State.ABORTED state. |
static TransactionEdit |
TransactionEdit.createStarted(long writePointer,
long visibilityUpperBound,
long expirationDate,
TransactionType type)
Creates a new instance in the
TransactionEdit.State.INPROGRESS state. |
Copyright © 2016 The Apache Software Foundation. All rights reserved.