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