public CellPath copy(AbstractAllocator allocator) { return new SingleItemCellPath(allocator.clone(value)); }
public Composite copy(CFMetaData cfm, AbstractAllocator allocator) { return new SimpleComposite(allocator.clone(element)); } }
public ColumnIdentifier clone(AbstractAllocator allocator) { return interned ? this : new ColumnIdentifier(allocator.clone(bytes), text, false); }
public Cell copy(AbstractAllocator allocator) { if (!value.hasRemaining()) return this; return new BufferCell(column, timestamp, ttl, localDeletionTime, allocator.clone(value), path == null ? null : path.copy(allocator)); }
public Cell copy(AbstractAllocator allocator) { if (!value.hasRemaining()) return this; return new BufferCell(column, timestamp, ttl, localDeletionTime, allocator.clone(value), path == null ? null : path.copy(allocator)); }
@Override public CellName copy(CFMetaData cfm, AbstractAllocator allocator) { // We don't copy columnName because it's interned in SparseCellNameType return new CompoundSparseCellName.WithCollection(elements.length == 0 ? elements : elementsCopy(allocator), size, columnName, allocator.clone(collectionElement), isStatic()); }
@Override public Cell localCopy(CFMetaData metadata, AbstractAllocator allocator) { return new BufferCell(copy(metadata, allocator), allocator.clone(value()), timestamp()); }
@Override public DeletedCell localCopy(CFMetaData metadata, AbstractAllocator allocator) { return new BufferDeletedCell(copy(metadata, allocator), allocator.clone(value()), timestamp()); }
private static ClusteringBound clone(ClusteringBound bound, AbstractAllocator allocator) { ByteBuffer[] values = new ByteBuffer[bound.size()]; for (int i = 0; i < values.length; i++) values[i] = allocator.clone(bound.get(i)); return new ClusteringBound(bound.kind(), values); }
private static ClusteringBound clone(ClusteringBound bound, AbstractAllocator allocator) { ByteBuffer[] values = new ByteBuffer[bound.size()]; for (int i = 0; i < values.length; i++) values[i] = allocator.clone(bound.get(i)); return new ClusteringBound(bound.kind(), values); }
public ClusteringBoundOrBoundary copy(AbstractAllocator allocator) { ByteBuffer[] newValues = new ByteBuffer[size()]; for (int i = 0; i < size(); i++) newValues[i] = allocator.clone(get(i)); return create(kind(), newValues); }
public ClusteringBoundOrBoundary copy(AbstractAllocator allocator) { ByteBuffer[] newValues = new ByteBuffer[size()]; for (int i = 0; i < size(); i++) newValues[i] = allocator.clone(get(i)); return create(kind(), newValues); }
public ClusteringBoundOrBoundary copy(AbstractAllocator allocator) { ByteBuffer[] newValues = new ByteBuffer[size()]; for (int i = 0; i < size(); i++) newValues[i] = allocator.clone(get(i)); return create(kind(), newValues); }
@Override public CounterCell localCopy(CFMetaData metadata, AbstractAllocator allocator) { return new BufferCounterCell(copy(metadata, allocator), allocator.clone(value()), timestamp(), timestampOfLastDelete()); }
public ClusteringBoundOrBoundary copy(AbstractAllocator allocator) { ByteBuffer[] newValues = new ByteBuffer[size()]; for (int i = 0; i < size(); i++) newValues[i] = allocator.clone(get(i)); return create(kind(), newValues); }
public Cell copy(AbstractAllocator allocator) { CellPath path = path(); return new BufferCell(column, timestamp(), ttl(), localDeletionTime(), allocator.clone(value()), path == null ? null : path.copy(allocator)); }
public Cell copy(AbstractAllocator allocator) { CellPath path = path(); return new BufferCell(column, timestamp(), ttl(), localDeletionTime(), allocator.clone(value()), path == null ? null : path.copy(allocator)); }
@Override public ExpiringCell localCopy(CFMetaData metadata, AbstractAllocator allocator) { return new BufferExpiringCell(name().copy(metadata, allocator), allocator.clone(value()), timestamp(), getTimeToLive(), getLocalDeletionTime()); }
public Cell copy(AbstractAllocator allocator) { CellPath path = path(); return new BufferCell(column, timestamp(), ttl(), localDeletionTime(), allocator.clone(value()), path == null ? null : path.copy(allocator)); }
public default Clustering copy(AbstractAllocator allocator) { // Important for STATIC_CLUSTERING (but must copy empty native clustering types). if (size() == 0) return kind() == Kind.STATIC_CLUSTERING ? this : new BufferClustering(EMPTY_VALUES_ARRAY); ByteBuffer[] newValues = new ByteBuffer[size()]; for (int i = 0; i < size(); i++) { ByteBuffer val = get(i); newValues[i] = val == null ? null : allocator.clone(val); } return new BufferClustering(newValues); }