public interface SnapshotCodec
Modifier and Type | Method and Description |
---|---|
TransactionSnapshot |
decode(InputStream in)
Decode a transaction snapshot from an input stream.
|
TransactionVisibilityState |
decodeTransactionVisibilityState(InputStream in)
Decode transaction visibility state from an input stream.
|
void |
encode(OutputStream out,
TransactionSnapshot snapshot)
Encode a transaction snapshot into an output stream.
|
int |
getVersion() |
int getVersion()
void encode(OutputStream out, TransactionSnapshot snapshot)
out
- the output stream to write tosnapshot
- the snapshot to encodeTransactionSnapshot decode(InputStream in)
in
- the input stream to read fromTransactionVisibilityState decodeTransactionVisibilityState(InputStream in)
in
- the input stream to read fromTransactionVisibilityState
Copyright © 2016 The Apache Software Foundation. All rights reserved.