Package org.apache.hadoop.record
Class BinaryRecordOutput
java.lang.Object
org.apache.hadoop.record.BinaryRecordOutput
- All Implemented Interfaces:
RecordOutput
Deprecated.
Replaced by Avro.
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Creates a new instance of BinaryRecordOutputDeprecated.Creates a new instance of BinaryRecordOutput -
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.static BinaryRecordOutputget(DataOutput out) Deprecated.Get a thread-local record output for the supplied DataOutput.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.
-
Constructor Details
-
BinaryRecordOutput
Deprecated.Creates a new instance of BinaryRecordOutput -
BinaryRecordOutput
Deprecated.Creates a new instance of BinaryRecordOutput
-
-
Method Details
-
get
Deprecated.Get a thread-local record output for the supplied DataOutput.- Parameters:
out- data output stream- Returns:
- binary record output corresponding to the supplied DataOutput.
-
writeByte
Deprecated.Description copied from interface:RecordOutputWrite a byte to serialized record.- Specified by:
writeBytein interfaceRecordOutput- Parameters:
b- Byte to be serializedtag- Used by tagged serialization formats (such as XML)- Throws:
IOException- Indicates error in serialization
-
writeBool
Deprecated.Description copied from interface:RecordOutputWrite a boolean to serialized record.- Specified by:
writeBoolin interfaceRecordOutput- Parameters:
b- Boolean to be serializedtag- Used by tagged serialization formats (such as XML)- Throws:
IOException- Indicates error in serialization
-
writeInt
Deprecated.Description copied from interface:RecordOutputWrite an integer to serialized record.- Specified by:
writeIntin interfaceRecordOutput- Parameters:
i- Integer to be serializedtag- Used by tagged serialization formats (such as XML)- Throws:
IOException- Indicates error in serialization
-
writeLong
Deprecated.Description copied from interface:RecordOutputWrite a long integer to serialized record.- Specified by:
writeLongin interfaceRecordOutput- Parameters:
l- Long to be serializedtag- Used by tagged serialization formats (such as XML)- Throws:
IOException- Indicates error in serialization
-
writeFloat
Deprecated.Description copied from interface:RecordOutputWrite a single-precision float to serialized record.- Specified by:
writeFloatin interfaceRecordOutput- Parameters:
f- Float to be serializedtag- Used by tagged serialization formats (such as XML)- Throws:
IOException- Indicates error in serialization
-
writeDouble
Deprecated.Description copied from interface:RecordOutputWrite a double precision floating point number to serialized record.- Specified by:
writeDoublein interfaceRecordOutput- Parameters:
d- Double to be serializedtag- Used by tagged serialization formats (such as XML)- Throws:
IOException- Indicates error in serialization
-
writeString
Deprecated.Description copied from interface:RecordOutputWrite a unicode string to serialized record.- Specified by:
writeStringin interfaceRecordOutput- Parameters:
s- String to be serializedtag- Used by tagged serialization formats (such as XML)- Throws:
IOException- Indicates error in serialization
-
writeBuffer
Deprecated.Description copied from interface:RecordOutputWrite a buffer to serialized record.- Specified by:
writeBufferin interfaceRecordOutput- Parameters:
buf- Buffer to be serializedtag- Used by tagged serialization formats (such as XML)- Throws:
IOException- Indicates error in serialization
-
startRecord
Deprecated.Description copied from interface:RecordOutputMark the start of a record to be serialized.- Specified by:
startRecordin interfaceRecordOutput- Parameters:
r- Record to be serializedtag- Used by tagged serialization formats (such as XML)- Throws:
IOException- Indicates error in serialization
-
endRecord
Deprecated.Description copied from interface:RecordOutputMark the end of a serialized record.- Specified by:
endRecordin interfaceRecordOutput- Parameters:
r- Record to be serializedtag- Used by tagged serialization formats (such as XML)- Throws:
IOException- Indicates error in serialization
-
startVector
Deprecated.Description copied from interface:RecordOutputMark the start of a vector to be serialized.- Specified by:
startVectorin interfaceRecordOutput- Parameters:
v- Vector to be serializedtag- Used by tagged serialization formats (such as XML)- Throws:
IOException- Indicates error in serialization
-
endVector
Deprecated.Description copied from interface:RecordOutputMark the end of a serialized vector.- Specified by:
endVectorin interfaceRecordOutput- Parameters:
v- Vector to be serializedtag- Used by tagged serialization formats (such as XML)- Throws:
IOException- Indicates error in serialization
-
startMap
Deprecated.Description copied from interface:RecordOutputMark the start of a map to be serialized.- Specified by:
startMapin interfaceRecordOutput- Parameters:
v- Map to be serializedtag- Used by tagged serialization formats (such as XML)- Throws:
IOException- Indicates error in serialization
-
endMap
Deprecated.Description copied from interface:RecordOutputMark the end of a serialized map.- Specified by:
endMapin interfaceRecordOutput- Parameters:
v- Map to be serializedtag- Used by tagged serialization formats (such as XML)- Throws:
IOException- Indicates error in serialization
-