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.
|
Constructor and Description |
---|
Schema.Field(String name,
Schema schema,
String doc,
JsonNode defaultValue) |
Schema.Field(String name,
Schema schema,
String doc,
JsonNode 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.
|
JsonNode |
defaultValue() |
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, getJsonProp, getJsonProps, getProp, getProps
public Schema.Field(String name, Schema schema, String doc, JsonNode defaultValue, Schema.Field.Order order)
public String name()
public int pos()
public String doc()
public JsonNode defaultValue()
public Schema.Field.Order order()
@Deprecated public Map<String,String> props()
public void addAlias(String alias)
Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.