Class ReflectData.AllowNull

  extended by org.apache.avro.generic.GenericData
      extended by org.apache.avro.specific.SpecificData
          extended by org.apache.avro.reflect.ReflectData
              extended by org.apache.avro.reflect.ReflectData.AllowNull
Enclosing class:

public static class ReflectData.AllowNull
extends ReflectData

ReflectData implementation that permits null field values. The schema generated for each field is a union of its declared type and null.

Nested Class Summary
Nested classes/interfaces inherited from class org.apache.avro.reflect.ReflectData
Nested classes/interfaces inherited from class org.apache.avro.generic.GenericData
GenericData.Array<T>, GenericData.EnumSymbol, GenericData.Fixed, GenericData.Record
Constructor Summary
Method Summary
protected  Schema createFieldSchema(Field field, Map<String,Schema> names)
          Create a schema for a field.
static ReflectData.AllowNull get()
          Return the singleton instance.
Methods inherited from class org.apache.avro.reflect.ReflectData
compare, createSchema, getClass, getField, getProtocol, getRecordSchema, isArray, isBytes, isRecord, makeNullable, setField, validate
Methods inherited from class org.apache.avro.specific.SpecificData
getClassName, getEnumSchema, getSchema, isEnum
Methods inherited from class org.apache.avro.generic.GenericData
compare, getFixedSchema, hashCode, hashCodeAdd, induce, instanceOf, isFixed, isMap, isString, resolveUnion, toString, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public ReflectData.AllowNull()
Method Detail


public static ReflectData.AllowNull get()
Return the singleton instance.


protected Schema createFieldSchema(Field field,
                                   Map<String,Schema> names)
Description copied from class: ReflectData
Create a schema for a field.

createFieldSchema in class ReflectData

Copyright © 2011 The Apache Software Foundation. All Rights Reserved.