public interface WriterContext
Modifier and Type | Method and Description |
---|---|
boolean |
buildIndex()
Should be building the row index.
|
OutStream |
createStream(int column,
OrcProto.Stream.Kind kind)
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.
|
OrcFile.EncodingStrategy |
getEncodingStrategy()
Get the encoding strategy to use.
|
PhysicalWriter |
getPhysicalWriter()
Get the PhysicalWriter.
|
int |
getRowIndexStride()
Get the stride rate of the row index.
|
boolean |
getUseUTCTimestamp() |
OrcFile.Version |
getVersion()
Get the version of the file to write.
|
boolean |
isCompressed()
Is the ORC file compressed?
|
void |
writeBloomFilter(StreamName name,
OrcProto.BloomFilterIndex.Builder bloom) |
void |
writeIndex(StreamName name,
OrcProto.RowIndex.Builder index) |
OutStream createStream(int column, OrcProto.Stream.Kind kind) throws IOException
column
- the column id for the streamkind
- the kind of streamIOException
int getRowIndexStride()
boolean buildIndex()
boolean isCompressed()
OrcFile.EncodingStrategy getEncodingStrategy()
boolean[] getBloomFilterColumns()
double getBloomFilterFPP()
Configuration getConfiguration()
OrcFile.Version getVersion()
PhysicalWriter getPhysicalWriter()
OrcFile.BloomFilterVersion getBloomFilterVersion()
void writeIndex(StreamName name, OrcProto.RowIndex.Builder index) throws IOException
IOException
void writeBloomFilter(StreamName name, OrcProto.BloomFilterIndex.Builder bloom) throws IOException
IOException
boolean getUseUTCTimestamp()
Copyright © 2013–2018 The Apache Software Foundation. All rights reserved.