public class HdfsParquetDataSource extends Object implements ParquetDataSource
| Constructor and Description |
|---|
HdfsParquetDataSource(org.apache.hadoop.fs.Path path,
long size,
org.apache.hadoop.fs.FSDataInputStream inputStream) |
| Modifier and Type | Method and Description |
|---|---|
static HdfsParquetDataSource |
buildHdfsParquetDataSource(org.apache.hadoop.fs.FileSystem fileSystem,
org.apache.hadoop.fs.Path path,
long start,
long length,
long fileSize) |
void |
close() |
long |
getReadBytes() |
long |
getSize() |
void |
readFully(long position,
byte[] buffer) |
void |
readFully(long position,
byte[] buffer,
int bufferOffset,
int bufferLength) |
public HdfsParquetDataSource(org.apache.hadoop.fs.Path path,
long size,
org.apache.hadoop.fs.FSDataInputStream inputStream)
public final long getReadBytes()
getReadBytes 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)
throws IOException
readFully in interface ParquetDataSourceIOExceptionpublic final void readFully(long position,
byte[] buffer,
int bufferOffset,
int bufferLength)
throws IOException
readFully in interface ParquetDataSourceIOExceptionpublic static HdfsParquetDataSource buildHdfsParquetDataSource(org.apache.hadoop.fs.FileSystem fileSystem, org.apache.hadoop.fs.Path path, long start, long length, long fileSize)
Copyright © 2012-2017. All Rights Reserved.