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 SnapshotCodecpublic 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 fromTransactionVisibilityStatepublic void encode(OutputStream out, TransactionSnapshot snapshot)
SnapshotCodecencode in interface SnapshotCodecout - the output stream to write tosnapshot - the snapshot to encodeCopyright © 2017 The Apache Software Foundation. All rights reserved.