public final class OrcFile extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
OrcFile.KeyWrapper |
static class |
OrcFile.ValueWrapper |
| Modifier and Type | Field and Description |
|---|---|
static String |
COMPRESSION |
static String |
COMPRESSION_BLOCK_SIZE |
static String |
ENABLE_INDEXES |
static String |
MAGIC |
static String |
ROW_INDEX_STRIDE |
static String |
STRIPE_SIZE |
| Modifier and Type | Method and Description |
|---|---|
static Reader |
createReader(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path path,
org.apache.hadoop.conf.Configuration conf)
Create an ORC file reader.
|
static Writer |
createWriter(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path path,
org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector inspector,
long stripeSize,
CompressionKind compress,
int bufferSize,
int rowIndexStride)
Create an ORC file streamFactory.
|
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 Reader createReader(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path, org.apache.hadoop.conf.Configuration conf) throws IOException
fs - file systempath - file name to read fromIOExceptionpublic static Writer createWriter(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hive.serde2.objectinspector.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 indexesIOExceptionCopyright © 2013–2021. All rights reserved.