org.apache.avro.reflect
Class ReflectData.AllowNull

java.lang.Object
  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:
ReflectData

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
ReflectData.AllowNull
 
Nested classes/interfaces inherited from class org.apache.avro.generic.GenericData
GenericData.Array<T>, GenericData.EnumSymbol, GenericData.Fixed, GenericData.Record
 
Constructor Summary
ReflectData.AllowNull()
           
 
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, validate
 
Methods inherited from class org.apache.avro.specific.SpecificData
getClassName, getSchema, isEnum
 
Methods inherited from class org.apache.avro.generic.GenericData
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

ReflectData.AllowNull

public ReflectData.AllowNull()
Method Detail

get

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


createFieldSchema

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

Overrides:
createFieldSchema in class ReflectData


Copyright © 2010 The Apache Software Foundation