public abstract class AbstractSnapshotCodec extends Object implements co.cask.tephra.snapshot.SnapshotCodec
TransactionSnapshot and
its elements to byte[].| Constructor and Description |
|---|
AbstractSnapshotCodec() |
| Modifier and Type | Method and Description |
|---|---|
co.cask.tephra.persist.TransactionSnapshot |
decode(InputStream in) |
protected abstract NavigableMap<Long,co.cask.tephra.TransactionManager.InProgressTx> |
decodeInProgress(co.cask.tephra.snapshot.BinaryDecoder decoder) |
protected void |
decodeObsoleteAttributes(co.cask.tephra.snapshot.BinaryDecoder decoder)
Deprecated.
|
co.cask.tephra.persist.TransactionVisibilityState |
decodeTransactionVisibilityState(InputStream in) |
void |
encode(OutputStream out,
co.cask.tephra.persist.TransactionSnapshot snapshot) |
protected abstract void |
encodeInProgress(co.cask.tephra.snapshot.BinaryEncoder encoder,
Map<Long,co.cask.tephra.TransactionManager.InProgressTx> inProgress) |
protected void |
encodeObsoleteAttributes(co.cask.tephra.snapshot.BinaryEncoder encoder)
Deprecated.
|
abstract int |
getVersion() |
public abstract int getVersion()
getVersion in interface co.cask.tephra.snapshot.SnapshotCodecprotected abstract NavigableMap<Long,co.cask.tephra.TransactionManager.InProgressTx> decodeInProgress(co.cask.tephra.snapshot.BinaryDecoder decoder) throws IOException
IOExceptionprotected abstract void encodeInProgress(co.cask.tephra.snapshot.BinaryEncoder encoder,
Map<Long,co.cask.tephra.TransactionManager.InProgressTx> inProgress)
throws IOException
IOExceptionpublic void encode(OutputStream out, co.cask.tephra.persist.TransactionSnapshot snapshot)
encode in interface co.cask.tephra.snapshot.SnapshotCodecpublic co.cask.tephra.persist.TransactionSnapshot decode(InputStream in)
decode in interface co.cask.tephra.snapshot.SnapshotCodecpublic co.cask.tephra.persist.TransactionVisibilityState decodeTransactionVisibilityState(InputStream in)
decodeTransactionVisibilityState in interface co.cask.tephra.snapshot.SnapshotCodec@Deprecated protected void decodeObsoleteAttributes(co.cask.tephra.snapshot.BinaryDecoder decoder) throws IOException
IOException@Deprecated protected void encodeObsoleteAttributes(co.cask.tephra.snapshot.BinaryEncoder encoder) throws IOException
IOExceptionCopyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.