public final class OrcFile
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
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 class |
OrcFile.WriterOptions
Options for creating ORC file writers.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BLOCK_PADDING |
static java.lang.String |
COMPRESSION |
static java.lang.String |
COMPRESSION_BLOCK_SIZE |
static java.lang.String |
ENABLE_INDEXES |
static java.lang.String |
MAGIC |
static java.lang.String |
ROW_INDEX_STRIDE |
static java.lang.String |
STRIPE_SIZE |
Modifier and Type | Method and Description |
---|---|
static Reader |
createReader(FileSystem fs,
Path path)
Create an ORC file reader.
|
static Writer |
createWriter(FileSystem fs,
Path path,
Configuration conf,
ObjectInspector inspector,
long stripeSize,
CompressionKind compress,
int bufferSize,
int rowIndexStride)
Create an ORC file writer.
|
static Writer |
createWriter(Path path,
OrcFile.WriterOptions opts)
Create an ORC file writer.
|
static OrcFile.WriterOptions |
writerOptions(Configuration conf)
Create a default set of write options that can be modified.
|
public static final java.lang.String MAGIC
public static final java.lang.String COMPRESSION
public static final java.lang.String COMPRESSION_BLOCK_SIZE
public static final java.lang.String STRIPE_SIZE
public static final java.lang.String ROW_INDEX_STRIDE
public static final java.lang.String ENABLE_INDEXES
public static final java.lang.String BLOCK_PADDING
public static Reader createReader(FileSystem fs, Path path) throws java.io.IOException
fs
- file systempath
- file name to read fromjava.io.IOException
public static OrcFile.WriterOptions writerOptions(Configuration conf)
public static Writer createWriter(Path path, OrcFile.WriterOptions opts) throws java.io.IOException
path
- filename to write tooptions
- the optionsjava.io.IOException
public static Writer createWriter(FileSystem fs, Path path, Configuration conf, ObjectInspector inspector, long stripeSize, CompressionKind compress, int bufferSize, int rowIndexStride) throws java.io.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 indexesjava.io.IOException
Copyright © 2012 The Apache Software Foundation