public final class ParquetReader extends Object
Modifier and Type | Method and Description |
---|---|
org.apache.avro.Schema |
createAvroSchema()
Retrieve avro schema from parquet file.
|
ByteBuffer |
serializeToByteBuffer()
Serialize Avro data to a in-memory ByteBuffer.
|
void |
serializeToDisk(File file)
Serialize Avro data to a local file.
|
public org.apache.avro.Schema createAvroSchema() throws IOException
IOException
- if the Avro schema couldn't be parsed from the parquet file.public void serializeToDisk(File file) throws IOException
file
- Local destination file for serialization.IOException
- if the parquet file couldn't be parsed correctly.public ByteBuffer serializeToByteBuffer() throws IOException
IOException
- if the parquet file couldn't be parsed correctly.Copyright © 2017 The Apache Software Foundation. All rights reserved.