Package hydra.ext.org.apache.avro.schema
Class Field
- java.lang.Object
-
- hydra.ext.org.apache.avro.schema.Field
-
- All Implemented Interfaces:
java.io.Serializable
public class Field extends java.lang.Object implements java.io.Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description Opt<java.util.List<java.lang.String>>
aliases
a JSON array of strings, providing alternate names for this fieldjava.util.Map<java.lang.String,Value>
annotations
Any additional key/value pairs attached to the fieldOpt<Value>
default_
default value for this field, only used when reading instances that lack the field for schema evolution purposesOpt<java.lang.String>
doc
a JSON string describing this field for usersstatic Name
FIELD_NAME_ALIASES
static Name
FIELD_NAME_ANNOTATIONS
static Name
FIELD_NAME_DEFAULT
static Name
FIELD_NAME_DOC
static Name
FIELD_NAME_NAME
static Name
FIELD_NAME_ORDER
static Name
FIELD_NAME_TYPE
java.lang.String
name
a JSON string providing the name of the fieldOpt<Order>
order
specifies how this field impacts sort ordering of this recordSchema
type
a schemastatic Name
TYPE_NAME
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object other)
int
hashCode()
Field
withAliases(Opt<java.util.List<java.lang.String>> aliases)
Field
withAnnotations(java.util.Map<java.lang.String,Value> annotations)
Field
withDefault(Opt<Value> default_)
Field
withDoc(Opt<java.lang.String> doc)
Field
withName(java.lang.String name)
Field
withOrder(Opt<Order> order)
Field
withType(Schema type)
-
-
-
Field Detail
-
TYPE_NAME
public static final Name TYPE_NAME
-
FIELD_NAME_NAME
public static final Name FIELD_NAME_NAME
-
FIELD_NAME_DOC
public static final Name FIELD_NAME_DOC
-
FIELD_NAME_TYPE
public static final Name FIELD_NAME_TYPE
-
FIELD_NAME_DEFAULT
public static final Name FIELD_NAME_DEFAULT
-
FIELD_NAME_ORDER
public static final Name FIELD_NAME_ORDER
-
FIELD_NAME_ALIASES
public static final Name FIELD_NAME_ALIASES
-
FIELD_NAME_ANNOTATIONS
public static final Name FIELD_NAME_ANNOTATIONS
-
name
public final java.lang.String name
a JSON string providing the name of the field
-
doc
public final Opt<java.lang.String> doc
a JSON string describing this field for users
-
type
public final Schema type
a schema
-
default_
public final Opt<Value> default_
default value for this field, only used when reading instances that lack the field for schema evolution purposes
-
aliases
public final Opt<java.util.List<java.lang.String>> aliases
a JSON array of strings, providing alternate names for this field
-
annotations
public final java.util.Map<java.lang.String,Value> annotations
Any additional key/value pairs attached to the field
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
withName
public Field withName(java.lang.String name)
-
-