|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.record.BinaryRecordInput
public class BinaryRecordInput
| Constructor Summary | |
|---|---|
BinaryRecordInput(java.io.DataInput din)
Creates a new instance of BinaryRecordInput |
|
BinaryRecordInput(java.io.InputStream strm)
Creates a new instance of BinaryRecordInput |
|
| Method Summary | |
|---|---|
void |
endMap(java.lang.String tag)
Check the mark for end of the serialized map. |
void |
endRecord(java.lang.String tag)
Check the mark for end of the serialized record. |
void |
endVector(java.lang.String tag)
Check the mark for end of the serialized vector. |
static BinaryRecordInput |
get(java.io.DataInput inp)
Get a thread-local record input for the supplied DataInput. |
boolean |
readBool(java.lang.String tag)
Read a boolean from serialized record. |
Buffer |
readBuffer(java.lang.String tag)
Read byte array from serialized record. |
byte |
readByte(java.lang.String tag)
Read a byte from serialized record. |
double |
readDouble(java.lang.String tag)
Read a double-precision number from serialized record. |
float |
readFloat(java.lang.String tag)
Read a single-precision float from serialized record. |
int |
readInt(java.lang.String tag)
Read an integer from serialized record. |
long |
readLong(java.lang.String tag)
Read a long integer from serialized record. |
java.lang.String |
readString(java.lang.String tag)
Read a UTF-8 encoded string from serialized record. |
Index |
startMap(java.lang.String tag)
Check the mark for start of the serialized map. |
void |
startRecord(java.lang.String tag)
Check the mark for start of the serialized record. |
Index |
startVector(java.lang.String tag)
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 |
|---|
public BinaryRecordInput(java.io.InputStream strm)
public BinaryRecordInput(java.io.DataInput din)
| Method Detail |
|---|
public static BinaryRecordInput get(java.io.DataInput inp)
inp - data input stream
public byte readByte(java.lang.String tag)
throws java.io.IOException
RecordInput
readByte in interface RecordInputtag - Used by tagged serialization formats (such as XML)
java.io.IOException
public boolean readBool(java.lang.String tag)
throws java.io.IOException
RecordInput
readBool in interface RecordInputtag - Used by tagged serialization formats (such as XML)
java.io.IOException
public int readInt(java.lang.String tag)
throws java.io.IOException
RecordInput
readInt in interface RecordInputtag - Used by tagged serialization formats (such as XML)
java.io.IOException
public long readLong(java.lang.String tag)
throws java.io.IOException
RecordInput
readLong in interface RecordInputtag - Used by tagged serialization formats (such as XML)
java.io.IOException
public float readFloat(java.lang.String tag)
throws java.io.IOException
RecordInput
readFloat in interface RecordInputtag - Used by tagged serialization formats (such as XML)
java.io.IOException
public double readDouble(java.lang.String tag)
throws java.io.IOException
RecordInput
readDouble in interface RecordInputtag - Used by tagged serialization formats (such as XML)
java.io.IOException
public java.lang.String readString(java.lang.String tag)
throws java.io.IOException
RecordInput
readString in interface RecordInputtag - Used by tagged serialization formats (such as XML)
java.io.IOException
public Buffer readBuffer(java.lang.String tag)
throws java.io.IOException
RecordInput
readBuffer in interface RecordInputtag - Used by tagged serialization formats (such as XML)
java.io.IOException
public void startRecord(java.lang.String tag)
throws java.io.IOException
RecordInput
startRecord in interface RecordInputtag - Used by tagged serialization formats (such as XML)
java.io.IOException
public void endRecord(java.lang.String tag)
throws java.io.IOException
RecordInput
endRecord in interface RecordInputtag - Used by tagged serialization formats (such as XML)
java.io.IOException
public Index startVector(java.lang.String tag)
throws java.io.IOException
RecordInput
startVector in interface RecordInputtag - Used by tagged serialization formats (such as XML)
java.io.IOException
public void endVector(java.lang.String tag)
throws java.io.IOException
RecordInput
endVector in interface RecordInputtag - Used by tagged serialization formats (such as XML)
java.io.IOException
public Index startMap(java.lang.String tag)
throws java.io.IOException
RecordInput
startMap in interface RecordInputtag - Used by tagged serialization formats (such as XML)
java.io.IOException
public void endMap(java.lang.String tag)
throws java.io.IOException
RecordInput
endMap in interface RecordInputtag - Used by tagged serialization formats (such as XML)
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||