@Deprecated @InterfaceAudience.Public @InterfaceStability.Stable public abstract class Record extends Object implements org.apache.hadoop.io.WritableComparable, Cloneable
| Constructor and Description |
|---|
Record()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.
|
public abstract void serialize(RecordOutput rout, String tag) throws IOException
rout - Record output destinationtag - record tag (Used only in tagged serialization e.g. XML)IOExceptionpublic abstract void deserialize(RecordInput rin, String tag) throws IOException
rin - Record input sourcetag - Record tag (Used only in tagged serialization e.g. XML)IOExceptionpublic abstract int compareTo(Object peer) throws ClassCastException
compareTo in interface ComparableClassCastExceptionpublic void serialize(RecordOutput rout) throws IOException
rout - Record output destinationIOExceptionpublic void deserialize(RecordInput rin) throws IOException
rin - Record input sourceIOExceptionpublic void write(DataOutput out) throws IOException
write in interface org.apache.hadoop.io.WritableIOExceptionpublic void readFields(DataInput din) throws IOException
readFields in interface org.apache.hadoop.io.WritableIOExceptionCopyright © 2008–2023 Apache Software Foundation. All rights reserved.