| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | compareTo(SpecificRecord
the object to be compared. that)Implements java. |
| public void | |
| public void | |
| public boolean | equals(Object
the reference object with which to compare. that)Overrides java. |
| public abstract Object | get(int field)
Redeclares org. |
| public Object | get(String fieldName)
Implements org. |
| public Conversion | |
| public Conversion | |
| public abstract Schema | getSchema()
Redeclares org. |
| public SpecificData | |
| protected boolean | hasCustomCoders()
Returns true iff an instance supports the |
| public int | |
| public abstract void | put(int field, Object value)
Redeclares org. |
| public void | put(String fieldName, Object value)
Implements org. |
| public void | readExternal(ObjectInput
the stream to read data from in order to restore the object in)Implements java. |
| public String | |
| public void | writeExternal(ObjectOutput
the stream to write the object to out)Implements java. |
| SpecificRecordBase | back to summary |
|---|---|
| public SpecificRecordBase() | |
| compareTo | back to summary |
|---|---|
| public int compareTo(SpecificRecord that) Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |
| customDecode | back to summary |
|---|---|
| public void customDecode(ResolvingDecoder in) throws IOException | |
| customEncode | back to summary |
|---|---|
| public void customEncode(Encoder out) throws IOException | |
| equals | back to summary |
|---|---|
| public boolean equals(Object that) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| get | back to summary |
|---|---|
| public abstract Object get(int field) Redeclares org. Doc from org. Return the value of a field given its position in the schema.
This method is not meant to be called by user code, but only by
| |
| get | back to summary |
|---|---|
| public Object get(String fieldName) Implements org. Doc from org. Return the value of a field given its name.
| |
| getConversion | back to summary |
|---|---|
| public Conversion | |
| getConversion | back to summary |
|---|---|
| public Conversion | |
| getSchema | back to summary |
|---|---|
| public abstract Schema getSchema() Redeclares org. Doc from org. The schema of this instance.
| |
| getSpecificData | back to summary |
|---|---|
| public SpecificData getSpecificData() | |
| hasCustomCoders | back to summary |
|---|---|
| protected boolean hasCustomCoders() Returns true iff an instance supports the | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| put | back to summary |
|---|---|
| public abstract void put(int field, Object value) Redeclares org. Doc from org. Set the value of a field given its position in the schema.
This method is not meant to be called by user code, but only by
| |
| put | back to summary |
|---|---|
| public void put(String fieldName, Object value) Implements org. Doc from org. Set the value of a field given its name.
| |
| readExternal | back to summary |
|---|---|
| public void readExternal(ObjectInput in) throws IOException Implements java. Doc from java. The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays. The readExternal method must read the values in the same sequence and with the same types as were written by writeExternal.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| writeExternal | back to summary |
|---|---|
| public void writeExternal(ObjectOutput out) throws IOException Implements java. Doc from java. The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings, and arrays.
| |