Java org.apache.hadoop.io WritableUtils fields, constructors, methods, implement or subclass

Example usage for Java org.apache.hadoop.io WritableUtils fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.hadoop.io WritableUtils.

The text is from its open source code.

Method

Tclone(T orig, Configuration conf)
Make a copy of a writable object using serialization to a buffer.
voidcloneInto(Writable dst, Writable src)
Make a copy of the writable object using serialization to a buffer
intdecodeVIntSize(byte value)
Parse the first byte of a vint/vlong to determine the number of bytes
intgetVIntSize(long i)
Get the encoded length if an integer is stored in a variable-length format
booleanisNegativeVInt(byte value)
Given the first byte of a vint/vlong, determine the sign
byte[]readCompressedByteArray(DataInput in)
StringreadCompressedString(DataInput in)
String[]readCompressedStringArray(DataInput in)
TreadEnum(DataInput in, Class enumType)
Read an Enum value from DataInput, Enums are read and written using String values.
StringreadString(DataInput in)
String[]readStringArray(DataInput in)
StringreadStringSafely(DataInput in, int maxLength)
Read a string, but check it for sanity.
intreadVInt(DataInput stream)
Reads a zero-compressed encoded integer from input stream and returns it.
longreadVLong(DataInput stream)
Reads a zero-compressed encoded long from input stream and returns it.
voidskipFully(DataInput in, int len)
Skip len number of bytes in input streamin
byte[]toByteArray(Writable... writables)
Convert writables to a byte array
intwriteCompressedByteArray(DataOutput out, byte[] bytes)
voidwriteCompressedStringArray(DataOutput out, String[] s)
voidwriteEnum(DataOutput out, Enum enumVal)
writes String value of enum to DataOutput.
voidwriteString(DataOutput out, String s)
voidwriteStringArray(DataOutput out, String[] s)
voidwriteVInt(DataOutput stream, int i)
Serializes an integer to a binary stream with zero-compressed encoding.
voidwriteVLong(DataOutput stream, long i)
Serializes a long to a binary stream with zero-compressed encoding.