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.AllowNullSpecificData.SchemaConstructableGenericData.Array<T>, GenericData.EnumSymbol, GenericData.Fixed, GenericData.Record, GenericData.StringTypeRESERVED_WORDS, stringableClassesSTRING_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.
|
addStringable, compare, createDatumReader, createDatumReader, createDatumWriter, createFixed, createSchema, getArrayAsCollection, getClass, getField, getField, getProtocol, getRecordSchema, getRecordState, isArray, isBytes, isMap, isRecord, isStringable, makeNullable, newRecord, setField, setField, validatecreateEnum, getClassName, getDecoder, getEncoder, getEnumSchema, getSchema, getSchemaName, isEnum, newInstanceaddLogicalTypeConversion, compare, createFixed, deepCopy, getClassLoader, getConversionByClass, getConversionByClass, getConversionFor, getDefaultValue, getFixedSchema, hashCode, hashCodeAdd, induce, instanceOf, isBoolean, isDouble, isFixed, isFloat, isInteger, isLong, isString, resolveUnion, setStringType, toString, toStringpublic static ReflectData.AllowNull get()
protected Schema createFieldSchema(Field field, Map<String,Schema> names)
ReflectDatacreateFieldSchema in class ReflectDataCopyright © 2009–2016 The Apache Software Foundation. All rights reserved.