Class BinaryRecordOutput

java.lang.Object
org.apache.hadoop.record.BinaryRecordOutput
All Implemented Interfaces:
RecordOutput

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

    • BinaryRecordOutput

      public BinaryRecordOutput(OutputStream out)
      Deprecated.
      Creates a new instance of BinaryRecordOutput
    • BinaryRecordOutput

      public BinaryRecordOutput(DataOutput out)
      Deprecated.
      Creates a new instance of BinaryRecordOutput
  • Method Details

    • get

      public static BinaryRecordOutput get(DataOutput out)
      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

      public void writeByte(byte b, String tag) throws IOException
      Deprecated.
      Description copied from interface: RecordOutput
      Write a byte to serialized record.
      Specified by:
      writeByte in interface RecordOutput
      Parameters:
      b - Byte to be serialized
      tag - Used by tagged serialization formats (such as XML)
      Throws:
      IOException - Indicates error in serialization
    • writeBool

      public void writeBool(boolean b, String tag) throws IOException
      Deprecated.
      Description copied from interface: RecordOutput
      Write a boolean to serialized record.
      Specified by:
      writeBool in interface RecordOutput
      Parameters:
      b - Boolean to be serialized
      tag - Used by tagged serialization formats (such as XML)
      Throws:
      IOException - Indicates error in serialization
    • writeInt

      public void writeInt(int i, String tag) throws IOException
      Deprecated.
      Description copied from interface: RecordOutput
      Write an integer to serialized record.
      Specified by:
      writeInt in interface RecordOutput
      Parameters:
      i - Integer to be serialized
      tag - Used by tagged serialization formats (such as XML)
      Throws:
      IOException - Indicates error in serialization
    • writeLong

      public void writeLong(long l, String tag) throws IOException
      Deprecated.
      Description copied from interface: RecordOutput
      Write a long integer to serialized record.
      Specified by:
      writeLong in interface RecordOutput
      Parameters:
      l - Long to be serialized
      tag - Used by tagged serialization formats (such as XML)
      Throws:
      IOException - Indicates error in serialization
    • writeFloat

      public void writeFloat(float f, String tag) throws IOException
      Deprecated.
      Description copied from interface: RecordOutput
      Write a single-precision float to serialized record.
      Specified by:
      writeFloat in interface RecordOutput
      Parameters:
      f - Float to be serialized
      tag - Used by tagged serialization formats (such as XML)
      Throws:
      IOException - Indicates error in serialization
    • writeDouble

      public void writeDouble(double d, String tag) throws IOException
      Deprecated.
      Description copied from interface: RecordOutput
      Write a double precision floating point number to serialized record.
      Specified by:
      writeDouble in interface RecordOutput
      Parameters:
      d - Double to be serialized
      tag - Used by tagged serialization formats (such as XML)
      Throws:
      IOException - Indicates error in serialization
    • writeString

      public void writeString(String s, String tag) throws IOException
      Deprecated.
      Description copied from interface: RecordOutput
      Write a unicode string to serialized record.
      Specified by:
      writeString in interface RecordOutput
      Parameters:
      s - String to be serialized
      tag - Used by tagged serialization formats (such as XML)
      Throws:
      IOException - Indicates error in serialization
    • writeBuffer

      public void writeBuffer(Buffer buf, String tag) throws IOException
      Deprecated.
      Description copied from interface: RecordOutput
      Write a buffer to serialized record.
      Specified by:
      writeBuffer in interface RecordOutput
      Parameters:
      buf - Buffer to be serialized
      tag - Used by tagged serialization formats (such as XML)
      Throws:
      IOException - Indicates error in serialization
    • startRecord

      public void startRecord(Record r, String tag) throws IOException
      Deprecated.
      Description copied from interface: RecordOutput
      Mark the start of a record to be serialized.
      Specified by:
      startRecord in interface RecordOutput
      Parameters:
      r - Record to be serialized
      tag - Used by tagged serialization formats (such as XML)
      Throws:
      IOException - Indicates error in serialization
    • endRecord

      public void endRecord(Record r, String tag) throws IOException
      Deprecated.
      Description copied from interface: RecordOutput
      Mark the end of a serialized record.
      Specified by:
      endRecord in interface RecordOutput
      Parameters:
      r - Record to be serialized
      tag - Used by tagged serialization formats (such as XML)
      Throws:
      IOException - Indicates error in serialization
    • startVector

      public void startVector(ArrayList v, String tag) throws IOException
      Deprecated.
      Description copied from interface: RecordOutput
      Mark the start of a vector to be serialized.
      Specified by:
      startVector in interface RecordOutput
      Parameters:
      v - Vector to be serialized
      tag - Used by tagged serialization formats (such as XML)
      Throws:
      IOException - Indicates error in serialization
    • endVector

      public void endVector(ArrayList v, String tag) throws IOException
      Deprecated.
      Description copied from interface: RecordOutput
      Mark the end of a serialized vector.
      Specified by:
      endVector in interface RecordOutput
      Parameters:
      v - Vector to be serialized
      tag - Used by tagged serialization formats (such as XML)
      Throws:
      IOException - Indicates error in serialization
    • startMap

      public void startMap(TreeMap v, String tag) throws IOException
      Deprecated.
      Description copied from interface: RecordOutput
      Mark the start of a map to be serialized.
      Specified by:
      startMap in interface RecordOutput
      Parameters:
      v - Map to be serialized
      tag - Used by tagged serialization formats (such as XML)
      Throws:
      IOException - Indicates error in serialization
    • endMap

      public void endMap(TreeMap v, String tag) throws IOException
      Deprecated.
      Description copied from interface: RecordOutput
      Mark the end of a serialized map.
      Specified by:
      endMap in interface RecordOutput
      Parameters:
      v - Map to be serialized
      tag - Used by tagged serialization formats (such as XML)
      Throws:
      IOException - Indicates error in serialization