public static class ParquetProperties.Builder extends Object
public ParquetProperties.Builder withPageSize(int pageSize)
pageSize - an integer size in bytespublic ParquetProperties.Builder withDictionaryEncoding(boolean enableDictionary)
enableDictionary - whether dictionary encoding should be enabledpublic ParquetProperties.Builder withDictionaryEncoding(String columnPath, boolean enableDictionary)
columnPath - the path of the column (dot-string)enableDictionary - whether dictionary encoding should be enabledpublic ParquetProperties.Builder withByteStreamSplitEncoding(boolean enableByteStreamSplit)
public ParquetProperties.Builder withDictionaryPageSize(int dictionaryPageSize)
dictionaryPageSize - an integer size in bytespublic ParquetProperties.Builder withWriterVersion(ParquetProperties.WriterVersion version)
format version.version - a WriterVersionpublic ParquetProperties.Builder withMinRowCountForPageSizeCheck(int min)
public ParquetProperties.Builder withMaxRowCountForPageSizeCheck(int max)
public ParquetProperties.Builder estimateRowCountForPageSizeCheck(boolean estimateNextSizeCheck)
public ParquetProperties.Builder withAllocator(ByteBufferAllocator allocator)
public ParquetProperties.Builder withValuesWriterFactory(ValuesWriterFactory factory)
public ParquetProperties.Builder withColumnIndexTruncateLength(int length)
public ParquetProperties.Builder withStatisticsTruncateLength(int length)
public ParquetProperties.Builder withMaxBloomFilterBytes(int maxBloomFilterBytes)
maxBloomFilterBytes - the max bytes of a Bloom filter bitset for a column.public ParquetProperties.Builder withBloomFilterNDV(String columnPath, long ndv)
withBloomFilterEnabled(String, boolean)).columnPath - the path of the column (dot-string)ndv - the NDV of the columnpublic ParquetProperties.Builder withBloomFilterEnabled(boolean enabled)
withBloomFilterEnabled(String, boolean).enabled - whether bloom filter shall be enabled for all columnspublic ParquetProperties.Builder withBloomFilterEnabled(String columnPath, boolean enabled)
withBloomFilterEnabled(boolean) with a
false value and then enable the bloom filters for the required columns one-by-one by invoking this
method or vice versa.columnPath - the path of the column (dot-string)enabled - whether bloom filter shall be enabledpublic ParquetProperties.Builder withPageRowCountLimit(int rowCount)
public ParquetProperties.Builder withPageWriteChecksumEnabled(boolean val)
public ParquetProperties build()
Copyright © 2021 The Apache Software Foundation. All rights reserved.