public abstract class AbstractNativeCell extends AbstractCell implements CellName
Composite.EOC
OnDiskAtom.Serializer
MAX_NAME_LENGTH
Constructor and Description |
---|
AbstractNativeCell(NativeAllocator allocator,
OpOrder.Group writeOp,
Cell copyOf) |
Modifier and Type | Method and Description |
---|---|
int |
clusteringSize()
The number of clustering components.
|
java.nio.ByteBuffer |
collectionElement()
The value of the collection element, or null if the cell is not part
of a collection (i.e.
|
int |
compareTo(Composite that) |
int |
compareToSimple(Composite that) |
protected void |
construct(Cell from) |
CellName |
copy(CFMetaData cfm,
AbstractAllocator allocator) |
ColumnIdentifier |
cql3ColumnName(CFMetaData metadata)
The name of the CQL3 column this cell represents.
|
int |
dataSize() |
Composite |
end() |
Composite.EOC |
eoc() |
boolean |
equals(CellName that) |
boolean |
equals(java.lang.Object obj) |
java.nio.ByteBuffer |
get(int i) |
protected byte |
getByte(long offset) |
protected java.nio.ByteBuffer |
getByteBuffer(long offset,
int length) |
protected void |
getBytes(long offset,
byte[] trg,
int trgOffset,
int count) |
protected int |
getInt(long offset) |
protected long |
getLong(long offset) |
protected int |
getShort(long offset) |
protected long |
internalSize() |
boolean |
isCollectionCell() |
boolean |
isEmpty() |
boolean |
isPrefixOf(CType type,
Composite c) |
boolean |
isSameCQL3RowAs(CellNameType type,
CellName other)
Whether this cell is part of the same CQL3 row as the other cell.
|
boolean |
isStatic() |
long |
maxTimestamp() |
long |
minTimestamp() |
protected int |
postfixSize() |
protected void |
setByte(long offset,
byte b) |
protected void |
setBytes(long offset,
java.nio.ByteBuffer buffer) |
protected void |
setInt(long offset,
int l) |
protected void |
setLong(long offset,
long l) |
protected void |
setShort(long offset,
short s) |
int |
size() |
protected int |
sizeOf(Cell cell) |
ColumnSlice |
slice() |
Composite |
start() |
java.nio.ByteBuffer |
toByteBuffer() |
protected void |
updateWithName(java.security.MessageDigest digest) |
protected void |
updateWithValue(java.security.MessageDigest digest) |
java.nio.ByteBuffer |
value() |
Composite |
withEOC(Composite.EOC eoc) |
Cell |
withUpdatedName(CellName newName) |
Cell |
withUpdatedTimestamp(long newTimestamp) |
protected void |
writeComponentTo(java.security.MessageDigest digest,
int i,
boolean includeSize) |
protected void |
writeMemoryTo(java.security.MessageDigest digest,
int from,
int count) |
cellDataSize, create, diff, diffCounter, equals, getLocalDeletionTime, getString, hashCode, isLive, isLive, onDiskIterator, reconcile, reconcileCounter, serializationFlags, serializedSize, updateDigest, validateFields, validateName
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
unsharedHeapSizeExcludingData
unsharedHeapSize
localCopy, localCopy, name, unsharedHeapSizeExcludingData
timestamp
public AbstractNativeCell(NativeAllocator allocator, OpOrder.Group writeOp, Cell copyOf)
protected int sizeOf(Cell cell)
protected void construct(Cell from)
protected int postfixSize()
public long minTimestamp()
public long maxTimestamp()
public int clusteringSize()
CellName
clusteringSize
in interface CellName
public ColumnIdentifier cql3ColumnName(CFMetaData metadata)
CellName
cql3ColumnName
in interface CellName
public java.nio.ByteBuffer collectionElement()
CellName
collectionElement
in interface CellName
public boolean isCollectionCell()
isCollectionCell
in interface CellName
public boolean isSameCQL3RowAs(CellNameType type, CellName other)
CellName
isSameCQL3RowAs
in interface CellName
protected void writeComponentTo(java.security.MessageDigest digest, int i, boolean includeSize)
protected void writeMemoryTo(java.security.MessageDigest digest, int from, int count)
public Composite.EOC eoc()
public Composite withEOC(Composite.EOC eoc)
public ColumnSlice slice()
public boolean isPrefixOf(CType type, Composite c)
isPrefixOf
in interface Composite
public java.nio.ByteBuffer toByteBuffer()
toByteBuffer
in interface Composite
protected void updateWithName(java.security.MessageDigest digest)
protected void updateWithValue(java.security.MessageDigest digest)
public boolean equals(java.lang.Object obj)
equals
in class AbstractCell
public boolean equals(CellName that)
public CellName copy(CFMetaData cfm, AbstractAllocator allocator)
public Cell withUpdatedName(CellName newName)
withUpdatedName
in interface Cell
public Cell withUpdatedTimestamp(long newTimestamp)
withUpdatedTimestamp
in interface Cell
protected long internalSize()
protected final void setByte(long offset, byte b)
protected final void setShort(long offset, short s)
protected final void setInt(long offset, int l)
protected final void setLong(long offset, long l)
protected final void setBytes(long offset, java.nio.ByteBuffer buffer)
protected final byte getByte(long offset)
protected final void getBytes(long offset, byte[] trg, int trgOffset, int count)
protected final int getShort(long offset)
protected final int getInt(long offset)
protected final long getLong(long offset)
protected final java.nio.ByteBuffer getByteBuffer(long offset, int length)
@Inline public final int compareTo(Composite that)
public final int compareToSimple(Composite that)
Copyright © 2014 The Apache Software Foundation