public class Column extends java.lang.Object implements IColumn
OnDiskAtom.Serializer| Modifier and Type | Field and Description |
|---|---|
protected java.nio.ByteBuffer |
name |
protected long |
timestamp |
protected java.nio.ByteBuffer |
value |
MAX_NAME_LENGTH| Constructor and Description |
|---|
Column(java.nio.ByteBuffer name,
java.nio.ByteBuffer value) |
Column(java.nio.ByteBuffer name,
java.nio.ByteBuffer value,
long timestamp) |
| Modifier and Type | Method and Description |
|---|---|
void |
addColumn(IColumn column) |
void |
addColumn(IColumn column,
Allocator allocator) |
static Column |
create(boolean value,
long timestamp,
java.lang.String... names) |
static Column |
create(java.nio.ByteBuffer value,
long timestamp,
java.lang.String... names) |
static Column |
create(double value,
long timestamp,
java.lang.String... names) |
static Column |
create(java.net.InetAddress value,
long timestamp,
java.lang.String... names) |
static Column |
create(int value,
long timestamp,
java.lang.String... names) |
static Column |
create(java.lang.String value,
long timestamp,
java.lang.String... names) |
int |
dataSize()
the size of user-provided data, not including internal overhead
|
IColumn |
diff(IColumn column) |
boolean |
equals(java.lang.Object o) |
int |
getLocalDeletionTime() |
long |
getMarkedForDeleteAt() |
java.lang.String |
getString(AbstractType<?> comparator) |
Column |
getSubColumn(java.nio.ByteBuffer columnName) |
java.util.Collection<IColumn> |
getSubColumns() |
int |
hashCode() |
boolean |
hasIrrelevantData(int gcBefore) |
boolean |
isLive()
For a simple column, live == !isMarkedForDelete.
|
boolean |
isMarkedForDelete() |
IColumn |
localCopy(ColumnFamilyStore cfs)
clones the column for the row cache, interning column names and making copies of other underlying byte buffers
|
IColumn |
localCopy(ColumnFamilyStore cfs,
Allocator allocator)
clones the column for the memtable, interning column names and making copies of other underlying byte buffers.
|
long |
maxTimestamp()
For a standard column, this is the same as timestamp().
|
long |
minTimestamp()
For a standard column, this is the same as timestamp().
|
long |
mostRecentLiveChangeAt() |
long |
mostRecentNonGCableChangeAt(int gcbefore) |
java.nio.ByteBuffer |
name() |
static OnDiskAtom.Serializer |
onDiskSerializer() |
IColumn |
reconcile(IColumn column) |
IColumn |
reconcile(IColumn column,
Allocator allocator) |
int |
serializationFlags() |
int |
serializedSize(TypeSizes typeSizes) |
long |
serializedSizeForSSTable() |
static ColumnSerializer |
serializer() |
long |
timestamp() |
void |
updateDigest(java.security.MessageDigest digest) |
void |
validateFields(CFMetaData metadata) |
protected void |
validateName(CFMetaData metadata) |
java.nio.ByteBuffer |
value() |
protected final java.nio.ByteBuffer name
protected final java.nio.ByteBuffer value
protected final long timestamp
public Column(java.nio.ByteBuffer name,
java.nio.ByteBuffer value)
public Column(java.nio.ByteBuffer name,
java.nio.ByteBuffer value,
long timestamp)
public static ColumnSerializer serializer()
public static OnDiskAtom.Serializer onDiskSerializer()
public java.nio.ByteBuffer name()
name in interface OnDiskAtompublic Column getSubColumn(java.nio.ByteBuffer columnName)
getSubColumn in interface IColumnpublic java.util.Collection<IColumn> getSubColumns()
getSubColumns in interface IColumnpublic long minTimestamp()
OnDiskAtomminTimestamp in interface OnDiskAtompublic long maxTimestamp()
IColumnmaxTimestamp in interface IColumnmaxTimestamp in interface OnDiskAtompublic boolean isMarkedForDelete()
isMarkedForDelete in interface IColumnpublic long getMarkedForDeleteAt()
getMarkedForDeleteAt in interface IColumnpublic long mostRecentLiveChangeAt()
mostRecentLiveChangeAt in interface IColumnpublic long mostRecentNonGCableChangeAt(int gcbefore)
mostRecentNonGCableChangeAt in interface IColumnpublic int dataSize()
IColumnpublic int serializedSize(TypeSizes typeSizes)
serializedSize in interface OnDiskAtompublic long serializedSizeForSSTable()
serializedSizeForSSTable in interface OnDiskAtompublic int serializationFlags()
serializationFlags in interface IColumnpublic void updateDigest(java.security.MessageDigest digest)
updateDigest in interface OnDiskAtompublic int getLocalDeletionTime()
getLocalDeletionTime in interface OnDiskAtompublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic IColumn localCopy(ColumnFamilyStore cfs)
IColumnpublic IColumn localCopy(ColumnFamilyStore cfs, Allocator allocator)
IColumnpublic java.lang.String getString(AbstractType<?> comparator)
public boolean isLive()
IColumnprotected void validateName(CFMetaData metadata) throws MarshalException
MarshalExceptionpublic void validateFields(CFMetaData metadata) throws MarshalException
validateFields in interface IColumnvalidateFields in interface OnDiskAtomMarshalExceptionpublic boolean hasIrrelevantData(int gcBefore)
hasIrrelevantData in interface IColumnpublic static Column create(java.lang.String value, long timestamp, java.lang.String... names)
public static Column create(int value, long timestamp, java.lang.String... names)
public static Column create(boolean value, long timestamp, java.lang.String... names)
public static Column create(double value, long timestamp, java.lang.String... names)
public static Column create(java.nio.ByteBuffer value, long timestamp, java.lang.String... names)
public static Column create(java.net.InetAddress value, long timestamp, java.lang.String... names)
Copyright © 2014 The Apache Software Foundation