public abstract class AbstractOrcDataSource extends Object implements OrcDataSource
Constructor and Description |
---|
AbstractOrcDataSource(String name,
long size,
io.airlift.units.DataSize maxMergeDistance,
io.airlift.units.DataSize maxBufferSize,
io.airlift.units.DataSize streamBufferSize) |
Modifier and Type | Method and Description |
---|---|
long |
getReadBytes() |
long |
getReadTimeNanos() |
long |
getSize() |
void |
readFully(long position,
byte[] buffer) |
void |
readFully(long position,
byte[] buffer,
int bufferOffset,
int bufferLength) |
<K> Map<K,io.airlift.slice.FixedLengthSliceInput> |
readFully(Map<K,DiskRange> diskRanges) |
protected abstract void |
readInternal(long position,
byte[] buffer,
int bufferOffset,
int bufferLength) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
close
public AbstractOrcDataSource(String name, long size, io.airlift.units.DataSize maxMergeDistance, io.airlift.units.DataSize maxBufferSize, io.airlift.units.DataSize streamBufferSize)
protected abstract void readInternal(long position, byte[] buffer, int bufferOffset, int bufferLength) throws IOException
IOException
public final long getReadBytes()
getReadBytes
in interface OrcDataSource
public final long getReadTimeNanos()
getReadTimeNanos
in interface OrcDataSource
public final long getSize()
getSize
in interface OrcDataSource
public final void readFully(long position, byte[] buffer) throws IOException
readFully
in interface OrcDataSource
IOException
public final void readFully(long position, byte[] buffer, int bufferOffset, int bufferLength) throws IOException
readFully
in interface OrcDataSource
IOException
public final <K> Map<K,io.airlift.slice.FixedLengthSliceInput> readFully(Map<K,DiskRange> diskRanges) throws IOException
readFully
in interface OrcDataSource
IOException
Copyright © 2012-2016. All Rights Reserved.