public class OrcFile extends Object
Modifier and Type | Class and Description |
---|---|
static class |
OrcFile.BloomFilterVersion |
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.WriterImplementation |
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
The WriterVersion for this version of the software.
|
static String |
MAGIC |
Modifier | Constructor and Description |
---|---|
protected |
OrcFile() |
Modifier and Type | Method and Description |
---|---|
static Reader |
createReader(Path path,
OrcFile.ReaderOptions options) |
static Writer |
createWriter(Path path,
OrcFile.WriterOptions opts)
Create an ORC file writer.
|
static List<Path> |
mergeFiles(Path outputPath,
OrcFile.WriterOptions options,
List<Path> inputFiles)
Merges multiple ORC files that all have the same schema to produce
a single ORC file.
|
static OrcFile.ReaderOptions |
readerOptions(Configuration conf) |
static OrcFile.WriterOptions |
writerOptions(Configuration conf)
Create a set of writer options based on a configuration.
|
static OrcFile.WriterOptions |
writerOptions(Properties tableProperties,
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(Configuration conf)
public static Reader createReader(Path path, OrcFile.ReaderOptions options) throws IOException
IOException
public static OrcFile.WriterOptions writerOptions(Configuration conf)
conf
- the configuration to use for valuespublic static OrcFile.WriterOptions writerOptions(Properties tableProperties, Configuration conf)
tableProperties
- the properties of the tableconf
- the configuration of the querypublic static Writer createWriter(Path path, OrcFile.WriterOptions opts) throws IOException
path
- filename to write toopts
- the optionsIOException
public static List<Path> mergeFiles(Path outputPath, OrcFile.WriterOptions options, List<Path> inputFiles) throws IOException
outputPath
- the output fileoptions
- the options for writing with although the options related
to the input files' encodings are overriddeninputFiles
- the list of files to mergeIOException
Copyright © 2013–2023 The Apache Software Foundation. All rights reserved.