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 |
Modifier and Type | Method and Description |
---|---|
LegacyLayout.LegacyCell |
asCell() |
LegacyLayout.LegacyRangeTombstone |
asRangeTombstone() |
ClusteringPrefix |
clustering() |
static LegacyLayout.LegacyCell |
counter(CFMetaData metadata,
java.nio.ByteBuffer superColumnName,
java.nio.ByteBuffer name,
long value) |
static LegacyLayout.LegacyCell |
counter(LegacyLayout.LegacyCellName name,
java.nio.ByteBuffer 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 |
isExpiring() |
boolean |
isLive(int nowInSec) |
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 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 counter(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 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 isCounter()
public boolean isExpiring()
public boolean isTombstone()
public boolean isLive(int nowInSec)
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2017 The Apache Software Foundation