Class BlockfileSequentialValueBlockCodec
java.lang.Object
io.datarouter.bytes.blockfile.encoding.valueblock.impl.BlockfileSequentialValueBlockCodec
- All Implemented Interfaces:
BlockfileValueBlockCodec
Rows are appended without any offset dictionary.
Slow for point queries because we must decode all entries rather than something like binary searching.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.datarouter.bytes.blockfile.encoding.valueblock.BlockfileValueBlockCodec
BlockfileValueBlockCodec.BlockfileEncodedValueBlock, BlockfileValueBlockCodec.BlockfileValueBlockRows -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecode(BlockfileValueBlockCodec.BlockfileEncodedValueBlock encodedBlock, BlockfileRowKeyRangeReader.BlockfileKeyRange keyRange) findLatestVersion(BlockfileValueBlockCodec.BlockfileEncodedValueBlock encodedBlock, byte[] key) io.datarouter.scanner.Scanner<BlockfileRow> scanAllVersions(BlockfileValueBlockCodec.BlockfileEncodedValueBlock encodedBlock, byte[] key) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.datarouter.bytes.blockfile.encoding.valueblock.BlockfileValueBlockCodec
containsKey, row
-
Constructor Details
-
BlockfileSequentialValueBlockCodec
public BlockfileSequentialValueBlockCodec()
-
-
Method Details
-
encode
public BlockfileValueBlockCodec.BlockfileEncodedValueBlock encode(BlockfileValueBlockCodec.BlockfileValueBlockRows input) - Specified by:
encodein interfaceBlockfileValueBlockCodec
-
decode
public BlockfileValueBlockCodec.BlockfileValueBlockRows decode(BlockfileValueBlockCodec.BlockfileEncodedValueBlock encodedBlock, BlockfileRowKeyRangeReader.BlockfileKeyRange keyRange) - Specified by:
decodein interfaceBlockfileValueBlockCodec
-
scanAllVersions
public io.datarouter.scanner.Scanner<BlockfileRow> scanAllVersions(BlockfileValueBlockCodec.BlockfileEncodedValueBlock encodedBlock, byte[] key) - Specified by:
scanAllVersionsin interfaceBlockfileValueBlockCodec
-
findLatestVersion
public Optional<BlockfileRow> findLatestVersion(BlockfileValueBlockCodec.BlockfileEncodedValueBlock encodedBlock, byte[] key) - Specified by:
findLatestVersionin interfaceBlockfileValueBlockCodec
-