SnapshotCodecV2.@Deprecated public class DefaultSnapshotCodec extends Object implements SnapshotCodec
TransactionSnapshot
and its elements to byte[].| Constructor and Description |
|---|
DefaultSnapshotCodec()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
TransactionSnapshot |
decode(InputStream in)
Deprecated.
Decode a transaction snapshot from an input stream.
|
protected NavigableMap<Long,TransactionManager.InProgressTx> |
decodeInProgress(BinaryDecoder decoder)
Deprecated.
|
TransactionVisibilityState |
decodeTransactionVisibilityState(InputStream in)
Deprecated.
Decode transaction visibility state from an input stream.
|
void |
encode(OutputStream out,
TransactionSnapshot snapshot)
Deprecated.
Encode a transaction snapshot into an output stream.
|
protected void |
encodeInProgress(BinaryEncoder encoder,
Map<Long,TransactionManager.InProgressTx> inProgress)
Deprecated.
|
int |
getVersion()
Deprecated.
|
public int getVersion()
getVersion in interface SnapshotCodecpublic void encode(OutputStream out, TransactionSnapshot snapshot)
SnapshotCodecencode in interface SnapshotCodecout - the output stream to write tosnapshot - the snapshot to encodepublic TransactionSnapshot decode(InputStream in)
SnapshotCodecdecode in interface SnapshotCodecin - the input stream to read frompublic TransactionVisibilityState decodeTransactionVisibilityState(InputStream in)
SnapshotCodecdecodeTransactionVisibilityState in interface SnapshotCodecin - the input stream to read fromTransactionVisibilityStateprotected void encodeInProgress(BinaryEncoder encoder, Map<Long,TransactionManager.InProgressTx> inProgress) throws IOException
IOExceptionprotected NavigableMap<Long,TransactionManager.InProgressTx> decodeInProgress(BinaryDecoder decoder) throws IOException
IOExceptionCopyright © 2017 The Apache Software Foundation. All rights reserved.