public static class OnDiskAtom.Serializer extends java.lang.Object implements ISSTableSerializer<OnDiskAtom>
Constructor and Description |
---|
Serializer(CellNameType type) |
Modifier and Type | Method and Description |
---|---|
OnDiskAtom |
deserializeFromSSTable(java.io.DataInput in,
ColumnSerializer.Flag flag,
int expireBefore,
Descriptor.Version version) |
OnDiskAtom |
deserializeFromSSTable(java.io.DataInput in,
Descriptor.Version version)
Deserialize into the specified DataInputStream instance in the format
suited for SSTables.
|
long |
serializedSizeForSSTable(OnDiskAtom atom) |
void |
serializeForSSTable(OnDiskAtom atom,
DataOutputPlus out)
Serialize the specified type into the specified DataOutputStream
instance in the format suited for SSTables.
|
public Serializer(CellNameType type)
public void serializeForSSTable(OnDiskAtom atom, DataOutputPlus out) throws java.io.IOException
ISSTableSerializer
serializeForSSTable
in interface ISSTableSerializer<OnDiskAtom>
atom
- type that needs to be serializedout
- DataOutput into which serialization needs to happen.java.io.IOException
public OnDiskAtom deserializeFromSSTable(java.io.DataInput in, Descriptor.Version version) throws java.io.IOException
ISSTableSerializer
deserializeFromSSTable
in interface ISSTableSerializer<OnDiskAtom>
in
- DataInput from which deserialization needs to happen.version
- the version for the sstable we're reading fromjava.io.IOException
public OnDiskAtom deserializeFromSSTable(java.io.DataInput in, ColumnSerializer.Flag flag, int expireBefore, Descriptor.Version version) throws java.io.IOException
java.io.IOException
public long serializedSizeForSSTable(OnDiskAtom atom)
Copyright © 2016 The Apache Software Foundation