public boolean isCounter() { return defaultValidator.isCounter(); }
public boolean isCounterCell() { return !isTombstone() && column.cellValueType().isCounter(); }
private boolean queriesMulticellType() { for (ColumnDefinition column : columnFilter().fetchedColumns()) { if (column.type.isMultiCell() || column.type.isCounter()) return true; } return false; }
private boolean queriesMulticellType() { for (ColumnDefinition column : columnFilter().fetchedColumns()) { if (column.type.isMultiCell() || column.type.isCounter()) return true; } return false; }
private boolean queriesMulticellType() { for (ColumnDefinition column : columnFilter().fetchedColumns()) { if (column.type.isMultiCell() || column.type.isCounter()) return true; } return false; }
public Row markCounterLocalToBeCleared() { return transformAndFilter(primaryKeyLivenessInfo, deletion, (cd) -> cd.column().cellValueType().isCounter() ? cd.markCounterLocalToBeCleared() : cd); }
private ByteBuffer toByteBuffer(Object value, AbstractType<?> type) { if (value == null) return null; if (value instanceof ByteBuffer) return (ByteBuffer)value; if (type.isCounter()) { // See UpdateParameters.addCounter() assert value instanceof Long : "Attempted to adjust Counter cell with non-long value."; return CounterContext.instance().createGlobal(CounterId.getLocalId(), 1, (Long)value); } return ((AbstractType)type).decompose(value); } }
private ByteBuffer toByteBuffer(Object value, AbstractType<?> type) { if (value == null) return null; if (value instanceof ByteBuffer) return (ByteBuffer)value; if (type.isCounter()) { // See UpdateParameters.addCounter() assert value instanceof Long : "Attempted to adjust Counter cell with non-long value."; return CounterContext.instance().createGlobal(CounterId.getLocalId(), 1, (Long)value); } return ((AbstractType)type).decompose(value); } }
private ByteBuffer toByteBuffer(Object value, AbstractType<?> type) { if (value == null) return null; if (value instanceof ByteBuffer) return (ByteBuffer)value; if (type.isCounter()) { // See UpdateParameters.addCounter() assert value instanceof Long : "Attempted to adjust Counter cell with non-long value."; return CounterContext.instance().createGlobal(CounterId.getLocalId(), 1, (Long)value); } return ((AbstractType)type).decompose(value); } }
if (!type.isCounter()) throw new InvalidRequestException("Cannot mix counter and non counter columns in the same table");
if (!type.isCounter()) throw new InvalidRequestException("Cannot mix counter and non counter columns in the same table");
if (column.type.isCounter())
if (column.type.isCounter())
boolean isCounter = localDeletionTime == NO_DELETION_TIME && column.type.isCounter();
boolean isCounter = localDeletionTime == NO_DELETION_TIME && column.type.isCounter();
boolean isCounter = localDeletionTime == NO_DELETION_TIME && column.type.isCounter();
boolean isCounter = localDeletionTime == NO_DELETION_TIME && column.type.isCounter();