|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.record.Record
@Deprecated @InterfaceAudience.Public @InterfaceStability.Stable public abstract class Record
Abstract class that is extended by generated classes.
Constructor Summary | |
---|---|
Record()
Deprecated. |
Method Summary | |
---|---|
abstract int |
compareTo(Object peer)
Deprecated. |
void |
deserialize(RecordInput rin)
Deprecated. Deserialize a record without a tag |
abstract void |
deserialize(RecordInput rin,
String tag)
Deprecated. Deserialize a record with a tag (usually field name) |
void |
readFields(DataInput din)
Deprecated. Deserialize the fields of this object from in . |
void |
serialize(RecordOutput rout)
Deprecated. Serialize a record without a tag |
abstract void |
serialize(RecordOutput rout,
String tag)
Deprecated. Serialize a record with tag (ususally field name) |
String |
toString()
Deprecated. |
void |
write(DataOutput out)
Deprecated. 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, String tag) throws IOException
rout
- Record output destinationtag
- record tag (Used only in tagged serialization e.g. XML)
IOException
public abstract void deserialize(RecordInput rin, String tag) throws IOException
rin
- Record input sourcetag
- Record tag (Used only in tagged serialization e.g. XML)
IOException
public abstract int compareTo(Object peer) throws ClassCastException
compareTo
in interface Comparable
ClassCastException
public void serialize(RecordOutput rout) throws IOException
rout
- Record output destination
IOException
public void deserialize(RecordInput rin) throws IOException
rin
- Record input source
IOException
public void write(DataOutput out) throws IOException
Writable
out
.
write
in interface Writable
out
- DataOuput
to serialize this object into.
IOException
public void readFields(DataInput din) throws 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.
IOException
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |