|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.record.Record
public abstract class Record
Abstract class that is extended by generated classes.
Constructor Summary | |
---|---|
Record()
|
Method Summary | |
---|---|
abstract int |
compareTo(java.lang.Object peer)
|
void |
deserialize(RecordInput rin)
Deserialize a record without a tag |
abstract void |
deserialize(RecordInput rin,
java.lang.String tag)
Deserialize a record with a tag (usually field name) |
void |
readFields(java.io.DataInput din)
Deserialize the fields of this object from in . |
void |
serialize(RecordOutput rout)
Serialize a record without a tag |
abstract void |
serialize(RecordOutput rout,
java.lang.String tag)
Serialize a record with tag (ususally field name) |
java.lang.String |
toString()
|
void |
write(java.io.DataOutput out)
Serialize the fields of this object to out . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Record()
Method Detail |
---|
public abstract void serialize(RecordOutput rout, java.lang.String tag) throws java.io.IOException
rout
- Record output destinationtag
- record tag (Used only in tagged serialization e.g. XML)
java.io.IOException
public abstract void deserialize(RecordInput rin, java.lang.String tag) throws java.io.IOException
rin
- Record input sourcetag
- Record tag (Used only in tagged serialization e.g. XML)
java.io.IOException
public abstract int compareTo(java.lang.Object peer) throws java.lang.ClassCastException
compareTo
in interface java.lang.Comparable
java.lang.ClassCastException
public void serialize(RecordOutput rout) throws java.io.IOException
rout
- Record output destination
java.io.IOException
public void deserialize(RecordInput rin) throws java.io.IOException
rin
- Record input source
java.io.IOException
public void write(java.io.DataOutput out) throws java.io.IOException
Writable
out
.
write
in interface Writable
out
- DataOuput
to serialize this object into.
java.io.IOException
public void readFields(java.io.DataInput din) throws java.io.IOException
Writable
in
.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields
in interface Writable
din
- DataInput
to deseriablize this object from.
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |