org.apache.avro.specific
Class SpecificRecordBase

java.lang.Object
  extended by org.apache.avro.specific.SpecificRecordBase
All Implemented Interfaces:
SpecificRecord

public abstract class SpecificRecordBase
extends Object
implements SpecificRecord

Base class for generated record classes.


Constructor Summary
SpecificRecordBase()
           
 
Method Summary
 boolean equals(Object o)
           
abstract  Object get(int field)
           
 int hashCode()
           
abstract  Schema schema()
           
abstract  void set(int field, Object value)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpecificRecordBase

public SpecificRecordBase()
Method Detail

schema

public abstract Schema schema()
Specified by:
schema in interface SpecificRecord

get

public abstract Object get(int field)
Specified by:
get in interface SpecificRecord

set

public abstract void set(int field,
                         Object value)
Specified by:
set in interface SpecificRecord

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2009 The Apache Software Foundation