public class SnapshotCodecProvider extends Object implements SnapshotCodec
Constructor and Description |
---|
SnapshotCodecProvider(org.apache.hadoop.conf.Configuration configuration) |
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() |
@Inject public SnapshotCodecProvider(org.apache.hadoop.conf.Configuration configuration)
public int getVersion()
getVersion
in interface SnapshotCodec
public 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
public void encode(OutputStream out, TransactionSnapshot snapshot)
SnapshotCodec
encode
in interface SnapshotCodec
out
- the output stream to write tosnapshot
- the snapshot to encodeCopyright © 2016 The Apache Software Foundation. All rights reserved.