public final class OrcFile
extends org.apache.orc.OrcFile
Modifier and Type | Class and Description |
---|---|
static class |
OrcFile.ReaderOptions |
static class |
OrcFile.WriterOptions
Options for creating ORC file writers.
|
org.apache.orc.OrcFile.BloomFilterVersion, org.apache.orc.OrcFile.CompressionStrategy, org.apache.orc.OrcFile.EncodingStrategy, org.apache.orc.OrcFile.Version, org.apache.orc.OrcFile.WriterCallback, org.apache.orc.OrcFile.WriterContext, org.apache.orc.OrcFile.WriterVersion
Modifier | Constructor and Description |
---|---|
protected |
OrcFile() |
Modifier and Type | Method and Description |
---|---|
static Reader |
createReader(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path path)
Create an ORC file reader.
|
static Reader |
createReader(org.apache.hadoop.fs.Path path,
OrcFile.ReaderOptions options) |
static Writer |
createWriter(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path path,
org.apache.hadoop.conf.Configuration conf,
ObjectInspector inspector,
long stripeSize,
CompressionKind compress,
int bufferSize,
int rowIndexStride)
Create an ORC file writer.
|
static Writer |
createWriter(org.apache.hadoop.fs.Path path,
OrcFile.WriterOptions opts)
Create an ORC file writer.
|
static OrcFile.ReaderOptions |
readerOptions(org.apache.hadoop.conf.Configuration conf) |
static OrcFile.WriterOptions |
writerOptions(org.apache.hadoop.conf.Configuration conf)
Create a set of writer options based on a configuration.
|
static OrcFile.WriterOptions |
writerOptions(Properties tableProperties,
org.apache.hadoop.conf.Configuration conf)
Create a set of write options based on a set of table properties and
configuration.
|
public static Reader createReader(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path) throws IOException
fs
- file systempath
- file name to read fromIOException
public static OrcFile.ReaderOptions readerOptions(org.apache.hadoop.conf.Configuration conf)
public static Reader createReader(org.apache.hadoop.fs.Path path, OrcFile.ReaderOptions options) throws IOException
IOException
public static OrcFile.WriterOptions writerOptions(org.apache.hadoop.conf.Configuration conf)
conf
- the configuration to use for valuespublic static OrcFile.WriterOptions writerOptions(Properties tableProperties, org.apache.hadoop.conf.Configuration conf)
tableProperties
- the properties of the tableconf
- the configuration of the querypublic static Writer createWriter(org.apache.hadoop.fs.Path path, OrcFile.WriterOptions opts) throws IOException
path
- filename to write toopts
- the optionsIOException
public static Writer createWriter(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path, org.apache.hadoop.conf.Configuration conf, ObjectInspector inspector, long stripeSize, CompressionKind compress, int bufferSize, int rowIndexStride) throws IOException
fs
- file systempath
- filename to write toinspector
- the ObjectInspector that inspects the rowsstripeSize
- the number of bytes in a stripecompress
- how to compress the filebufferSize
- the number of bytes to compress at oncerowIndexStride
- the number of rows between row index entries or
0 to suppress all indexesIOException
Copyright © 2021 The Apache Software Foundation. All rights reserved.