@InterfaceAudience.Private public class SedesHelper extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SedesHelper.Varint
Encodes signed and unsigned values using a common variable-length
scheme, found for example in
Google's Protocol Buffers.
|
| Constructor and Description |
|---|
SedesHelper() |
| Modifier and Type | Method and Description |
|---|---|
static boolean[] |
readBooleanArray(DataInput in,
int size) |
static byte[] |
readBytes(DataInput in,
byte type) |
static String |
readChararray(DataInput in,
byte type) |
static Tuple |
readGenericTuple(DataInput in,
byte type) |
static void |
writeBooleanArray(DataOutput out,
boolean[] v) |
static void |
writeBooleanArray(DataOutput out,
boolean[] v,
boolean extra) |
static void |
writeBytes(DataOutput out,
byte[] buf) |
static void |
writeChararray(DataOutput out,
String s) |
static void |
writeGenericTuple(DataOutput out,
Tuple t) |
public static void writeBytes(DataOutput out, byte[] buf) throws IOException
IOExceptionpublic static byte[] readBytes(DataInput in, byte type) throws IOException
IOExceptionpublic static void writeChararray(DataOutput out, String s) throws IOException
IOExceptionpublic static String readChararray(DataInput in, byte type) throws IOException
IOExceptionpublic static void writeGenericTuple(DataOutput out, Tuple t) throws IOException
IOExceptionpublic static Tuple readGenericTuple(DataInput in, byte type) throws IOException
IOExceptionpublic static void writeBooleanArray(DataOutput out, boolean[] v, boolean extra) throws IOException
IOExceptionpublic static void writeBooleanArray(DataOutput out, boolean[] v) throws IOException
IOExceptionpublic static boolean[] readBooleanArray(DataInput in, int size) throws IOException
IOExceptionCopyright © 2007-2017 The Apache Software Foundation