public static class LegacyLayout.LegacyCell extends java.lang.Object implements LegacyLayout.LegacyAtom
This is used as a temporary object to facilitate dealing with the legacy format, this is not meant to be optimal.
Modifier and Type | Class and Description |
---|---|
static class |
LegacyLayout.LegacyCell.Kind |
Modifier and Type | Field and Description |
---|---|
LegacyLayout.LegacyCell.Kind |
kind |
int |
localDeletionTime |
LegacyLayout.LegacyCellName |
name |
long |
timestamp |
int |
ttl |
java.nio.ByteBuffer |
value |
Constructor and Description |
---|
LegacyCell(LegacyLayout.LegacyCell.Kind kind,
LegacyLayout.LegacyCellName name,
java.nio.ByteBuffer value,
long timestamp,
int localDeletionTime,
int ttl) |
Modifier and Type | Method and Description |
---|---|
LegacyLayout.LegacyCell |
asCell() |
LegacyLayout.LegacyRangeTombstone |
asRangeTombstone() |
ClusteringPrefix |
clustering() |
static LegacyLayout.LegacyCell |
counter(LegacyLayout.LegacyCellName name,
java.nio.ByteBuffer value) |
static LegacyLayout.LegacyCell |
counterUpdate(CFMetaData metadata,
java.nio.ByteBuffer superColumnName,
java.nio.ByteBuffer name,
long value) |
static LegacyLayout.LegacyCell |
expiring(CFMetaData metadata,
java.nio.ByteBuffer superColumnName,
java.nio.ByteBuffer name,
java.nio.ByteBuffer value,
long timestamp,
int ttl,
int nowInSec) |
boolean |
isCell() |
boolean |
isCounter() |
boolean |
isCounterUpdate() |
boolean |
isExpiring() |
boolean |
isLive(int nowInSec) |
boolean |
isRowAtom(CFMetaData metaData)
Whether the atom is one that becomes part of a
Row in the new storage engine, meaning it is either
as cell or a legacy range tombstone that covers a single row, or parts of one. |
boolean |
isStatic() |
boolean |
isTombstone() |
static LegacyLayout.LegacyCell |
regular(CFMetaData metadata,
java.nio.ByteBuffer superColumnName,
java.nio.ByteBuffer name,
java.nio.ByteBuffer value,
long timestamp) |
byte |
serializationFlags() |
static LegacyLayout.LegacyCell |
tombstone(CFMetaData metadata,
java.nio.ByteBuffer superColumnName,
java.nio.ByteBuffer name,
long timestamp,
int nowInSec) |
java.lang.String |
toString() |
public final LegacyLayout.LegacyCell.Kind kind
public final LegacyLayout.LegacyCellName name
public final java.nio.ByteBuffer value
public final long timestamp
public final int localDeletionTime
public final int ttl
public LegacyCell(LegacyLayout.LegacyCell.Kind kind, LegacyLayout.LegacyCellName name, java.nio.ByteBuffer value, long timestamp, int localDeletionTime, int ttl)
public static LegacyLayout.LegacyCell regular(CFMetaData metadata, java.nio.ByteBuffer superColumnName, java.nio.ByteBuffer name, java.nio.ByteBuffer value, long timestamp) throws UnknownColumnException
UnknownColumnException
public static LegacyLayout.LegacyCell expiring(CFMetaData metadata, java.nio.ByteBuffer superColumnName, java.nio.ByteBuffer name, java.nio.ByteBuffer value, long timestamp, int ttl, int nowInSec) throws UnknownColumnException
UnknownColumnException
public static LegacyLayout.LegacyCell tombstone(CFMetaData metadata, java.nio.ByteBuffer superColumnName, java.nio.ByteBuffer name, long timestamp, int nowInSec) throws UnknownColumnException
UnknownColumnException
public static LegacyLayout.LegacyCell counterUpdate(CFMetaData metadata, java.nio.ByteBuffer superColumnName, java.nio.ByteBuffer name, long value) throws UnknownColumnException
UnknownColumnException
public static LegacyLayout.LegacyCell counter(LegacyLayout.LegacyCellName name, java.nio.ByteBuffer value)
public byte serializationFlags()
public boolean isCounterUpdate()
public ClusteringPrefix clustering()
clustering
in interface LegacyLayout.LegacyAtom
public boolean isStatic()
isStatic
in interface LegacyLayout.LegacyAtom
public boolean isCell()
isCell
in interface LegacyLayout.LegacyAtom
public LegacyLayout.LegacyCell asCell()
asCell
in interface LegacyLayout.LegacyAtom
public LegacyLayout.LegacyRangeTombstone asRangeTombstone()
asRangeTombstone
in interface LegacyLayout.LegacyAtom
public boolean isRowAtom(CFMetaData metaData)
LegacyLayout.LegacyAtom
Row
in the new storage engine, meaning it is either
as cell or a legacy range tombstone that covers a single row, or parts of one.isRowAtom
in interface LegacyLayout.LegacyAtom
public boolean isCounter()
public boolean isExpiring()
public boolean isTombstone()
public boolean isLive(int nowInSec)
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2021 The Apache Software Foundation