Example usage for Java org.apache.hadoop.io WritableUtils fields, constructors, methods, implement or subclass
The text is from its open source code.
T | clone(T orig, Configuration conf) Make a copy of a writable object using serialization to a buffer. |
void | cloneInto(Writable dst, Writable src) Make a copy of the writable object using serialization to a buffer |
int | decodeVIntSize(byte value) Parse the first byte of a vint/vlong to determine the number of bytes |
int | getVIntSize(long i) Get the encoded length if an integer is stored in a variable-length format |
boolean | isNegativeVInt(byte value) Given the first byte of a vint/vlong, determine the sign |
byte[] | readCompressedByteArray(DataInput in) |
String | readCompressedString(DataInput in) |
String[] | readCompressedStringArray(DataInput in) |
T | readEnum(DataInput in, Class Read an Enum value from DataInput, Enums are read and written using String values. |
String | readString(DataInput in) |
String[] | readStringArray(DataInput in) |
String | readStringSafely(DataInput in, int maxLength) Read a string, but check it for sanity. |
int | readVInt(DataInput stream) Reads a zero-compressed encoded integer from input stream and returns it. |
long | readVLong(DataInput stream) Reads a zero-compressed encoded long from input stream and returns it. |
void | skipFully(DataInput in, int len) Skip len number of bytes in input streamin |
byte[] | toByteArray(Writable... writables) Convert writables to a byte array |
int | writeCompressedByteArray(DataOutput out, byte[] bytes) |
void | writeCompressedStringArray(DataOutput out, String[] s) |
void | writeEnum(DataOutput out, Enum> enumVal) writes String value of enum to DataOutput. |
void | writeString(DataOutput out, String s) |
void | writeStringArray(DataOutput out, String[] s) |
void | writeVInt(DataOutput stream, int i) Serializes an integer to a binary stream with zero-compressed encoding. |
void | writeVLong(DataOutput stream, long i) Serializes a long to a binary stream with zero-compressed encoding. |