public class Avro extends FormatDescriptor
Constructor and Description |
---|
Avro()
Format descriptor for Apache Avro records.
|
Modifier and Type | Method and Description |
---|---|
Avro |
avroSchema(String avroSchema)
Sets the Avro schema for specific or generic Avro records.
|
Avro |
recordClass(Class<? extends org.apache.avro.specific.SpecificRecord> recordClass)
Sets the class of the Avro specific record.
|
protected Map<String,String> |
toFormatProperties()
Converts this descriptor into a set of format properties.
|
toProperties
toString
public Avro recordClass(Class<? extends org.apache.avro.specific.SpecificRecord> recordClass)
recordClass
- class of the Avro record.public Avro avroSchema(String avroSchema)
avroSchema
- Avro schema stringprotected Map<String,String> toFormatProperties()
FormatDescriptor
FormatDescriptorValidator.FORMAT
.toFormatProperties
in class FormatDescriptor
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.