|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.avro.generic.GenericData.Record
public static class GenericData.Record
Default implementation of GenericRecord.
| Constructor Summary | |
|---|---|
GenericData.Record(Schema schema)
|
|
| Method Summary | |
|---|---|
int |
compareTo(GenericData.Record that)
|
boolean |
equals(Object o)
|
Object |
get(int i)
Return the value of a field given its position in the schema. |
Object |
get(String key)
Return the value of a field given its name. |
Schema |
getSchema()
The schema of this instance. |
int |
hashCode()
|
void |
put(int i,
Object v)
Set the value of a field given its position in the schema. |
void |
put(String key,
Object value)
Set the value of a field given its name. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GenericData.Record(Schema schema)
| Method Detail |
|---|
public Schema getSchema()
GenericContainer
getSchema in interface GenericContainer
public void put(String key,
Object value)
GenericRecord
put in interface GenericRecord
public void put(int i,
Object v)
IndexedRecordThis method is not meant to be called by user code, but only by DatumReader implementations.
put in interface IndexedRecordpublic Object get(String key)
GenericRecord
get in interface GenericRecordpublic Object get(int i)
IndexedRecordThis method is not meant to be called by user code, but only by DatumWriter implementations.
get in interface IndexedRecordpublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic int compareTo(GenericData.Record that)
compareTo in interface Comparable<GenericData.Record>public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||