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 SnapshotCodec
public void encode(OutputStream out, TransactionSnapshot snapshot)
SnapshotCodec
encode
in interface SnapshotCodec
out
- the output stream to write tosnapshot
- the snapshot to encodepublic TransactionSnapshot decode(InputStream in)
SnapshotCodec
decode
in interface SnapshotCodec
in
- the input stream to read frompublic TransactionVisibilityState decodeTransactionVisibilityState(InputStream in)
SnapshotCodec
decodeTransactionVisibilityState
in interface SnapshotCodec
in
- the input stream to read fromTransactionVisibilityState
protected void encodeInProgress(BinaryEncoder encoder, Map<Long,TransactionManager.InProgressTx> inProgress) throws IOException
IOException
protected NavigableMap<Long,TransactionManager.InProgressTx> decodeInProgress(BinaryDecoder decoder) throws IOException
IOException
Copyright © 2018 The Apache Software Foundation. All rights reserved.