Package io.datarouter.bytes.kvfile
Class KvFileCodec<T>
java.lang.Object
io.datarouter.bytes.kvfile.KvFileCodec<T>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionKvFileCodec(Codec<T, KvFileEntry> codec) KvFileCodec(Codec<T, KvFileEntry> codec, ByteLength blockSize) -
Method Summary
Modifier and TypeMethodDescriptiondecode(KvFileEntry entry) decodeBlocksToLists(List<KvFileBlock> blocks) decodeBlockToList(KvFileBlock block) io.datarouter.scanner.Scanner<T>decodeBlockToScanner(KvFileBlock block) io.datarouter.scanner.Scanner<T>decodeMulti(byte[] bytes) io.datarouter.scanner.Scanner<T>decodeMulti(InputStream inputStream) byte[]toByteArray(Collection<T> items) io.datarouter.scanner.Scanner<byte[]>toByteArrays(io.datarouter.scanner.Scanner<T> items) toInputStream(io.datarouter.scanner.Scanner<T> items)
-
Field Details
-
codec
-
blockSize
-
-
Constructor Details
-
KvFileCodec
-
KvFileCodec
-
-
Method Details
-
toByteArrays
-
toByteArray
-
toInputStream
-
decode
-
decodeMulti
-
decodeMulti
-
decodeBlockToScanner
-
decodeBlockToList
-
decodeBlocksToLists
-