|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.typedbytes.TypedBytesRecordInput
public class TypedBytesRecordInput
Serializer for records that writes typed bytes.
Constructor Summary | |
---|---|
TypedBytesRecordInput(DataInput in)
Creates a new instance of TypedBytesRecordInput. |
|
TypedBytesRecordInput(TypedBytesInput in)
Creates a new instance of TypedBytesRecordInput. |
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 TypedBytesRecordInput |
get(DataInput in)
Get a thread-local typed bytes record input for the supplied DataInput . |
static TypedBytesRecordInput |
get(TypedBytesInput in)
Get a thread-local typed bytes record input for the supplied TypedBytesInput . |
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 TypedBytesRecordInput(TypedBytesInput in)
public TypedBytesRecordInput(DataInput in)
Method Detail |
---|
public static TypedBytesRecordInput get(TypedBytesInput in)
TypedBytesInput
.
in
- typed bytes input object
TypedBytesInput
.public static TypedBytesRecordInput get(DataInput in)
DataInput
.
in
- data input object
DataInput
.public boolean readBool(String tag) throws IOException
RecordInput
readBool
in interface RecordInput
tag
- Used by tagged serialization formats (such as XML)
IOException
public Buffer readBuffer(String tag) throws IOException
RecordInput
readBuffer
in interface RecordInput
tag
- Used by tagged serialization formats (such as XML)
IOException
public byte readByte(String tag) throws IOException
RecordInput
readByte
in interface RecordInput
tag
- Used by tagged serialization formats (such as XML)
IOException
public double readDouble(String tag) throws IOException
RecordInput
readDouble
in interface RecordInput
tag
- Used by tagged serialization formats (such as XML)
IOException
public float readFloat(String tag) throws IOException
RecordInput
readFloat
in interface RecordInput
tag
- Used by tagged serialization formats (such as XML)
IOException
public int readInt(String tag) throws IOException
RecordInput
readInt
in interface RecordInput
tag
- Used by tagged serialization formats (such as XML)
IOException
public long readLong(String tag) throws IOException
RecordInput
readLong
in interface RecordInput
tag
- Used by tagged serialization formats (such as XML)
IOException
public String readString(String tag) throws IOException
RecordInput
readString
in interface RecordInput
tag
- Used by tagged serialization formats (such as XML)
IOException
public void startRecord(String tag) throws IOException
RecordInput
startRecord
in interface RecordInput
tag
- Used by tagged serialization formats (such as XML)
IOException
public Index startVector(String tag) throws IOException
RecordInput
startVector
in interface RecordInput
tag
- Used by tagged serialization formats (such as XML)
IOException
public Index startMap(String tag) throws IOException
RecordInput
startMap
in interface RecordInput
tag
- Used by tagged serialization formats (such as XML)
IOException
public void endRecord(String tag) throws IOException
RecordInput
endRecord
in interface RecordInput
tag
- Used by tagged serialization formats (such as XML)
IOException
public void endVector(String tag) throws IOException
RecordInput
endVector
in interface RecordInput
tag
- Used by tagged serialization formats (such as XML)
IOException
public void endMap(String tag) throws IOException
RecordInput
endMap
in interface RecordInput
tag
- 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 |