public abstract class InStream extends InputStream
| Modifier | Constructor and Description |
|---|---|
protected |
InStream(boolean useVInts) |
| Modifier and Type | Method and Description |
|---|---|
static InStream |
create(String name,
ByteBuffer input,
com.facebook.hive.orc.CompressionCodec codec,
int bufferSize)
This should only be used if the data happens to already be in memory, e.g.
|
static InStream |
create(String name,
ByteBuffer input,
com.facebook.hive.orc.CompressionCodec codec,
int bufferSize,
boolean useVInts)
This should only be used if the data happens to already be in memory, e.g.
|
static InStream |
create(String name,
org.apache.hadoop.fs.FSDataInputStream file,
long streamOffset,
int streamLength,
com.facebook.hive.orc.CompressionCodec codec,
int bufferSize)
This should be used for creating streams to read file metadata, e.g.
|
static InStream |
create(String name,
org.apache.hadoop.fs.FSDataInputStream file,
long streamOffset,
int streamLength,
com.facebook.hive.orc.CompressionCodec codec,
int bufferSize,
boolean useVInts,
int readStrides) |
abstract int |
loadIndeces(List<OrcProto.RowIndexEntry> rowIndexEntries,
int startIndex)
Read in any indeces for the stream from the rowIndexEntries, startIndex is the index of the
first value to read from each rowIndexEntry.
|
static void |
read(org.apache.hadoop.fs.FSDataInputStream file,
long fileOffset,
byte[] array,
int arrayOffset,
int length) |
abstract void |
seek(int index) |
boolean |
useVInts() |
available, close, mark, markSupported, read, read, read, reset, skippublic abstract int loadIndeces(List<OrcProto.RowIndexEntry> rowIndexEntries, int startIndex)
public abstract void seek(int index)
throws IOException
IOExceptionpublic static InStream create(String name, org.apache.hadoop.fs.FSDataInputStream file, long streamOffset, int streamLength, com.facebook.hive.orc.CompressionCodec codec, int bufferSize) throws IOException
IOExceptionpublic static InStream create(String name, org.apache.hadoop.fs.FSDataInputStream file, long streamOffset, int streamLength, com.facebook.hive.orc.CompressionCodec codec, int bufferSize, boolean useVInts, int readStrides) throws IOException
IOExceptionpublic static InStream create(String name, ByteBuffer input, com.facebook.hive.orc.CompressionCodec codec, int bufferSize) throws IOException
IOExceptionpublic static InStream create(String name, ByteBuffer input, com.facebook.hive.orc.CompressionCodec codec, int bufferSize, boolean useVInts) throws IOException
IOExceptionpublic boolean useVInts()
public static void read(org.apache.hadoop.fs.FSDataInputStream file,
long fileOffset,
byte[] array,
int arrayOffset,
int length)
throws IOException
IOExceptionCopyright © 2013–2021. All rights reserved.