Package org.apache.hadoop.record
Class Record
java.lang.Object
org.apache.hadoop.record.Record
- All Implemented Interfaces:
Cloneable,Comparable,Writable,WritableComparable
@Deprecated
@Public
@Stable
public abstract class Record
extends Object
implements WritableComparable, Cloneable
Deprecated.
Replaced by Avro.
Abstract class that is extended by generated classes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract intDeprecated.voiddeserialize(RecordInput rin) Deprecated.Deserialize a record without a tagabstract voiddeserialize(RecordInput rin, String tag) Deprecated.Deserialize a record with a tag (usually field name)voidreadFields(DataInput din) Deprecated.Deserialize the fields of this object fromin.voidserialize(RecordOutput rout) Deprecated.Serialize a record without a tagabstract voidserialize(RecordOutput rout, String tag) Deprecated.Serialize a record with tag (ususally field name)toString()Deprecated.voidwrite(DataOutput out) Deprecated.Serialize the fields of this object toout.
-
Constructor Details
-
Record
public Record()Deprecated.
-
-
Method Details
-
serialize
Deprecated.Serialize a record with tag (ususally field name)- Parameters:
rout- Record output destinationtag- record tag (Used only in tagged serialization e.g. XML)- Throws:
IOException
-
deserialize
Deprecated.Deserialize a record with a tag (usually field name)- Parameters:
rin- Record input sourcetag- Record tag (Used only in tagged serialization e.g. XML)- Throws:
IOException
-
compareTo
Deprecated.- Specified by:
compareToin interfaceComparable- Throws:
ClassCastException
-
serialize
Deprecated.Serialize a record without a tag- Parameters:
rout- Record output destination- Throws:
IOException
-
deserialize
Deprecated.Deserialize a record without a tag- Parameters:
rin- Record input source- Throws:
IOException
-
write
Deprecated.Description copied from interface:WritableSerialize the fields of this object toout.- Specified by:
writein interfaceWritable- Parameters:
out-DataOuputto serialize this object into.- Throws:
IOException- any other problem for write.
-
readFields
Deprecated.Description copied from interface:WritableDeserialize the fields of this object fromin.For efficiency, implementations should attempt to re-use storage in the existing object where possible.
- Specified by:
readFieldsin interfaceWritable- Parameters:
din-DataInputto deseriablize this object from.- Throws:
IOException- any other problem for readFields.
-
toString
Deprecated.
-