org.apache.avro.specific
Class SpecificRecordBase
java.lang.Object
org.apache.avro.specific.SpecificRecordBase
- All Implemented Interfaces:
- Comparable<SpecificRecord>, GenericContainer, SpecificRecord
public abstract class SpecificRecordBase
- extends Object
- implements SpecificRecord, Comparable<SpecificRecord>
Base class for generated record classes.
SpecificRecordBase
public SpecificRecordBase()
getSchema
public abstract Schema getSchema()
- Description copied from interface:
GenericContainer
- The schema of this instance.
- Specified by:
getSchema
in interface GenericContainer
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
compareTo
public int compareTo(SpecificRecord that)
- Specified by:
compareTo
in interface Comparable<SpecificRecord>
Copyright © 2009 The Apache Software Foundation