Class BlockfileWriterBuilder<T>
java.lang.Object
io.datarouter.bytes.blockfile.io.write.BlockfileWriterBuilder<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddListener(BlockfileListener listener) addListeners(BlockfileListener... listeners) build()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) setIndexFanOut(int indexFanOut) setMultipartWrite(boolean multipartWrite) setTargetIndexBlockSize(ByteLength optTargetIndexBlockSize) For dynamic index block sizing, for example to get large index blocks without estimating.setWriteThreads(io.datarouter.scanner.Threads writeThreads)
-
Constructor Details
-
BlockfileWriterBuilder
-
-
Method Details
-
setHeaderDictionary
-
addListener
-
addListeners
-
setEncodeBatchSize
-
setEncodeThreads
-
setValueBlockFormat
-
setIndexBlockFormat
-
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
-
setIndexFanOut
-
setTargetIndexBlockSize
For dynamic index block sizing, for example to get large index blocks without estimating. This will override the indexFanOut. -
build
-