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.ReflectData.AllowNull
SpecificData.SchemaConstructable
GenericData.Array<T>, GenericData.EnumSymbol, GenericData.Fixed, GenericData.Record, GenericData.StringType
STRING_PROP, STRING_TYPE_STRING
Constructor and Description |
---|
ReflectData.AllowNull() |
Modifier and Type | Method and Description |
---|---|
protected Schema |
createFieldSchema(Field field,
Map<String,Schema> names)
Create a schema for a field.
|
static ReflectData.AllowNull |
get()
Return the singleton instance.
|
compare, createDatumReader, createSchema, getClass, getField, getProtocol, getRecordSchema, isArray, isBytes, isRecord, makeNullable, setField, validate
createFixed, getClassName, getEnumSchema, getSchema, isEnum, newInstance, newRecord
compare, createFixed, deepCopy, getField, getFixedSchema, getRecordState, getSchemaName, hashCode, hashCodeAdd, induce, instanceOf, isFixed, isMap, isString, resolveUnion, setField, setStringType, toString, toString
public static ReflectData.AllowNull get()
protected Schema createFieldSchema(Field field, Map<String,Schema> names)
ReflectData
createFieldSchema
in class ReflectData
Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.