|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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)
IndexedRecord
This method is not meant to be called by user code, but only by DatumReader
implementations.
put
in interface IndexedRecord
public Object get(String key)
GenericRecord
get
in interface GenericRecord
public Object get(int i)
IndexedRecord
This method is not meant to be called by user code, but only by DatumWriter
implementations.
get
in interface IndexedRecord
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public 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 |