Uses of Class
org.apache.avro.Schema.Field
Packages that use Schema.Field
Package
Description
Avro kernel classes.
Interfaces and base classes shared by generic, specific and reflect.
A generic representation for Avro data.
Utilities for Encoding and Decoding Avro data.
Implementation of Avro schemas as LL(1) grammars.
Use Java reflection to generate schemas and protocols for existing
classes.
Generate specific Java classes for schemas and protocols.
-
Uses of Schema.Field in org.apache.avro
Fields in org.apache.avro declared as Schema.FieldModifier and TypeFieldDescriptionfinal Schema.Field[]Resolver.RecordAdjust.readerOrderContains (all of) the reader's fields.Methods in org.apache.avro that return Schema.FieldModifier and TypeMethodDescriptionIf this is a record, returns the Field with the given name fieldName.static Schema.FieldSchemaCompatibility.lookupWriterField(Schema writerSchema, Schema.Field readerField) Identifies the writer field that corresponds to the specified reader field.Methods in org.apache.avro that return types with arguments of type Schema.FieldModifier and TypeMethodDescriptionSchema.getFields()If this is a record, returns the fields in it.Methods in org.apache.avro with parameters of type Schema.FieldModifier and TypeMethodDescriptionvoidAvroMissingFieldException.addParentField(Schema.Field field) static Schema.FieldSchemaCompatibility.lookupWriterField(Schema writerSchema, Schema.Field readerField) Identifies the writer field that corresponds to the specified reader field.Method parameters in org.apache.avro with type arguments of type Schema.FieldModifier and TypeMethodDescriptionstatic SchemaSchema.createRecord(String name, String doc, String namespace, boolean isError, List<Schema.Field> fields) Create a named record schema with fields already set.static SchemaSchema.createRecord(List<Schema.Field> fields) Deprecated.voidSchema.setFields(List<Schema.Field> fields) If this is a record, set its fields.Constructors in org.apache.avro with parameters of type Schema.FieldModifierConstructorDescriptionAvroMissingFieldException(String message, Schema.Field field) Field(Schema.Field field, Schema schema) Constructs a new Field instance with the samename,doc,defaultValue, andorderasfieldhas with changing the schema to the specified one.UnresolvedUnionException(Schema unionSchema, Schema.Field field, Object unresolvedDatum) -
Uses of Schema.Field in org.apache.avro.compiler.schema
Methods in org.apache.avro.compiler.schema with parameters of type Schema.FieldModifier and TypeMethodDescriptionvoidCloningVisitor.PropertyCopier.copy(Schema.Field first, Schema.Field second) static voidSchemas.copyAliases(Schema.Field from, Schema.Field to) -
Uses of Schema.Field in org.apache.avro.compiler.specific
Methods in org.apache.avro.compiler.specific with parameters of type Schema.FieldModifier and TypeMethodDescriptionstatic StringSpecificCompiler.generateClearMethod(Schema schema, Schema.Field field) Generates the name of a field "clear" method.static StringSpecificCompiler.generateGetBuilderMethod(Schema schema, Schema.Field field) Generates the name of a field Builder accessor method.static StringSpecificCompiler.generateGetMethod(Schema schema, Schema.Field field) Generates the name of a field accessor method.static StringSpecificCompiler.generateGetOptionalMethod(Schema schema, Schema.Field field) Generates the name of a field accessor method that returns a Java 8 Optional.static StringSpecificCompiler.generateHasBuilderMethod(Schema schema, Schema.Field field) Generates the name of a field Builder "has" method.static StringSpecificCompiler.generateHasMethod(Schema schema, Schema.Field field) Generates the name of a field "has" method.static StringSpecificCompiler.generateSetBuilderMethod(Schema schema, Schema.Field field) Generates the name of a field Builder mutator method.static StringSpecificCompiler.generateSetMethod(Schema schema, Schema.Field field) Generates the name of a field mutator method. -
Uses of Schema.Field in org.apache.avro.data
Methods in org.apache.avro.data that return Schema.FieldMethods in org.apache.avro.data with parameters of type Schema.FieldModifier and TypeMethodDescriptionprotected ObjectRecordBuilderBase.defaultValue(Schema.Field field) Gets the default value of the given field, if any.protected static booleanRecordBuilderBase.isValidValue(Schema.Field f, Object value) Tests whether a value is valid for a specified field.protected voidRecordBuilderBase.validate(Schema.Field field, Object value) Validates that a particular value for a given field is valid according to the following algorithm: 1. -
Uses of Schema.Field in org.apache.avro.generic
Methods in org.apache.avro.generic with parameters of type Schema.FieldModifier and TypeMethodDescriptionGenericRecordBuilder.clear(Schema.Field field) Clears the value of the given field.GenericRecordBuilder.get(Schema.Field field) Gets the value of a field.GenericData.getDefaultValue(Schema.Field field) Gets the default value of the given field, if any.booleanGenericRecordBuilder.has(Schema.Field field) Checks whether a field has been set.protected voidGenericDatumReader.readField(Object record, Schema.Field field, Object oldDatum, ResolvingDecoder in, Object state) Called to read a single field of a record.GenericRecordBuilder.set(Schema.Field field, Object value) Sets the value of a field.protected voidGenericDatumWriter.writeField(Object datum, Schema.Field f, Encoder out, Object state) Called to write a single field of a record. -
Uses of Schema.Field in org.apache.avro.io
Methods in org.apache.avro.io that return Schema.FieldModifier and TypeMethodDescriptionfinal Schema.Field[]ResolvingDecoder.readFieldOrder()Returns the actual order in which the reader's fields will be returned to the reader.final Schema.Field[]ResolvingDecoder.readFieldOrderIfDiff()Same asResolvingDecoder.readFieldOrder()except that it returns null if there was no reordering of fields, i.e., if the correct thing for the reader to do is to read (all) of its fields in the order specified by its own schema (useful for optimizations). -
Uses of Schema.Field in org.apache.avro.io.parsing
Fields in org.apache.avro.io.parsing declared as Schema.FieldMethods in org.apache.avro.io.parsing with parameters of type Schema.FieldModifier and TypeMethodDescriptionstatic Symbol.FieldOrderActionSymbol.fieldOrderAction(Schema.Field[] fields) Constructors in org.apache.avro.io.parsing with parameters of type Schema.Field -
Uses of Schema.Field in org.apache.avro.reflect
Methods in org.apache.avro.reflect with parameters of type Schema.FieldModifier and TypeMethodDescriptionprotected voidReflectDatumReader.readField(Object record, Schema.Field field, Object oldDatum, ResolvingDecoder in, Object state) protected voidReflectDatumWriter.writeField(Object record, Schema.Field f, Encoder out, Object state) -
Uses of Schema.Field in org.apache.avro.specific
Methods in org.apache.avro.specific with parameters of type Schema.FieldModifier and TypeMethodDescriptionprotected voidSpecificDatumReader.readField(Object record, Schema.Field field, Object oldDatum, ResolvingDecoder in, Object state) protected voidSpecificDatumWriter.writeField(Object datum, Schema.Field f, Encoder out, Object state)
SchemaParser.parse(CharSequence).