Package org.apache.hadoop.record
Interface RecordOutput
- All Known Implementing Classes:
BinaryRecordOutput,CsvRecordOutput
Deprecated.
Replaced by Avro.
Interface that all the serializers have to implement.
-
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.Mark the end of a serialized map.voidDeprecated.Mark the end of a serialized record.voidDeprecated.Mark the end of a serialized vector.voidDeprecated.Mark the start of a map to be serialized.voidstartRecord(Record r, String tag) Deprecated.Mark the start of a record to be serialized.voidstartVector(ArrayList v, String tag) Deprecated.Mark the start of a vector to be serialized.voidDeprecated.Write a boolean to serialized record.voidwriteBuffer(Buffer buf, String tag) Deprecated.Write a buffer to serialized record.voidDeprecated.Write a byte to serialized record.voidwriteDouble(double d, String tag) Deprecated.Write a double precision floating point number to serialized record.voidwriteFloat(float f, String tag) Deprecated.Write a single-precision float to serialized record.voidDeprecated.Write an integer to serialized record.voidDeprecated.Write a long integer to serialized record.voidwriteString(String s, String tag) Deprecated.Write a unicode string to serialized record.
-
Method Details
-
writeByte
Deprecated.Write a byte to serialized record.- Parameters:
b- Byte to be serializedtag- Used by tagged serialization formats (such as XML)- Throws:
IOException- Indicates error in serialization
-
writeBool
Deprecated.Write a boolean to serialized record.- Parameters:
b- Boolean to be serializedtag- Used by tagged serialization formats (such as XML)- Throws:
IOException- Indicates error in serialization
-
writeInt
Deprecated.Write an integer to serialized record.- Parameters:
i- Integer to be serializedtag- Used by tagged serialization formats (such as XML)- Throws:
IOException- Indicates error in serialization
-
writeLong
Deprecated.Write a long integer to serialized record.- Parameters:
l- Long to be serializedtag- Used by tagged serialization formats (such as XML)- Throws:
IOException- Indicates error in serialization
-
writeFloat
Deprecated.Write a single-precision float to serialized record.- Parameters:
f- Float to be serializedtag- Used by tagged serialization formats (such as XML)- Throws:
IOException- Indicates error in serialization
-
writeDouble
Deprecated.Write a double precision floating point number to serialized record.- Parameters:
d- Double to be serializedtag- Used by tagged serialization formats (such as XML)- Throws:
IOException- Indicates error in serialization
-
writeString
Deprecated.Write a unicode string to serialized record.- Parameters:
s- String to be serializedtag- Used by tagged serialization formats (such as XML)- Throws:
IOException- Indicates error in serialization
-
writeBuffer
Deprecated.Write a buffer to serialized record.- Parameters:
buf- Buffer to be serializedtag- Used by tagged serialization formats (such as XML)- Throws:
IOException- Indicates error in serialization
-
startRecord
Deprecated.Mark the start of a record to be serialized.- Parameters:
r- Record to be serializedtag- Used by tagged serialization formats (such as XML)- Throws:
IOException- Indicates error in serialization
-
endRecord
Deprecated.Mark the end of a serialized record.- Parameters:
r- Record to be serializedtag- Used by tagged serialization formats (such as XML)- Throws:
IOException- Indicates error in serialization
-
startVector
Deprecated.Mark the start of a vector to be serialized.- Parameters:
v- Vector to be serializedtag- Used by tagged serialization formats (such as XML)- Throws:
IOException- Indicates error in serialization
-
endVector
Deprecated.Mark the end of a serialized vector.- Parameters:
v- Vector to be serializedtag- Used by tagged serialization formats (such as XML)- Throws:
IOException- Indicates error in serialization
-
startMap
Deprecated.Mark the start of a map to be serialized.- Parameters:
m- Map to be serializedtag- Used by tagged serialization formats (such as XML)- Throws:
IOException- Indicates error in serialization
-
endMap
Deprecated.Mark the end of a serialized map.- Parameters:
m- Map to be serializedtag- Used by tagged serialization formats (such as XML)- Throws:
IOException- Indicates error in serialization
-