org.apache.hadoop.record
Class BinaryRecordInput

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

Deprecated. Replaced by Avro.

@Deprecated
@InterfaceAudience.Public
@InterfaceStability.Stable
public class BinaryRecordInput
extends Object
implements RecordInput


Constructor Summary
BinaryRecordInput(DataInput din)
          Deprecated. Creates a new instance of BinaryRecordInput
BinaryRecordInput(InputStream strm)
          Deprecated. Creates a new instance of BinaryRecordInput
 
Method Summary
 void endMap(String tag)
          Deprecated. Check the mark for end of the serialized map.
 void endRecord(String tag)
          Deprecated. Check the mark for end of the serialized record.
 void endVector(String tag)
          Deprecated. Check the mark for end of the serialized vector.
static BinaryRecordInput get(DataInput inp)
          Deprecated. Get a thread-local record input for the supplied DataInput.
 boolean readBool(String tag)
          Deprecated. Read a boolean from serialized record.
 Buffer readBuffer(String tag)
          Deprecated. Read byte array from serialized record.
 byte readByte(String tag)
          Deprecated. Read a byte from serialized record.
 double readDouble(String tag)
          Deprecated. Read a double-precision number from serialized record.
 float readFloat(String tag)
          Deprecated. Read a single-precision float from serialized record.
 int readInt(String tag)
          Deprecated. Read an integer from serialized record.
 long readLong(String tag)
          Deprecated. Read a long integer from serialized record.
 String readString(String tag)
          Deprecated. Read a UTF-8 encoded string from serialized record.
 Index startMap(String tag)
          Deprecated. Check the mark for start of the serialized map.
 void startRecord(String tag)
          Deprecated. Check the mark for start of the serialized record.
 Index startVector(String tag)
          Deprecated. Check the mark for start of the serialized vector.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 Detail

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


Copyright © 2014 Apache Software Foundation. All Rights Reserved.