|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avro.Schema.Field
public static class Schema.Field
A field within a record.
Nested Class Summary | |
---|---|
static class |
Schema.Field.Order
How values of this field should be ordered when sorting records. |
Constructor Summary | |
---|---|
Schema.Field(String name,
Schema schema,
String doc,
org.codehaus.jackson.JsonNode defaultValue)
|
|
Schema.Field(String name,
Schema schema,
String doc,
org.codehaus.jackson.JsonNode defaultValue,
Schema.Field.Order order)
|
Method Summary | |
---|---|
void |
addAlias(String alias)
|
void |
addProp(String name,
String value)
Add a property with the given name to this field. |
org.codehaus.jackson.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()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Schema.Field(String name, Schema schema, String doc, org.codehaus.jackson.JsonNode defaultValue)
public Schema.Field(String name, Schema schema, String doc, org.codehaus.jackson.JsonNode defaultValue, Schema.Field.Order order)
Method Detail |
---|
public String name()
public int pos()
public Schema schema()
Schema
.
public String doc()
public org.codehaus.jackson.JsonNode defaultValue()
public Schema.Field.Order order()
public String getProp(String name)
public void addProp(String name, String value)
public Map<String,String> props()
public void addAlias(String alias)
public boolean equals(Object other)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |