public interface WriterContext
| Modifier and Type | Method and Description | 
|---|---|
| boolean | buildIndex()Should be building the row index. | 
| OutStream | createStream(StreamName name)Create a stream to store part of a column. | 
| boolean[] | getBloomFilterColumns()Get the bloom filter columns | 
| double | getBloomFilterFPP()Get bloom filter false positive percentage. | 
| OrcFile.BloomFilterVersion | getBloomFilterVersion() | 
| Configuration | getConfiguration()Get the writer's configuration. | 
| double | getDictionaryKeySizeThreshold(int columnId)Get the dictionary key size threshold. | 
| OrcFile.EncodingStrategy | getEncodingStrategy()Get the encoding strategy to use. | 
| WriterEncryptionVariant | getEncryption(int columnId)Get the encryption for the given column. | 
| PhysicalWriter | getPhysicalWriter()Get the PhysicalWriter. | 
| boolean | getProlepticGregorian()Should we write the data using the proleptic Gregorian calendar? | 
| int | getRowIndexStride()Get the stride rate of the row index. | 
| DataMask | getUnencryptedMask(int columnId)Get the mask for the unencrypted variant. | 
| boolean | getUseUTCTimestamp()Should the writer use UTC as the timezone? | 
| OrcFile.Version | getVersion()Get the version of the file to write. | 
| boolean | isCompressed()Is the ORC file compressed? | 
| void | setEncoding(int column,
           WriterEncryptionVariant variant,
           OrcProto.ColumnEncoding encoding)Set the encoding for the current stripe. | 
| void | writeBloomFilter(StreamName name,
                OrcProto.BloomFilterIndex.Builder bloom) | 
| void | writeIndex(StreamName name,
          OrcProto.RowIndex.Builder index) | 
| void | writeStatistics(StreamName name,
               OrcProto.ColumnStatistics.Builder stats)Set the column statistics for the stripe or file. | 
OutStream createStream(StreamName name) throws IOException
name - the name of the streamIOExceptionint getRowIndexStride()
boolean buildIndex()
boolean isCompressed()
OrcFile.EncodingStrategy getEncodingStrategy()
boolean[] getBloomFilterColumns()
double getBloomFilterFPP()
Configuration getConfiguration()
OrcFile.Version getVersion()
OrcFile.BloomFilterVersion getBloomFilterVersion()
void writeIndex(StreamName name, OrcProto.RowIndex.Builder index) throws IOException
IOExceptionvoid writeBloomFilter(StreamName name, OrcProto.BloomFilterIndex.Builder bloom) throws IOException
IOExceptionDataMask getUnencryptedMask(int columnId)
columnId - the column idWriterEncryptionVariant getEncryption(int columnId)
columnId - the root column idPhysicalWriter getPhysicalWriter()
void setEncoding(int column,
                 WriterEncryptionVariant variant,
                 OrcProto.ColumnEncoding encoding)
column - the column identifiervariant - the encryption variantencoding - the encoding for this stripevoid writeStatistics(StreamName name, OrcProto.ColumnStatistics.Builder stats) throws IOException
name - the name of the statistics streamstats - the statistics for this column in this stripeIOExceptionboolean getUseUTCTimestamp()
double getDictionaryKeySizeThreshold(int columnId)
columnId - the column idboolean getProlepticGregorian()
Copyright © 2013–2023 The Apache Software Foundation. All rights reserved.