org.apache.avro.reflect
Class ReflectData.AllowNull
java.lang.Object
org.apache.avro.generic.GenericData
org.apache.avro.specific.SpecificData
org.apache.avro.reflect.ReflectData
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.
Methods inherited from class org.apache.avro.reflect.ReflectData |
compare, createSchema, getClass, getField, getProtocol, getRecordSchema, isArray, isBytes, isRecord, makeNullable, validate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReflectData.AllowNull
public ReflectData.AllowNull()
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