public final class OrcInputStream extends InputStream
Constructor and Description |
---|
OrcInputStream(OrcDataSourceId orcDataSourceId,
io.airlift.slice.FixedLengthSliceInput sliceInput,
Optional<OrcDecompressor> decompressor,
OrcAggregatedMemoryContext systemMemoryContext,
long sliceInputRetainedSizeInBytes) |
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
close() |
long |
getCheckpoint() |
OrcDataSourceId |
getOrcDataSourceId() |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b,
int off,
int length) |
double |
readDouble() |
long |
readDwrfLong(OrcType.OrcTypeKind type) |
float |
readFloat() |
void |
readFully(byte[] buffer,
int offset,
int length) |
long |
readVarint(boolean signed) |
boolean |
seekToCheckpoint(long checkpoint) |
long |
skip(long n) |
void |
skipDwrfLong(OrcType.OrcTypeKind type,
long items) |
void |
skipFully(long length) |
void |
skipVarints(long items) |
String |
toString() |
mark, read, reset
public OrcInputStream(OrcDataSourceId orcDataSourceId, io.airlift.slice.FixedLengthSliceInput sliceInput, Optional<OrcDecompressor> decompressor, OrcAggregatedMemoryContext systemMemoryContext, long sliceInputRetainedSizeInBytes)
public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
public int available()
available
in class InputStream
public boolean markSupported()
markSupported
in class InputStream
public int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] b, int off, int length) throws IOException
read
in class InputStream
IOException
public void skipFully(long length) throws IOException
IOException
public void readFully(byte[] buffer, int offset, int length) throws IOException
IOException
public OrcDataSourceId getOrcDataSourceId()
public long getCheckpoint()
public boolean seekToCheckpoint(long checkpoint) throws IOException
IOException
public long skip(long n) throws IOException
skip
in class InputStream
IOException
public long readDwrfLong(OrcType.OrcTypeKind type) throws IOException
IOException
public void skipDwrfLong(OrcType.OrcTypeKind type, long items) throws IOException
IOException
public long readVarint(boolean signed) throws IOException
IOException
public void skipVarints(long items) throws IOException
IOException
public double readDouble() throws IOException
IOException
public float readFloat() throws IOException
IOException
Copyright © 2012–2020. All rights reserved.