public class ParquetAvroWriters extends Object
ParquetWriterFactory instances for the different Avro
types.| Modifier and Type | Method and Description |
|---|---|
static ParquetWriterFactory<org.apache.avro.generic.GenericRecord> |
forGenericRecord(org.apache.avro.Schema schema)
Creates a ParquetWriterFactory that accepts and writes Avro generic types.
|
static <T> ParquetWriterFactory<T> |
forReflectRecord(Class<T> type)
Creates a ParquetWriterFactory for the given type.
|
static <T extends org.apache.avro.specific.SpecificRecordBase> |
forSpecificRecord(Class<T> type)
Creates a ParquetWriterFactory for an Avro specific type.
|
public static <T extends org.apache.avro.specific.SpecificRecordBase> ParquetWriterFactory<T> forSpecificRecord(Class<T> type)
type - The class of the type to write.public static ParquetWriterFactory<org.apache.avro.generic.GenericRecord> forGenericRecord(org.apache.avro.Schema schema)
schema - The schema of the generic type.public static <T> ParquetWriterFactory<T> forReflectRecord(Class<T> type)
type - The class of the type to write.Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.