java.lang.Cloneable, java.lang.Comparable, org.apache.hadoop.io.Writable, org.apache.hadoop.io.WritableComparable@Deprecated
@Public
@Stable
public abstract class Record
extends java.lang.Object
implements org.apache.hadoop.io.WritableComparable, java.lang.Cloneable
| Constructor | Description |
|---|---|
Record() |
Deprecated.
|
| Modifier and Type | Method | Description |
|---|---|---|
abstract int |
compareTo(java.lang.Object peer) |
Deprecated.
|
void |
deserialize(RecordInput rin) |
Deprecated.
Deserialize a record without a tag
|
abstract void |
deserialize(RecordInput rin,
java.lang.String tag) |
Deprecated.
Deserialize a record with a tag (usually field name)
|
void |
readFields(java.io.DataInput din) |
Deprecated.
|
void |
serialize(RecordOutput rout) |
Deprecated.
Serialize a record without a tag
|
abstract void |
serialize(RecordOutput rout,
java.lang.String tag) |
Deprecated.
Serialize a record with tag (ususally field name)
|
java.lang.String |
toString() |
Deprecated.
|
void |
write(java.io.DataOutput out) |
Deprecated.
|
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.IOExceptionpublic 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.IOExceptionpublic abstract int compareTo(java.lang.Object peer)
throws java.lang.ClassCastException
compareTo in interface java.lang.Comparablejava.lang.ClassCastExceptionpublic void serialize(RecordOutput rout) throws java.io.IOException
rout - Record output destinationjava.io.IOExceptionpublic void deserialize(RecordInput rin) throws java.io.IOException
rin - Record input sourcejava.io.IOExceptionpublic void write(java.io.DataOutput out)
throws java.io.IOException
write in interface org.apache.hadoop.io.Writablejava.io.IOExceptionpublic void readFields(java.io.DataInput din)
throws java.io.IOException
readFields in interface org.apache.hadoop.io.Writablejava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2008–2025 Apache Software Foundation. All rights reserved.