org.apache.hadoop.record
Class Record

java.lang.Object
  extended by org.apache.hadoop.record.Record
All Implemented Interfaces:
Cloneable, Comparable, Writable, WritableComparable
Direct Known Subclasses:
RecordTypeInfo

Deprecated. Replaced by Avro.

@Deprecated
@InterfaceAudience.Public
@InterfaceStability.Stable
public abstract class Record
extends Object
implements WritableComparable, Cloneable

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

Record

public Record()
Deprecated. 
Method Detail

serialize

public abstract void serialize(RecordOutput rout,
                               String tag)
                        throws IOException
Deprecated. 
Serialize a record with tag (ususally field name)

Parameters:
rout - Record output destination
tag - record tag (Used only in tagged serialization e.g. XML)
Throws:
IOException

deserialize

public abstract void deserialize(RecordInput rin,
                                 String tag)
                          throws IOException
Deprecated. 
Deserialize a record with a tag (usually field name)

Parameters:
rin - Record input source
tag - Record tag (Used only in tagged serialization e.g. XML)
Throws:
IOException

compareTo

public abstract int compareTo(Object peer)
                       throws ClassCastException
Deprecated. 
Specified by:
compareTo in interface Comparable
Throws:
ClassCastException

serialize

public void serialize(RecordOutput rout)
               throws IOException
Deprecated. 
Serialize a record without a tag

Parameters:
rout - Record output destination
Throws:
IOException

deserialize

public void deserialize(RecordInput rin)
                 throws IOException
Deprecated. 
Deserialize a record without a tag

Parameters:
rin - Record input source
Throws:
IOException

write

public void write(DataOutput out)
           throws IOException
Deprecated. 
Description copied from interface: Writable
Serialize the fields of this object to out.

Specified by:
write in interface Writable
Parameters:
out - DataOuput to serialize this object into.
Throws:
IOException

readFields

public void readFields(DataInput din)
                throws IOException
Deprecated. 
Description copied from interface: Writable
Deserialize the fields of this object from in.

For efficiency, implementations should attempt to re-use storage in the existing object where possible.

Specified by:
readFields in interface Writable
Parameters:
din - DataInput to deseriablize this object from.
Throws:
IOException

toString

public String toString()
Deprecated. 
Overrides:
toString in class Object


Copyright © 2014 Apache Software Foundation. All Rights Reserved.