|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.avro.specific.SpecificRecordBase
public abstract class SpecificRecordBase
Base class for generated record classes.
| Constructor Summary | |
|---|---|
SpecificRecordBase()
|
|
| Method Summary | |
|---|---|
int |
compareTo(SpecificRecord that)
|
boolean |
equals(Object that)
|
abstract Object |
get(int field)
Return the value of a field given its position in the schema. |
abstract Schema |
getSchema()
The schema of this instance. |
int |
hashCode()
|
abstract void |
put(int field,
Object value)
Set the value of a field given its position in the schema. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SpecificRecordBase()
| Method Detail |
|---|
public abstract Schema getSchema()
GenericContainer
getSchema in interface GenericContainerpublic abstract Object get(int field)
IndexedRecordThis method is not meant to be called by user code, but only by DatumWriter implementations.
get in interface IndexedRecord
public abstract void put(int field,
Object value)
IndexedRecordThis method is not meant to be called by user code, but only by DatumReader implementations.
put in interface IndexedRecordpublic boolean equals(Object that)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic int compareTo(SpecificRecord that)
compareTo in interface Comparable<SpecificRecord>public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||