FieldDef.Type
Modifier and Type | Method and Description |
---|---|
RecordDef |
clone()
Perform a deep copy of this FieldDef instance.
|
FieldValue |
getDefaultValue(String name)
Creates an instance using the default value for the named field.
|
FieldDef |
getField(String name)
Get the named field.
|
List<String> |
getFields()
Get the field names for the record in declaration order.
|
String |
getName()
Get the name of the record.
|
boolean |
isNullable(String name)
Returns true if the named field is nullable.
|
asArray, asBinary, asBoolean, asDouble, asEnum, asFixedBinary, asFloat, asInteger, asLong, asMap, asRecord, asString, createArray, createBinary, createBoolean, createDouble, createEnum, createFixedBinary, createFloat, createInteger, createLong, createMap, createRecord, createString, getDescription, getType, isArray, isBinary, isBoolean, isDouble, isEnum, isFixedBinary, isFloat, isInteger, isLong, isMap, isRecord, isString, isType, isValidIndexField, isValidKeyField
List<String> getFields()
FieldDef getField(String name)
name
- the name of the field to returnString getName()
boolean isNullable(String name)
name
- the name of the fieldFieldValue getDefaultValue(String name)
FieldValue
and not a more specific type
because in the case of nullable fields the default will be a null value,
which is a special value that returns true for isNullable(java.lang.String)
.name
- the name of the fieldCopyright (c) 2011, 2014 Oracle and/or its affiliates. All rights reserved.