|
||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
See:
Description
Class Summary | |
---|---|
TypedBytesInput | Provides functionality for reading typed bytes. |
TypedBytesOutput | Provides functionality for writing typed bytes. |
TypedBytesRecordInput | Serializer for records that writes typed bytes. |
TypedBytesRecordOutput | Deserialized for records that reads typed bytes. |
TypedBytesWritable | Writable for typed bytes. |
TypedBytesWritableInput | Provides functionality for reading typed bytes as Writable objects. |
TypedBytesWritableOutput | Provides functionality for writing Writable objects as typed bytes. |
Enum Summary | |
---|---|
Type | The possible type codes. |
Typed bytes are sequences of bytes in which the first byte is a type code. They are especially useful as a (simple and very straightforward) binary format for transferring data to and from Hadoop Streaming programs.
Code | Type |
---|---|
0 | A sequence of bytes. |
1 | A byte. |
2 | A boolean. |
3 | An integer. |
4 | A long. |
5 | A float. |
6 | A double. |
7 | A string. |
8 | A vector. |
9 | A list. |
10 | A map. |
Code | Subsequent Bytes |
---|---|
0 | <32-bit signed integer> <as many bytes as indicated by the integer> |
1 | <signed byte> |
2 | <signed byte (0 = false and 1 = true)> |
3 | <32-bit signed integer> |
4 | <64-bit signed integer> |
5 | <32-bit IEEE floating point number> |
6 | <64-bit IEEE floating point number> |
7 | <32-bit signed integer> <as many UTF-8 bytes as indicated by the integer> |
8 | <32-bit signed integer> <as many typed bytes sequences as indicated by the integer> |
9 | <variable number of typed bytes sequences> <255 written as an unsigned byte> |
10 | <32-bit signed integer> <as many (key-value) pairs of typed bytes sequences as indicated by the integer> |
|
||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |