@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
IOException
public static byte[] readBytes(DataInput in, byte type) throws IOException
IOException
public static void writeChararray(DataOutput out, String s) throws IOException
IOException
public static String readChararray(DataInput in, byte type) throws IOException
IOException
public static void writeGenericTuple(DataOutput out, Tuple t) throws IOException
IOException
public static Tuple readGenericTuple(DataInput in, byte type) throws IOException
IOException
public static void writeBooleanArray(DataOutput out, boolean[] v, boolean extra) throws IOException
IOException
public static void writeBooleanArray(DataOutput out, boolean[] v) throws IOException
IOException
public static boolean[] readBooleanArray(DataInput in, int size) throws IOException
IOException
Copyright © 2007-2012 The Apache Software Foundation