Package org.apache.hadoop.record
Class BinaryRecordInput
java.lang.Object
org.apache.hadoop.record.BinaryRecordInput
- All Implemented Interfaces:
RecordInput
Deprecated.
Replaced by Avro.
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Creates a new instance of BinaryRecordInputBinaryRecordInput(InputStream strm) Deprecated.Creates a new instance of BinaryRecordInput -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.Check the mark for end of the serialized map.voidDeprecated.Check the mark for end of the serialized record.voidDeprecated.Check the mark for end of the serialized vector.static BinaryRecordInputDeprecated.Get a thread-local record input for the supplied DataInput.booleanDeprecated.Read a boolean from serialized record.readBuffer(String tag) Deprecated.Read byte array from serialized record.byteDeprecated.Read a byte from serialized record.doublereadDouble(String tag) Deprecated.Read a double-precision number from serialized record.floatDeprecated.Read a single-precision float from serialized record.intDeprecated.Read an integer from serialized record.longDeprecated.Read a long integer from serialized record.readString(String tag) Deprecated.Read a UTF-8 encoded string from serialized record.Deprecated.Check the mark for start of the serialized map.voidstartRecord(String tag) Deprecated.Check the mark for start of the serialized record.startVector(String tag) Deprecated.Check the mark for start of the serialized vector.
-
Constructor Details
-
BinaryRecordInput
Deprecated.Creates a new instance of BinaryRecordInput -
BinaryRecordInput
Deprecated.Creates a new instance of BinaryRecordInput
-
-
Method Details
-
get
Deprecated.Get a thread-local record input for the supplied DataInput.- Parameters:
inp- data input stream- Returns:
- binary record input corresponding to the supplied DataInput.
-
readByte
Deprecated.Description copied from interface:RecordInputRead a byte from serialized record.- Specified by:
readBytein interfaceRecordInput- Parameters:
tag- Used by tagged serialization formats (such as XML)- Returns:
- value read from serialized record.
- Throws:
IOException
-
readBool
Deprecated.Description copied from interface:RecordInputRead a boolean from serialized record.- Specified by:
readBoolin interfaceRecordInput- Parameters:
tag- Used by tagged serialization formats (such as XML)- Returns:
- value read from serialized record.
- Throws:
IOException
-
readInt
Deprecated.Description copied from interface:RecordInputRead an integer from serialized record.- Specified by:
readIntin interfaceRecordInput- Parameters:
tag- Used by tagged serialization formats (such as XML)- Returns:
- value read from serialized record.
- Throws:
IOException
-
readLong
Deprecated.Description copied from interface:RecordInputRead a long integer from serialized record.- Specified by:
readLongin interfaceRecordInput- Parameters:
tag- Used by tagged serialization formats (such as XML)- Returns:
- value read from serialized record.
- Throws:
IOException
-
readFloat
Deprecated.Description copied from interface:RecordInputRead a single-precision float from serialized record.- Specified by:
readFloatin interfaceRecordInput- Parameters:
tag- Used by tagged serialization formats (such as XML)- Returns:
- value read from serialized record.
- Throws:
IOException
-
readDouble
Deprecated.Description copied from interface:RecordInputRead a double-precision number from serialized record.- Specified by:
readDoublein interfaceRecordInput- Parameters:
tag- Used by tagged serialization formats (such as XML)- Returns:
- value read from serialized record.
- Throws:
IOException
-
readString
Deprecated.Description copied from interface:RecordInputRead a UTF-8 encoded string from serialized record.- Specified by:
readStringin interfaceRecordInput- Parameters:
tag- Used by tagged serialization formats (such as XML)- Returns:
- value read from serialized record.
- Throws:
IOException
-
readBuffer
Deprecated.Description copied from interface:RecordInputRead byte array from serialized record.- Specified by:
readBufferin interfaceRecordInput- Parameters:
tag- Used by tagged serialization formats (such as XML)- Returns:
- value read from serialized record.
- Throws:
IOException
-
startRecord
Deprecated.Description copied from interface:RecordInputCheck the mark for start of the serialized record.- Specified by:
startRecordin interfaceRecordInput- Parameters:
tag- Used by tagged serialization formats (such as XML)- Throws:
IOException
-
endRecord
Deprecated.Description copied from interface:RecordInputCheck the mark for end of the serialized record.- Specified by:
endRecordin interfaceRecordInput- Parameters:
tag- Used by tagged serialization formats (such as XML)- Throws:
IOException
-
startVector
Deprecated.Description copied from interface:RecordInputCheck the mark for start of the serialized vector.- Specified by:
startVectorin interfaceRecordInput- Parameters:
tag- Used by tagged serialization formats (such as XML)- Returns:
- Index that is used to count the number of elements.
- Throws:
IOException
-
endVector
Deprecated.Description copied from interface:RecordInputCheck the mark for end of the serialized vector.- Specified by:
endVectorin interfaceRecordInput- Parameters:
tag- Used by tagged serialization formats (such as XML)- Throws:
IOException
-
startMap
Deprecated.Description copied from interface:RecordInputCheck the mark for start of the serialized map.- Specified by:
startMapin interfaceRecordInput- Parameters:
tag- Used by tagged serialization formats (such as XML)- Returns:
- Index that is used to count the number of map entries.
- Throws:
IOException
-
endMap
Deprecated.Description copied from interface:RecordInputCheck the mark for end of the serialized map.- Specified by:
endMapin interfaceRecordInput- Parameters:
tag- Used by tagged serialization formats (such as XML)- Throws:
IOException
-