Class BinaryRecordInput

java.lang.Object
org.apache.hadoop.record.BinaryRecordInput
All Implemented Interfaces:
RecordInput

@Deprecated @Public @Stable public class BinaryRecordInput extends Object implements RecordInput
Deprecated.
Replaced by Avro.
  • Constructor Details

    • BinaryRecordInput

      public BinaryRecordInput(InputStream strm)
      Deprecated.
      Creates a new instance of BinaryRecordInput
    • BinaryRecordInput

      public BinaryRecordInput(DataInput din)
      Deprecated.
      Creates a new instance of BinaryRecordInput
  • Method Details

    • get

      public static BinaryRecordInput get(DataInput inp)
      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

      public byte readByte(String tag) throws IOException
      Deprecated.
      Description copied from interface: RecordInput
      Read a byte from serialized record.
      Specified by:
      readByte in interface RecordInput
      Parameters:
      tag - Used by tagged serialization formats (such as XML)
      Returns:
      value read from serialized record.
      Throws:
      IOException
    • readBool

      public boolean readBool(String tag) throws IOException
      Deprecated.
      Description copied from interface: RecordInput
      Read a boolean from serialized record.
      Specified by:
      readBool in interface RecordInput
      Parameters:
      tag - Used by tagged serialization formats (such as XML)
      Returns:
      value read from serialized record.
      Throws:
      IOException
    • readInt

      public int readInt(String tag) throws IOException
      Deprecated.
      Description copied from interface: RecordInput
      Read an integer from serialized record.
      Specified by:
      readInt in interface RecordInput
      Parameters:
      tag - Used by tagged serialization formats (such as XML)
      Returns:
      value read from serialized record.
      Throws:
      IOException
    • readLong

      public long readLong(String tag) throws IOException
      Deprecated.
      Description copied from interface: RecordInput
      Read a long integer from serialized record.
      Specified by:
      readLong in interface RecordInput
      Parameters:
      tag - Used by tagged serialization formats (such as XML)
      Returns:
      value read from serialized record.
      Throws:
      IOException
    • readFloat

      public float readFloat(String tag) throws IOException
      Deprecated.
      Description copied from interface: RecordInput
      Read a single-precision float from serialized record.
      Specified by:
      readFloat in interface RecordInput
      Parameters:
      tag - Used by tagged serialization formats (such as XML)
      Returns:
      value read from serialized record.
      Throws:
      IOException
    • readDouble

      public double readDouble(String tag) throws IOException
      Deprecated.
      Description copied from interface: RecordInput
      Read a double-precision number from serialized record.
      Specified by:
      readDouble in interface RecordInput
      Parameters:
      tag - Used by tagged serialization formats (such as XML)
      Returns:
      value read from serialized record.
      Throws:
      IOException
    • readString

      public String readString(String tag) throws IOException
      Deprecated.
      Description copied from interface: RecordInput
      Read a UTF-8 encoded string from serialized record.
      Specified by:
      readString in interface RecordInput
      Parameters:
      tag - Used by tagged serialization formats (such as XML)
      Returns:
      value read from serialized record.
      Throws:
      IOException
    • readBuffer

      public Buffer readBuffer(String tag) throws IOException
      Deprecated.
      Description copied from interface: RecordInput
      Read byte array from serialized record.
      Specified by:
      readBuffer in interface RecordInput
      Parameters:
      tag - Used by tagged serialization formats (such as XML)
      Returns:
      value read from serialized record.
      Throws:
      IOException
    • startRecord

      public void startRecord(String tag) throws IOException
      Deprecated.
      Description copied from interface: RecordInput
      Check the mark for start of the serialized record.
      Specified by:
      startRecord in interface RecordInput
      Parameters:
      tag - Used by tagged serialization formats (such as XML)
      Throws:
      IOException
    • endRecord

      public void endRecord(String tag) throws IOException
      Deprecated.
      Description copied from interface: RecordInput
      Check the mark for end of the serialized record.
      Specified by:
      endRecord in interface RecordInput
      Parameters:
      tag - Used by tagged serialization formats (such as XML)
      Throws:
      IOException
    • startVector

      public Index startVector(String tag) throws IOException
      Deprecated.
      Description copied from interface: RecordInput
      Check the mark for start of the serialized vector.
      Specified by:
      startVector in interface RecordInput
      Parameters:
      tag - Used by tagged serialization formats (such as XML)
      Returns:
      Index that is used to count the number of elements.
      Throws:
      IOException
    • endVector

      public void endVector(String tag) throws IOException
      Deprecated.
      Description copied from interface: RecordInput
      Check the mark for end of the serialized vector.
      Specified by:
      endVector in interface RecordInput
      Parameters:
      tag - Used by tagged serialization formats (such as XML)
      Throws:
      IOException
    • startMap

      public Index startMap(String tag) throws IOException
      Deprecated.
      Description copied from interface: RecordInput
      Check the mark for start of the serialized map.
      Specified by:
      startMap in interface RecordInput
      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

      public void endMap(String tag) throws IOException
      Deprecated.
      Description copied from interface: RecordInput
      Check the mark for end of the serialized map.
      Specified by:
      endMap in interface RecordInput
      Parameters:
      tag - Used by tagged serialization formats (such as XML)
      Throws:
      IOException