Class KvFileWriterBuilder<T>
java.lang.Object
io.datarouter.bytes.kvfile.io.write.KvFileWriterBuilder<T>
-
Constructor Summary
ConstructorsConstructorDescriptionKvFileWriterBuilder(KvFile<T> kvFile, Codec<T, KvFileEntry> kvCodec, String pathAndFile, KvFileBlockFormat kvBlockFormat) -
Method Summary
Modifier and TypeMethodDescriptionbuild()When you know the total file size will be small enough to buffer everything in memory.setChecksummer(BlockfileChecksummer checksummer) setCompressor(BlockfileCompressor compressor) setEncodeBatchSize(int encodeBatchSize) setEncodeThreads(io.datarouter.scanner.Threads encodeThreads) setFooterDictionarySupplier(Supplier<BinaryDictionary> footerDictionarySupplier) setHeaderDictionary(BinaryDictionary headerDictionary) setMultipartWrite(boolean multipartWrite) setWriteThreads(io.datarouter.scanner.Threads writeThreads)
-
Constructor Details
-
KvFileWriterBuilder
public KvFileWriterBuilder(KvFile<T> kvFile, Codec<T, KvFileEntry> kvCodec, String pathAndFile, KvFileBlockFormat kvBlockFormat)
-
-
Method Details
-
setEncodeBatchSize
-
setEncodeThreads
-
setCompressor
-
setChecksummer
-
setMultipartWrite
-
disableMultipartWrite
When you know the total file size will be small enough to buffer everything in memory. Removes the overhead of a multipart upload. -
setWriteThreads
-
setHeaderDictionary
-
build
-