public class ParquetReader extends Object implements Closeable
| Constructor and Description |
|---|
ParquetReader(parquet.schema.MessageType fileSchema,
parquet.schema.MessageType requestedSchema,
List<parquet.hadoop.metadata.BlockMetaData> blocks,
ParquetDataSource dataSource,
TypeManager typeManager,
AggregatedMemoryContext systemMemoryContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
long |
getPosition() |
int |
nextBatch() |
Block |
readArray(Type type,
List<String> path) |
Block |
readMap(Type type,
List<String> path) |
Block |
readPrimitive(parquet.column.ColumnDescriptor columnDescriptor,
Type type) |
Block |
readStruct(Type type,
List<String> path) |
public ParquetReader(parquet.schema.MessageType fileSchema,
parquet.schema.MessageType requestedSchema,
List<parquet.hadoop.metadata.BlockMetaData> blocks,
ParquetDataSource dataSource,
TypeManager typeManager,
AggregatedMemoryContext systemMemoryContext)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic long getPosition()
public int nextBatch()
public Block readArray(Type type, List<String> path) throws IOException
IOExceptionpublic Block readMap(Type type, List<String> path) throws IOException
IOExceptionpublic Block readStruct(Type type, List<String> path) throws IOException
IOExceptionpublic Block readPrimitive(parquet.column.ColumnDescriptor columnDescriptor, Type type) throws IOException
IOExceptionCopyright © 2012-2017. All Rights Reserved.