Package | Description |
---|---|
org.apache.avro |
Avro kernel classes.
|
org.apache.avro.compiler.idl | |
org.apache.avro.compiler.specific | |
org.apache.avro.data |
Interfaces and base classes shared by generic, specific and reflect.
|
org.apache.avro.generic |
A generic representation for Avro data.
|
org.apache.avro.io |
Utilities for Encoding and Decoding Avro data.
|
org.apache.avro.io.parsing |
Implementation of Avro schemas as LL(1) grammars.
|
Modifier and Type | Method and Description |
---|---|
Schema.Field |
Schema.getField(String fieldname)
If this is a record, returns the Field with the
given name fieldName.
|
Modifier and Type | Method and Description |
---|---|
List<Schema.Field> |
Schema.getFields()
If this is a record, returns the fields in it.
|
Modifier and Type | Method and Description |
---|---|
static Schema |
Schema.createRecord(List<Schema.Field> fields)
Create an anonymous record schema.
|
void |
Schema.setFields(List<Schema.Field> fields)
If this is a record, set its fields.
|
Modifier and Type | Method and Description |
---|---|
void |
Idl.FieldDeclaration(List<Schema.Field> fields) |
void |
Idl.FormalParameter(List<Schema.Field> fields) |
void |
Idl.VariableDeclarator(Schema type,
List<Schema.Field> fields) |
Modifier and Type | Method and Description |
---|---|
static String |
SpecificCompiler.generateClearMethod(Schema schema,
Schema.Field field)
Generates the name of a field "clear" method.
|
static String |
SpecificCompiler.generateGetMethod(Schema schema,
Schema.Field field)
Generates the name of a field accessor method.
|
static String |
SpecificCompiler.generateHasMethod(Schema schema,
Schema.Field field)
Generates the name of a field "has" method.
|
static String |
SpecificCompiler.generateSetMethod(Schema schema,
Schema.Field field)
Generates the name of a field mutator method.
|
Modifier and Type | Method and Description |
---|---|
protected Schema.Field[] |
RecordBuilderBase.fields() |
Modifier and Type | Method and Description |
---|---|
protected Object |
RecordBuilderBase.defaultValue(Schema.Field field)
Gets the default value of the given field, if any.
|
protected static boolean |
RecordBuilderBase.isValidValue(Schema.Field f,
Object value)
Tests whether a value is valid for a specified field.
|
protected void |
RecordBuilderBase.validate(Schema.Field field,
Object value)
Validates that a particular value for a given field is valid according to
the following algorithm:
1.
|
Modifier and Type | Method and Description |
---|---|
GenericRecordBuilder |
GenericRecordBuilder.clear(Schema.Field field)
Clears the value of the given field.
|
Object |
GenericRecordBuilder.get(Schema.Field field)
Gets the value of a field.
|
boolean |
GenericRecordBuilder.has(Schema.Field field)
Checks whether a field has been set.
|
GenericRecordBuilder |
GenericRecordBuilder.set(Schema.Field field,
Object value)
Sets the value of a field.
|
Modifier and Type | Method and Description |
---|---|
Schema.Field[] |
ResolvingDecoder.readFieldOrder()
Returns the actual order in which the reader's fields will be
returned to the reader.
|
Modifier and Type | Field and Description |
---|---|
Schema.Field[] |
Symbol.FieldOrderAction.fields |
Constructor and Description |
---|
Symbol.FieldOrderAction(Schema.Field[] fields) |
Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.