public class ParquetTestUtil
extends java.lang.Object
ParquetTestUtil class provides common utilities used for executing tests that involve
 Parquet.| Constructor and Description | 
|---|
ParquetTestUtil()  | 
| Modifier and Type | Method and Description | 
|---|---|
static byte[] | 
createParquetFile(Schema schema,
                 java.util.List<GenericRecord> records)
Create Parquet file for the given schema and records list. 
 | 
static java.util.List<GenericRecord> | 
readRecords(byte[] contents)
Read Parquet records to a list of  
GenericRecord. | 
public static byte[] createParquetFile(Schema schema, java.util.List<GenericRecord> records) throws java.io.IOException
schema - Schema to use.records - Records to write to the sink.java.io.IOExceptionpublic static java.util.List<GenericRecord> readRecords(byte[] contents) throws java.io.IOException
GenericRecord.contents - Byte array with contents to read.java.io.IOException