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
UnknownColumnExceptionpublic 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
UnknownColumnExceptionpublic static LegacyLayout.LegacyCell tombstone(CFMetaData metadata, java.nio.ByteBuffer superColumnName, java.nio.ByteBuffer name, long timestamp, int nowInSec) throws UnknownColumnException
UnknownColumnExceptionpublic static LegacyLayout.LegacyCell counterUpdate(CFMetaData metadata, java.nio.ByteBuffer superColumnName, java.nio.ByteBuffer name, long value) throws UnknownColumnException
UnknownColumnExceptionpublic static LegacyLayout.LegacyCell counter(LegacyLayout.LegacyCellName name, java.nio.ByteBuffer value)
public byte serializationFlags()
public boolean isCounterUpdate()
public ClusteringPrefix clustering()
clustering in interface LegacyLayout.LegacyAtompublic boolean isStatic()
isStatic in interface LegacyLayout.LegacyAtompublic boolean isCell()
isCell in interface LegacyLayout.LegacyAtompublic LegacyLayout.LegacyCell asCell()
asCell in interface LegacyLayout.LegacyAtompublic LegacyLayout.LegacyRangeTombstone asRangeTombstone()
asRangeTombstone in interface LegacyLayout.LegacyAtompublic boolean isRowAtom(CFMetaData metaData)
LegacyLayout.LegacyAtomRow 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.LegacyAtompublic boolean isCounter()
public boolean isExpiring()
public boolean isTombstone()
public boolean isLive(int nowInSec)
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2009-2022 The Apache Software Foundation