public abstract class LegacyLayout
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
LegacyLayout.CellGrouper |
static interface |
LegacyLayout.LegacyAtom |
static class |
LegacyLayout.LegacyBound |
static class |
LegacyLayout.LegacyCell
A legacy cell.
|
static class |
LegacyLayout.LegacyCellName |
static class |
LegacyLayout.LegacyDeletionInfo |
static class |
LegacyLayout.LegacyRangeTombstone
A legacy range tombstone.
|
static class |
LegacyLayout.LegacyRangeTombstoneList
Almost an entire copy of RangeTombstoneList from C* 2.1.
|
static class |
LegacyLayout.LegacyUnfilteredPartition |
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 |
MAX_CELL_NAME_LENGTH |
static int |
STATIC_PREFIX |
public static final int MAX_CELL_NAME_LENGTH
public static final int STATIC_PREFIX
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 AbstractType<?> makeLegacyComparator(CFMetaData metadata)
public static LegacyLayout.LegacyCellName decodeCellName(CFMetaData metadata, java.nio.ByteBuffer superColumnName, java.nio.ByteBuffer cellname) throws UnknownColumnException
UnknownColumnException
public static LegacyLayout.LegacyCellName decodeCellName(CFMetaData metadata, java.nio.ByteBuffer cellname) throws UnknownColumnException
UnknownColumnException
public static LegacyLayout.LegacyCellName decodeCellName(CFMetaData metadata, java.nio.ByteBuffer cellname, boolean readAllAsDynamic) throws UnknownColumnException
UnknownColumnException
public static LegacyLayout.LegacyBound decodeBound(CFMetaData metadata, java.nio.ByteBuffer bound, boolean isStart)
public static java.nio.ByteBuffer encodeBound(CFMetaData metadata, Slice.Bound bound, boolean isStart)
public static java.nio.ByteBuffer encodeCellName(CFMetaData metadata, ClusteringPrefix clustering, java.nio.ByteBuffer columnName, java.nio.ByteBuffer collectionElement)
public static Clustering decodeClustering(CFMetaData metadata, java.nio.ByteBuffer value)
public static java.nio.ByteBuffer encodeClustering(CFMetaData metadata, ClusteringPrefix clustering)
public static LegacyLayout.LegacyUnfilteredPartition fromUnfilteredRowIterator(ReadCommand command, UnfilteredRowIterator iterator)
public static void serializeAsLegacyPartition(ReadCommand command, UnfilteredRowIterator partition, DataOutputPlus out, int version) throws java.io.IOException
java.io.IOException
public static UnfilteredRowIterator deserializeLegacyPartition(DataInputPlus in, int version, SerializationHelper.Flag flag, java.nio.ByteBuffer key) throws java.io.IOException
java.io.IOException
public static long serializedSizeAsLegacyPartition(ReadCommand command, UnfilteredRowIterator partition, int version)
public static UnfilteredRowIterator toUnfilteredRowIterator(CFMetaData metadata, DecoratedKey key, LegacyLayout.LegacyDeletionInfo delInfo, java.util.Iterator<LegacyLayout.LegacyCell> cells)
public static UnfilteredRowIterator onWireCellstoUnfilteredRowIterator(CFMetaData metadata, DecoratedKey key, LegacyLayout.LegacyDeletionInfo delInfo, java.util.Iterator<LegacyLayout.LegacyCell> cells, boolean reversed, SerializationHelper helper)
public static Row extractStaticColumns(CFMetaData metadata, DataInputPlus in, Columns statics) throws java.io.IOException
java.io.IOException
public static Pair<LegacyLayout.LegacyRangeTombstoneList,java.util.Iterator<LegacyLayout.LegacyCell>> fromRowIterator(RowIterator iterator)
public static RowIterator toRowIterator(CFMetaData metadata, DecoratedKey key, java.util.Iterator<LegacyLayout.LegacyCell> cells, int nowInSec)
public static java.util.Comparator<LegacyLayout.LegacyCell> legacyCellComparator(CFMetaData metadata)
public static java.util.Comparator<LegacyLayout.LegacyCell> legacyCellComparator(CFMetaData metadata, boolean reversed)
public static java.util.Comparator<LegacyLayout.LegacyCellName> legacyCellNameComparator(CFMetaData metadata, boolean reversed)
public static LegacyLayout.LegacyAtom readLegacyAtom(CFMetaData metadata, DataInputPlus in, boolean readAllAsDynamic) throws java.io.IOException
java.io.IOException
public static LegacyLayout.LegacyCell readLegacyCell(CFMetaData metadata, java.io.DataInput in, SerializationHelper.Flag flag) throws java.io.IOException, UnknownColumnException
java.io.IOException
UnknownColumnException
public static LegacyLayout.LegacyCell readLegacyCellBody(CFMetaData metadata, java.io.DataInput in, java.nio.ByteBuffer cellname, int mask, SerializationHelper.Flag flag, boolean readAllAsDynamic) throws java.io.IOException, UnknownColumnException
java.io.IOException
UnknownColumnException
public static LegacyLayout.LegacyRangeTombstone readLegacyRangeTombstoneBody(CFMetaData metadata, DataInputPlus in, java.nio.ByteBuffer boundname) throws java.io.IOException
java.io.IOException
public static java.util.Iterator<LegacyLayout.LegacyCell> deserializeCells(CFMetaData metadata, java.io.DataInput in, SerializationHelper.Flag flag, int size)
Copyright © 2017 The Apache Software Foundation