Modifier and Type | Class and Description |
---|---|
static class |
OrcFile.CompressionStrategy |
static class |
OrcFile.EncodingStrategy |
static class |
OrcFile.ReaderOptions |
static class |
OrcFile.Version
Create a version number for the ORC file format, so that we can add
non-forward compatible changes in the future.
|
static interface |
OrcFile.WriterCallback |
static interface |
OrcFile.WriterContext |
static class |
OrcFile.WriterOptions
Options for creating ORC file writers.
|
static class |
OrcFile.WriterVersion
Records the version of the writer in terms of which bugs have been fixed.
|
Modifier and Type | Field and Description |
---|---|
static OrcFile.WriterVersion |
CURRENT_WRITER |
static String |
MAGIC |
Modifier | Constructor and Description |
---|---|
protected |
OrcFile() |
Modifier and Type | Method and Description |
---|---|
static Reader |
createReader(org.apache.hadoop.fs.Path path,
OrcFile.ReaderOptions options) |
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 final String MAGIC
public static final OrcFile.WriterVersion CURRENT_WRITER
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
Copyright © 2016 The Apache Software Foundation. All rights reserved.