|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hive.ql.io.orc.OrcFile
public final class OrcFile
Contains factory methods to read or write ORC files.
Nested Class Summary | |
---|---|
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. |
Field Summary | |
---|---|
static String |
BLOCK_PADDING
|
static String |
COMPRESSION
|
static String |
COMPRESSION_BLOCK_SIZE
|
static String |
ENABLE_INDEXES
|
static String |
MAGIC
|
static String |
ROW_INDEX_STRIDE
|
static String |
STRIPE_SIZE
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String MAGIC
public static final String COMPRESSION
public static final String COMPRESSION_BLOCK_SIZE
public static final String STRIPE_SIZE
public static final String ROW_INDEX_STRIDE
public static final String ENABLE_INDEXES
public static final String BLOCK_PADDING
Method Detail |
---|
public static Reader createReader(FileSystem fs, Path path) throws IOException
fs
- file systempath
- file name to read from
IOException
public static OrcFile.WriterOptions writerOptions(Configuration conf)
public static Writer createWriter(Path path, OrcFile.WriterOptions opts) throws IOException
path
- filename to write tooptions
- the options
IOException
public static Writer createWriter(FileSystem fs, Path path, 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 indexes
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |