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) |
void |
addProp(String name,
String value)
Add a property with the given name to this field.
|
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) |
String |
getProp(String name)
Return the value of the named property in this field or null.
|
int |
hashCode() |
String |
name() |
Schema.Field.Order |
order() |
int |
pos()
The position of this field within the record.
|
Map<String,String> |
props()
Return the defined properties as an unmodifieable Map.
|
Schema |
schema()
This field's
Schema . |
String |
toString() |
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()
public String getProp(String name)
public void addProp(String name, String value)
public void addAlias(String alias)
Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.