@Deprecated public class BinarySerializerDeserializer extends Object implements SerializerDeserializer
| Constructor and Description |
|---|
BinarySerializerDeserializer()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
Datum |
deserialize(int index,
byte[] bytes,
int offset,
int length,
byte[] nullCharacters)
Deprecated.
|
void |
init(Schema schema)
Deprecated.
|
int |
serialize(int index,
Tuple tuple,
OutputStream out,
byte[] nullCharacters)
Deprecated.
|
double |
toDouble(byte[] bytes,
int offset,
int length)
Deprecated.
|
float |
toFloat(byte[] bytes,
int offset,
int length)
Deprecated.
|
int |
writeDouble(OutputStream out,
double d)
Deprecated.
|
int |
writeFloat(OutputStream out,
float f)
Deprecated.
|
int |
writeShort(OutputStream out,
short val)
Deprecated.
|
int |
writeVLong(OutputStream out,
long l)
Deprecated.
|
static int |
writeVLongToByteArray(byte[] bytes,
int offset,
long l)
Deprecated.
|
public void init(Schema schema)
init in interface SerializerDeserializerpublic int serialize(int index,
Tuple tuple,
OutputStream out,
byte[] nullCharacters)
throws IOException
serialize in interface SerializerDeserializerIOExceptionpublic Datum deserialize(int index, byte[] bytes, int offset, int length, byte[] nullCharacters) throws IOException
deserialize in interface SerializerDeserializerIOExceptionpublic int writeShort(OutputStream out, short val) throws IOException
IOExceptionpublic float toFloat(byte[] bytes,
int offset,
int length)
public int writeFloat(OutputStream out, float f) throws IOException
IOExceptionpublic double toDouble(byte[] bytes,
int offset,
int length)
public int writeDouble(OutputStream out, double d) throws IOException
IOExceptionpublic static int writeVLongToByteArray(byte[] bytes,
int offset,
long l)
public int writeVLong(OutputStream out, long l) throws IOException
IOExceptionCopyright © 2016 Apache Software Foundation. All Rights Reserved.