Modifier and Type | Method and Description |
---|---|
protected OrcFile.WriterOptions |
batchSize(int maxSize) |
OrcFile.WriterOptions |
blockPadding(boolean value)
Sets whether the HDFS blocks are padded to prevent stripes from
straddling blocks.
|
OrcFile.WriterOptions |
blockSize(long value)
Set the file system block size for the file.
|
OrcFile.WriterOptions |
bloomFilterColumns(String columns)
Comma separated values of column names for which bloom filter is to be created.
|
OrcFile.WriterOptions |
bloomFilterFpp(double fpp)
Specify the false positive probability for bloom filter.
|
OrcFile.WriterOptions |
bufferSize(int value)
The size of the memory buffers used for compressing and storing the
stripe in memory.
|
OrcFile.WriterOptions |
callback(org.apache.orc.OrcFile.WriterCallback callback)
Add a listener for when the stripe and file are about to be closed.
|
OrcFile.WriterOptions |
compress(CompressionKind value)
Sets the generic compression that is used to compress the data.
|
OrcFile.WriterOptions |
compress(org.apache.orc.CompressionKind value)
Sets the generic compression that is used to compress the data.
|
OrcFile.WriterOptions |
encodingStrategy(org.apache.orc.OrcFile.EncodingStrategy strategy)
Sets the encoding strategy that is used to encode the data.
|
OrcFile.WriterOptions |
fileSystem(org.apache.hadoop.fs.FileSystem value)
Provide the filesystem for the path, if the client has it available.
|
OrcFile.WriterOptions |
inspector(ObjectInspector value)
A required option that sets the object inspector for the rows.
|
OrcFile.WriterOptions |
memory(org.apache.orc.MemoryManager value)
A package local option to set the memory manager.
|
OrcFile.WriterOptions |
paddingTolerance(double value)
Sets the tolerance for block padding as a percentage of stripe size.
|
OrcFile.WriterOptions |
physicalWriter(org.apache.orc.PhysicalWriter writer) |
OrcFile.WriterOptions |
rowIndexStride(int value)
Set the distance between entries in the row index.
|
OrcFile.WriterOptions |
setSchema(org.apache.orc.TypeDescription schema)
Set the schema for the file.
|
OrcFile.WriterOptions |
stripeSize(long value)
Set the stripe size for the file.
|
OrcFile.WriterOptions |
useUTCTimestamp(boolean value) |
OrcFile.WriterOptions |
version(org.apache.orc.OrcFile.Version value)
Sets the version of the file that will be written.
|
bloomFilterVersion, clone, directEncodingColumns, enforceBufferSize, getBlockPadding, getBlockSize, getBloomFilterColumns, getBloomFilterFpp, getBloomFilterVersion, getBufferSize, getCallback, getCompress, getCompressionStrategy, getConfiguration, getDirectEncodingColumns, getEncodingStrategy, getFileSystem, getHadoopShims, getMemoryManager, getOverwrite, getPaddingTolerance, getPhysicalWriter, getRowIndexStride, getSchema, getStripeSize, getUseUTCTimestamp, getVersion, getWriterVersion, getWriteVariableLengthBlocks, isEnforceBufferSize, overwrite, setShims, writerVersion, writeVariableLengthBlocks
public OrcFile.WriterOptions inspector(ObjectInspector value)
public OrcFile.WriterOptions setSchema(org.apache.orc.TypeDescription schema)
setSchema
in class org.apache.orc.OrcFile.WriterOptions
schema
- the schema for the file.public OrcFile.WriterOptions fileSystem(org.apache.hadoop.fs.FileSystem value)
fileSystem
in class org.apache.orc.OrcFile.WriterOptions
public OrcFile.WriterOptions stripeSize(long value)
stripeSize
in class org.apache.orc.OrcFile.WriterOptions
public OrcFile.WriterOptions blockSize(long value)
blockSize
in class org.apache.orc.OrcFile.WriterOptions
public OrcFile.WriterOptions rowIndexStride(int value)
rowIndexStride
in class org.apache.orc.OrcFile.WriterOptions
public OrcFile.WriterOptions bufferSize(int value)
bufferSize
in class org.apache.orc.OrcFile.WriterOptions
public OrcFile.WriterOptions blockPadding(boolean value)
blockPadding
in class org.apache.orc.OrcFile.WriterOptions
public OrcFile.WriterOptions encodingStrategy(org.apache.orc.OrcFile.EncodingStrategy strategy)
encodingStrategy
in class org.apache.orc.OrcFile.WriterOptions
public OrcFile.WriterOptions paddingTolerance(double value)
paddingTolerance
in class org.apache.orc.OrcFile.WriterOptions
public OrcFile.WriterOptions bloomFilterColumns(String columns)
bloomFilterColumns
in class org.apache.orc.OrcFile.WriterOptions
public OrcFile.WriterOptions bloomFilterFpp(double fpp)
bloomFilterFpp
in class org.apache.orc.OrcFile.WriterOptions
fpp
- - false positive probabilitypublic OrcFile.WriterOptions compress(CompressionKind value)
public OrcFile.WriterOptions compress(org.apache.orc.CompressionKind value)
compress
in class org.apache.orc.OrcFile.WriterOptions
public OrcFile.WriterOptions version(org.apache.orc.OrcFile.Version value)
version
in class org.apache.orc.OrcFile.WriterOptions
public OrcFile.WriterOptions callback(org.apache.orc.OrcFile.WriterCallback callback)
callback
in class org.apache.orc.OrcFile.WriterOptions
callback
- the object to be called when the stripe is closedpublic OrcFile.WriterOptions memory(org.apache.orc.MemoryManager value)
memory
in class org.apache.orc.OrcFile.WriterOptions
protected OrcFile.WriterOptions batchSize(int maxSize)
public OrcFile.WriterOptions physicalWriter(org.apache.orc.PhysicalWriter writer)
physicalWriter
in class org.apache.orc.OrcFile.WriterOptions
public OrcFile.WriterOptions useUTCTimestamp(boolean value)
useUTCTimestamp
in class org.apache.orc.OrcFile.WriterOptions
Copyright © 2019 The Apache Software Foundation. All rights reserved.