Package org.apache.hadoop.record
Interface RecordInput
- All Known Implementing Classes:
BinaryRecordInput
Deprecated.
Replaced by Avro.
Interface that all the Deserializers have to implement.
-
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.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.
-
Method Details
-
readByte
Deprecated.Read a byte from serialized record.- Parameters:
tag- Used by tagged serialization formats (such as XML)- Returns:
- value read from serialized record.
- Throws:
IOException
-
readBool
Deprecated.Read a boolean from serialized record.- Parameters:
tag- Used by tagged serialization formats (such as XML)- Returns:
- value read from serialized record.
- Throws:
IOException
-
readInt
Deprecated.Read an integer from serialized record.- Parameters:
tag- Used by tagged serialization formats (such as XML)- Returns:
- value read from serialized record.
- Throws:
IOException
-
readLong
Deprecated.Read a long integer from serialized record.- Parameters:
tag- Used by tagged serialization formats (such as XML)- Returns:
- value read from serialized record.
- Throws:
IOException
-
readFloat
Deprecated.Read a single-precision float from serialized record.- Parameters:
tag- Used by tagged serialization formats (such as XML)- Returns:
- value read from serialized record.
- Throws:
IOException
-
readDouble
Deprecated.Read a double-precision number from serialized record.- Parameters:
tag- Used by tagged serialization formats (such as XML)- Returns:
- value read from serialized record.
- Throws:
IOException
-
readString
Deprecated.Read a UTF-8 encoded string from serialized record.- Parameters:
tag- Used by tagged serialization formats (such as XML)- Returns:
- value read from serialized record.
- Throws:
IOException
-
readBuffer
Deprecated.Read byte array from serialized record.- Parameters:
tag- Used by tagged serialization formats (such as XML)- Returns:
- value read from serialized record.
- Throws:
IOException
-
startRecord
Deprecated.Check the mark for start of the serialized record.- Parameters:
tag- Used by tagged serialization formats (such as XML)- Throws:
IOException
-
endRecord
Deprecated.Check the mark for end of the serialized record.- Parameters:
tag- Used by tagged serialization formats (such as XML)- Throws:
IOException
-
startVector
Deprecated.Check the mark for start of the serialized vector.- 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.Check the mark for end of the serialized vector.- Parameters:
tag- Used by tagged serialization formats (such as XML)- Throws:
IOException
-
startMap
Deprecated.Check the mark for start of the serialized map.- 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.Check the mark for end of the serialized map.- Parameters:
tag- Used by tagged serialization formats (such as XML)- Throws:
IOException
-