public class CachingOrcDataSource extends Object implements OrcDataSource
Modifier and Type | Class and Description |
---|---|
static interface |
CachingOrcDataSource.RegionFinder |
Constructor and Description |
---|
CachingOrcDataSource(OrcDataSource dataSource,
CachingOrcDataSource.RegionFinder regionFinder) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
OrcDataSourceId |
getId() |
long |
getReadBytes() |
long |
getReadTimeNanos() |
long |
getSize() |
void |
readFully(long position,
byte[] buffer) |
void |
readFully(long position,
byte[] buffer,
int bufferOffset,
int length) |
<K> Map<K,OrcDataSourceInput> |
readFully(Map<K,DiskRange> diskRanges) |
String |
toString() |
public CachingOrcDataSource(OrcDataSource dataSource, CachingOrcDataSource.RegionFinder regionFinder)
public OrcDataSourceId getId()
getId
in interface OrcDataSource
public long getReadBytes()
getReadBytes
in interface OrcDataSource
public long getReadTimeNanos()
getReadTimeNanos
in interface OrcDataSource
public long getSize()
getSize
in interface OrcDataSource
public void readFully(long position, byte[] buffer) throws IOException
readFully
in interface OrcDataSource
IOException
public void readFully(long position, byte[] buffer, int bufferOffset, int length) throws IOException
readFully
in interface OrcDataSource
IOException
public <K> Map<K,OrcDataSourceInput> readFully(Map<K,DiskRange> diskRanges) throws IOException
readFully
in interface OrcDataSource
IOException
public void close() throws IOException
close
in interface OrcDataSource
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2012–2020. All rights reserved.