public static class Schema.Field extends JsonProperties
Modifier and Type | Class and Description |
---|---|
static class |
Schema.Field.Order
How values of this field should be ordered when sorting records.
|
JsonProperties.Null
NULL_VALUE
Constructor and Description |
---|
Schema.Field(String name,
Schema schema,
String doc,
org.codehaus.jackson.JsonNode defaultValue)
Deprecated.
use
#Field(String, Schema, String, Object) |
Schema.Field(String name,
Schema schema,
String doc,
org.codehaus.jackson.JsonNode defaultValue,
Schema.Field.Order order)
Deprecated.
use
#Field(String, Schema, String, Object, Order) |
Schema.Field(String name,
Schema schema,
String doc,
Object defaultValue) |
Schema.Field(String name,
Schema schema,
String doc,
Object defaultValue,
Schema.Field.Order order) |
Modifier and Type | Method and Description |
---|---|
void |
addAlias(String alias) |
Set<String> |
aliases()
Return the defined aliases as an unmodifieable Set.
|
Object |
defaultVal() |
org.codehaus.jackson.JsonNode |
defaultValue()
Deprecated.
use
defaultVal() |
String |
doc()
Field's documentation within the record, if set.
|
boolean |
equals(Object other) |
int |
hashCode() |
String |
name() |
Schema.Field.Order |
order() |
int |
pos()
The position of this field within the record.
|
Map<String,String> |
props()
Deprecated.
|
Schema |
schema()
This field's
Schema . |
String |
toString() |
addProp, addProp, addProp, getJsonProp, getJsonProps, getObjectProp, getObjectProps, getProp, getProps
@Deprecated public Schema.Field(String name, Schema schema, String doc, org.codehaus.jackson.JsonNode defaultValue)
#Field(String, Schema, String, Object)
@Deprecated public Schema.Field(String name, Schema schema, String doc, org.codehaus.jackson.JsonNode defaultValue, Schema.Field.Order order)
#Field(String, Schema, String, Object, Order)
public Schema.Field(String name, Schema schema, String doc, Object defaultValue)
defaultValue
- the default value for this field specified using the mapping
in JsonProperties
public Schema.Field(String name, Schema schema, String doc, Object defaultValue, Schema.Field.Order order)
defaultValue
- the default value for this field specified using the mapping
in JsonProperties
public String name()
public int pos()
public String doc()
@Deprecated public org.codehaus.jackson.JsonNode defaultValue()
defaultVal()
public Object defaultVal()
JsonProperties
public Schema.Field.Order order()
@Deprecated public Map<String,String> props()
public void addAlias(String alias)
Copyright © 2009–2017 The Apache Software Foundation. All rights reserved.