public class SchemaConversionUtils
extends java.lang.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(java.util.List<FieldSchema> fields)
Builds write schema.
|
public static org.apache.avro.Schema buildWriteSchema(java.util.List<FieldSchema> fields) throws java.io.IOException
fields - the fieldsjava.io.IOExceptionpublic static org.apache.avro.SchemaBuilder.FieldAssembler<org.apache.avro.Schema> buildConsistentField(org.apache.avro.SchemaBuilder.FieldAssembler<org.apache.avro.Schema> assembler,
FieldSchema field)
throws java.io.IOException
Schema.assembler - the field assemblerfield - field to add to the field assemblerjava.io.IOExceptionCopyright © 2022. All Rights Reserved.