public class ColumnSerializer extends java.lang.Object implements ISerializer<Cell>
Modifier and Type | Class and Description |
---|---|
static class |
ColumnSerializer.CorruptColumnException |
static class |
ColumnSerializer.Flag
Flag affecting deserialization behavior.
|
Modifier and Type | Field and Description |
---|---|
static int |
COUNTER_MASK |
static int |
COUNTER_UPDATE_MASK |
static int |
DELETION_MASK |
static int |
EXPIRATION_MASK |
static int |
RANGE_TOMBSTONE_MASK |
Constructor and Description |
---|
ColumnSerializer(CellNameType type) |
Modifier and Type | Method and Description |
---|---|
Cell |
deserialize(java.io.DataInput in)
Deserialize from the specified DataInput instance.
|
Cell |
deserialize(java.io.DataInput in,
ColumnSerializer.Flag flag) |
Cell |
deserialize(java.io.DataInput in,
ColumnSerializer.Flag flag,
int expireBefore) |
void |
serialize(Cell cell,
DataOutputPlus out)
Serialize the specified type into the specified DataOutput instance.
|
long |
serializedSize(Cell cell,
TypeSizes typeSizes) |
public static final int DELETION_MASK
public static final int EXPIRATION_MASK
public static final int COUNTER_MASK
public static final int COUNTER_UPDATE_MASK
public static final int RANGE_TOMBSTONE_MASK
public ColumnSerializer(CellNameType type)
public void serialize(Cell cell, DataOutputPlus out) throws java.io.IOException
ISerializer
serialize
in interface ISerializer<Cell>
cell
- type that needs to be serializedout
- DataOutput into which serialization needs to happen.java.io.IOException
public Cell deserialize(java.io.DataInput in) throws java.io.IOException
ISerializer
deserialize
in interface ISerializer<Cell>
in
- DataInput from which deserialization needs to happen.java.io.IOException
public Cell deserialize(java.io.DataInput in, ColumnSerializer.Flag flag) throws java.io.IOException
java.io.IOException
public Cell deserialize(java.io.DataInput in, ColumnSerializer.Flag flag, int expireBefore) throws java.io.IOException
java.io.IOException
public long serializedSize(Cell cell, TypeSizes typeSizes)
serializedSize
in interface ISerializer<Cell>
Copyright © 2015 The Apache Software Foundation