Class ParquetUtils
- java.lang.Object
-
- org.apache.pinot.plugin.inputformat.parquet.ParquetUtils
-
public class ParquetUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.apache.parquet.hadoop.ParquetReader<org.apache.avro.generic.GenericRecord>getParquetAvroReader(org.apache.hadoop.fs.Path path)Returns a ParquetReader with the given path.static org.apache.avro.SchemagetParquetAvroSchema(org.apache.hadoop.fs.Path path)Returns the schema for the given Parquet file path.static org.apache.parquet.hadoop.ParquetWriter<org.apache.avro.generic.GenericRecord>getParquetAvroWriter(org.apache.hadoop.fs.Path path, org.apache.avro.Schema schema)Returns a ParquetWriter with the given path and schema.static org.apache.hadoop.conf.ConfigurationgetParquetHadoopConfiguration()static booleanhasAvroSchemaInFileMetadata(org.apache.hadoop.fs.Path path)
-
-
-
Method Detail
-
getParquetAvroReader
public static org.apache.parquet.hadoop.ParquetReader<org.apache.avro.generic.GenericRecord> getParquetAvroReader(org.apache.hadoop.fs.Path path) throws IOExceptionReturns a ParquetReader with the given path.- Throws:
IOException
-
getParquetAvroWriter
public static org.apache.parquet.hadoop.ParquetWriter<org.apache.avro.generic.GenericRecord> getParquetAvroWriter(org.apache.hadoop.fs.Path path, org.apache.avro.Schema schema) throws IOExceptionReturns a ParquetWriter with the given path and schema.- Throws:
IOException
-
getParquetAvroSchema
public static org.apache.avro.Schema getParquetAvroSchema(org.apache.hadoop.fs.Path path) throws IOExceptionReturns the schema for the given Parquet file path.- Throws:
IOException
-
hasAvroSchemaInFileMetadata
public static boolean hasAvroSchemaInFileMetadata(org.apache.hadoop.fs.Path path) throws IOException- Throws:
IOException
-
getParquetHadoopConfiguration
public static org.apache.hadoop.conf.Configuration getParquetHadoopConfiguration()
-
-