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.InstanceSupplier, GenericData.Record, GenericData.StringTypeRESERVED_WORD_ESCAPE_CHAR, RESERVED_WORDS, stringableClassesFAST_READER_PROP, STRING_PROP, STRING_TYPE_STRING| Constructor and Description |
|---|
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, createSchemaDefaultValue, getArrayAsCollection, getClass, getField, getField, getOrCreateDefaultValue, getOrCreateDefaultValue, getProtocol, getRecordSchema, getRecordState, isArray, isBytes, isMap, isRecord, isStringable, makeNullable, newRecord, setDefaultGeneratedValue, setDefaultsGenerated, setField, setField, useCustomCoders, validatecreateEnum, createString, getClassName, getDecoder, getEncoder, getEnumSchema, getForClass, getForSchema, getNewRecordSupplier, getSchema, getSchemaName, isEnum, isStringType, newInstance, setCustomCoders, unmangleaddLogicalTypeConversion, compare, compareMaps, createFixed, deepCopy, getClassLoader, getConversionByClass, getConversionByClass, getConversionFor, getConversions, getDefaultValue, getFastReaderBuilder, getFixedSchema, getPrimitiveTypeCache, hashCode, hashCodeAdd, induce, instanceOf, isBoolean, isDouble, isFastReaderEnabled, isFixed, isFloat, isInteger, isLong, isString, newArray, newMap, resolveUnion, setFastReaderEnabled, setStringType, toString, toStringpublic static ReflectData.AllowNull get()
protected Schema createFieldSchema(Field field, Map<String,Schema> names)
ReflectDatacreateFieldSchema in class ReflectDataCopyright © 2009–2023 The Apache Software Foundation. All rights reserved.