Class BlockfileHeaderBlock.BlockfileHeaderCodec
java.lang.Object
io.datarouter.bytes.blockfile.block.decoded.BlockfileHeaderBlock.BlockfileHeaderCodec
- All Implemented Interfaces:
Codec<BlockfileHeaderBlock,byte[]>
- Enclosing class:
BlockfileHeaderBlock
public static class BlockfileHeaderBlock.BlockfileHeaderCodec
extends Object
implements Codec<BlockfileHeaderBlock,byte[]>
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.datarouter.bytes.Codec
Codec.FunctionalCodec<A,B>, Codec.NullPassthroughCodec<A, B> -
Field Summary
Fields inherited from interface io.datarouter.bytes.Codec
IDENTITY_INSTANCE -
Constructor Summary
ConstructorsConstructorDescriptionBlockfileHeaderCodec(BlockfileValueBlockFormats registeredValueBlockFormats, BlockfileIndexBlockFormats registeredIndexBlockFormats, BlockfileCompressors registeredCompressors, BlockfileChecksummers registeredChecksummers) -
Method Summary
Modifier and TypeMethodDescriptiondecode(byte[] valueBytes) byte[]encode(BlockfileHeaderBlock value) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.datarouter.bytes.Codec
encodeAndDecode
-
Constructor Details
-
BlockfileHeaderCodec
public BlockfileHeaderCodec(BlockfileValueBlockFormats registeredValueBlockFormats, BlockfileIndexBlockFormats registeredIndexBlockFormats, BlockfileCompressors registeredCompressors, BlockfileChecksummers registeredChecksummers)
-
-
Method Details
-
encode
- Specified by:
encodein interfaceCodec<BlockfileHeaderBlock,byte[]>
-
decode
- Specified by:
decodein interfaceCodec<BlockfileHeaderBlock,byte[]>
-