public abstract class SpecificRecordBase extends Object implements SpecificRecord, Comparable<SpecificRecord>, GenericRecord
Constructor and Description |
---|
SpecificRecordBase() |
Modifier and Type | Method and Description |
---|---|
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.
|
Object |
get(String fieldName)
Return the value of a field given its name.
|
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.
|
void |
put(String fieldName,
Object value)
Set the value of a field given its name.
|
String |
toString() |
public abstract Schema getSchema()
GenericContainer
getSchema
in interface GenericContainer
public abstract Object get(int field)
IndexedRecord
This 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)
IndexedRecord
This method is not meant to be called by user code, but only by DatumReader
implementations.
put
in interface IndexedRecord
public void put(String fieldName, Object value)
GenericRecord
put
in interface GenericRecord
public Object get(String fieldName)
GenericRecord
get
in interface GenericRecord
public int compareTo(SpecificRecord that)
compareTo
in interface Comparable<SpecificRecord>
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.