public class HdfsParquetDataSource extends Object implements ParquetDataSource
| Constructor and Description |
|---|
HdfsParquetDataSource(ParquetDataSourceId id,
long size,
org.apache.hadoop.fs.FSDataInputStream inputStream,
FileFormatDataSourceStats stats,
ParquetReaderOptions options) |
| Modifier and Type | Method and Description |
|---|---|
static HdfsParquetDataSource |
buildHdfsParquetDataSource(org.apache.hadoop.fs.FSDataInputStream inputStream,
org.apache.hadoop.fs.Path path,
long fileSize,
FileFormatDataSourceStats stats,
ParquetReaderOptions options) |
void |
close() |
ParquetDataSourceId |
getId() |
long |
getReadBytes() |
long |
getReadTimeNanos() |
long |
getSize() |
static List<DiskRange> |
mergeAdjacentDiskRanges(Collection<DiskRange> diskRanges,
io.airlift.units.DataSize maxMergeDistance,
io.airlift.units.DataSize maxReadSize) |
<K> Map<K,ChunkReader> |
planRead(Map<K,DiskRange> diskRanges) |
void |
readFully(long position,
byte[] buffer) |
void |
readFully(long position,
byte[] buffer,
int bufferOffset,
int bufferLength) |
public HdfsParquetDataSource(ParquetDataSourceId id, long size, org.apache.hadoop.fs.FSDataInputStream inputStream, FileFormatDataSourceStats stats, ParquetReaderOptions options)
public ParquetDataSourceId getId()
getId in interface ParquetDataSourcepublic final long getReadBytes()
getReadBytes in interface ParquetDataSourcepublic long getReadTimeNanos()
getReadTimeNanos in interface ParquetDataSourcepublic final long getSize()
getSize in interface ParquetDataSourcepublic void close()
throws IOException
close in interface ParquetDataSourceclose in interface Closeableclose in interface AutoCloseableIOExceptionpublic final void readFully(long position,
byte[] buffer)
readFully in interface ParquetDataSourcepublic final void readFully(long position,
byte[] buffer,
int bufferOffset,
int bufferLength)
readFully in interface ParquetDataSourcepublic final <K> Map<K,ChunkReader> planRead(Map<K,DiskRange> diskRanges)
planRead in interface ParquetDataSourcepublic static HdfsParquetDataSource buildHdfsParquetDataSource(org.apache.hadoop.fs.FSDataInputStream inputStream, org.apache.hadoop.fs.Path path, long fileSize, FileFormatDataSourceStats stats, ParquetReaderOptions options)
public static List<DiskRange> mergeAdjacentDiskRanges(Collection<DiskRange> diskRanges, io.airlift.units.DataSize maxMergeDistance, io.airlift.units.DataSize maxReadSize)
Copyright © 2012–2020. All rights reserved.