| 程序包 | 说明 |
|---|---|
| org.apache.flink.formats.avro |
| 限定符和类型 | 方法和说明 |
|---|---|
static AvroWriterFactory<org.apache.avro.generic.GenericRecord> |
AvroWriters.forGenericRecord(org.apache.avro.Schema schema)
Creates an
AvroWriterFactory that accepts and writes Avro generic types. |
static <T> AvroWriterFactory<T> |
AvroWriters.forReflectRecord(Class<T> type)
Creates an
AvroWriterFactory for the given type. |
static <T extends org.apache.avro.specific.SpecificRecordBase> |
AvroWriters.forSpecificRecord(Class<T> type)
Creates an
AvroWriterFactory for an Avro specific type. |
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.