org.apache.avro
Class Schema.Field

java.lang.Object
  extended by org.apache.avro.Schema.Field
Enclosing class:
Schema

public static class Schema.Field
extends Object

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(Schema schema, JsonNode defaultValue)
           
Schema.Field(Schema schema, JsonNode defaultValue, Schema.Field.Order order)
           
 
Method Summary
 JsonNode defaultValue()
           
 boolean equals(Object other)
           
 int hashCode()
           
 Schema.Field.Order order()
           
 int pos()
          The position of this field within the record.
 Schema schema()
          This field's Schema.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Schema.Field

public Schema.Field(Schema schema,
                    JsonNode defaultValue)

Schema.Field

public Schema.Field(Schema schema,
                    JsonNode defaultValue,
                    Schema.Field.Order order)
Method Detail

pos

public int pos()
The position of this field within the record.


schema

public Schema schema()
This field's Schema.


defaultValue

public JsonNode defaultValue()

order

public Schema.Field.Order order()

equals

public boolean equals(Object other)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2009 The Apache Software Foundation