public abstract class AbstractNativeCell extends AbstractCell implements CellName
Composite.EOCOnDiskAtom.SerializerMAX_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, validateNameclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitunsharedHeapSizeExcludingDataunsharedHeapSizelocalCopy, localCopy, name, unsharedHeapSizeExcludingDatatimestamppublic 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()
CellNameclusteringSize in interface CellNamepublic ColumnIdentifier cql3ColumnName(CFMetaData metadata)
CellNamecql3ColumnName in interface CellNamepublic java.nio.ByteBuffer collectionElement()
CellNamecollectionElement in interface CellNamepublic boolean isCollectionCell()
isCollectionCell in interface CellNamepublic boolean isSameCQL3RowAs(CellNameType type, CellName other)
CellNameisSameCQL3RowAs in interface CellNameprotected 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 Compositepublic java.nio.ByteBuffer toByteBuffer()
toByteBuffer in interface Compositeprotected void updateWithName(java.security.MessageDigest digest)
protected void updateWithValue(java.security.MessageDigest digest)
public boolean equals(java.lang.Object obj)
equals in class AbstractCellpublic boolean equals(CellName that)
public CellName copy(CFMetaData cfm, AbstractAllocator allocator)
public Cell withUpdatedName(CellName newName)
withUpdatedName in interface Cellpublic Cell withUpdatedTimestamp(long newTimestamp)
withUpdatedTimestamp in interface Cellprotected 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 © 2015 The Apache Software Foundation