public class SchemaConversionUtils extends Object
Constructor and Description |
---|
SchemaConversionUtils() |
Modifier and Type | Method and Description |
---|---|
static org.apache.avro.SchemaBuilder.FieldAssembler<org.apache.avro.Schema> |
buildConsistentField(org.apache.avro.SchemaBuilder.FieldAssembler<org.apache.avro.Schema> assembler,
FieldSchema field)
Builds the fields that are consistent with
Schema . |
static org.apache.avro.Schema |
buildWriteSchema(List<FieldSchema> fields)
Builds write schema.
|
public static org.apache.avro.Schema buildWriteSchema(List<FieldSchema> fields) throws IOException
fields
- the fieldsIOException
public static org.apache.avro.SchemaBuilder.FieldAssembler<org.apache.avro.Schema> buildConsistentField(org.apache.avro.SchemaBuilder.FieldAssembler<org.apache.avro.Schema> assembler, FieldSchema field) throws IOException
Schema
.assembler
- the field assemblerfield
- field to add to the field assemblerIOException
Copyright © 2023. All Rights Reserved.