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