public abstract class SpecificRecordBase extends Object implements SpecificRecord, Comparable<SpecificRecord>, GenericRecord, Externalizable
| 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.
|
Conversion<?> |
getConverion(String fieldName) |
Conversion<?> |
getConversion(int field) |
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.
|
void |
readExternal(ObjectInput in) |
String |
toString() |
void |
writeExternal(ObjectOutput out) |
public abstract Schema getSchema()
GenericContainergetSchema 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 IndexedRecordpublic 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 Conversion<?> getConversion(int field)
public void put(String fieldName, Object value)
GenericRecordput in interface GenericRecordpublic Object get(String fieldName)
GenericRecordget in interface GenericRecordpublic Conversion<?> getConverion(String fieldName)
public int compareTo(SpecificRecord that)
compareTo in interface Comparable<SpecificRecord>public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException
readExternal in interface ExternalizableIOExceptionCopyright © 2009–2016 The Apache Software Foundation. All rights reserved.