public class BinarySerializerDeserializer extends Object implements SerializerDeserializer
Constructor and Description |
---|
BinarySerializerDeserializer() |
Modifier and Type | Method and Description |
---|---|
Datum |
deserialize(Column col,
byte[] bytes,
int offset,
int length,
byte[] nullCharacters) |
int |
serialize(Column col,
Datum datum,
OutputStream out,
byte[] nullCharacters) |
double |
toDouble(byte[] bytes,
int offset,
int length) |
float |
toFloat(byte[] bytes,
int offset,
int length) |
int |
writeDouble(OutputStream out,
double d) |
int |
writeFloat(OutputStream out,
float f) |
int |
writeShort(OutputStream out,
short val) |
int |
writeVLong(OutputStream out,
long l) |
int |
writeVLongToByteArray(byte[] bytes,
int offset,
long l) |
public int serialize(Column col, Datum datum, OutputStream out, byte[] nullCharacters) throws IOException
serialize
in interface SerializerDeserializer
IOException
public Datum deserialize(Column col, byte[] bytes, int offset, int length, byte[] nullCharacters) throws IOException
deserialize
in interface SerializerDeserializer
IOException
public int writeShort(OutputStream out, short val) throws IOException
IOException
public float toFloat(byte[] bytes, int offset, int length)
public int writeFloat(OutputStream out, float f) throws IOException
IOException
public double toDouble(byte[] bytes, int offset, int length)
public int writeDouble(OutputStream out, double d) throws IOException
IOException
public int writeVLongToByteArray(byte[] bytes, int offset, long l)
public int writeVLong(OutputStream out, long l) throws IOException
IOException
Copyright © 2014 Apache Software Foundation. All Rights Reserved.