@Override protected List<List<ByteBuffer>> splitValues(QueryOptions options) { List<List<ByteBuffer>> buffers = new ArrayList<>(values.size()); for (Term value : values) { Term.MultiItemTerminal term = (Term.MultiItemTerminal) value.bind(options); buffers.add(term.getElements()); } return buffers; } }
@Override public Terminal bind(QueryOptions options) throws InvalidRequestException { Term term = options.getJsonColumnValue(marker.bindIndex, column.name, marker.columns); return term == null ? (defaultUnset ? Constants.UNSET_VALUE : null) : term.bind(options); }
@Override protected List<List<ByteBuffer>> splitValues(QueryOptions options) { List<List<ByteBuffer>> buffers = new ArrayList<>(values.size()); for (Term value : values) { Term.MultiItemTerminal term = (Term.MultiItemTerminal) value.bind(options); buffers.add(term.getElements()); } return buffers; } }
@Override public Terminal bind(QueryOptions options) throws InvalidRequestException { Term term = options.getJsonColumnValue(marker.bindIndex, column.name, marker.columns); return term == null ? (defaultUnset ? Constants.UNSET_VALUE : null) : term.bind(options); }
@Override protected List<List<ByteBuffer>> splitValues(QueryOptions options) { List<List<ByteBuffer>> buffers = new ArrayList<>(values.size()); for (Term value : values) { Term.MultiItemTerminal term = (Term.MultiItemTerminal) value.bind(options); buffers.add(term.getElements()); } return buffers; } }
private CollectionBound(ColumnCondition condition, QueryOptions options) throws InvalidRequestException { super(condition.column, condition.operator); assert column.type.isCollection() && condition.collectionElement == null; assert condition.operator != Operator.IN; this.value = condition.value.bind(options); }
private CollectionBound(ColumnCondition condition, QueryOptions options) throws InvalidRequestException { super(condition.column, condition.operator); assert column.type.isCollection() && condition.collectionElement == null; assert condition.operator != Operator.IN; this.value = condition.value.bind(options); }
private CollectionBound(ColumnCondition condition, QueryOptions options) throws InvalidRequestException { super(condition.column, condition.operator); assert column.type.isCollection() && condition.collectionElement == null; assert condition.operator != Operator.IN; this.value = condition.value.bind(options); }
@Override public final void addRowFilterTo(RowFilter filter, SecondaryIndexManager indexMananger, QueryOptions options) { Tuples.Value t = ((Tuples.Value) value.bind(options)); List<ByteBuffer> values = t.getElements(); for (int i = 0, m = columnDefs.size(); i < m; i++) { ColumnDefinition columnDef = columnDefs.get(i); filter.add(columnDef, Operator.EQ, values.get(i)); } } }
public void execute(DecoratedKey partitionKey, UpdateParameters params) throws InvalidRequestException { assert column.type.isMultiCell() : "Attempted to add items to a frozen map"; Term.Terminal value = t.bind(params.options); if (value != UNSET_VALUE) doPut(value, column, params); }
public void execute(DecoratedKey partitionKey, UpdateParameters params) throws InvalidRequestException { assert column.type.isMultiCell() : "Attempted to add items to a frozen set"; Term.Terminal value = t.bind(params.options); if (value != UNSET_VALUE) doAdd(value, column, params); }
public void execute(DecoratedKey partitionKey, UpdateParameters params) throws InvalidRequestException { assert column.type.isMultiCell() : "Attempted to add items to a frozen set"; Term.Terminal value = t.bind(params.options); if (value != UNSET_VALUE) doAdd(value, column, params); }
public void execute(DecoratedKey partitionKey, UpdateParameters params) throws InvalidRequestException { assert column.type.isMultiCell() : "Attempted to append to a frozen list"; Term.Terminal value = t.bind(params.options); doAppend(value, column, params); }
public void execute(DecoratedKey partitionKey, UpdateParameters params) throws InvalidRequestException { assert column.type.isMultiCell() : "Attempted to add items to a frozen set"; Term.Terminal value = t.bind(params.options); if (value != UNSET_VALUE) doAdd(value, column, params); }
public void execute(DecoratedKey partitionKey, UpdateParameters params) throws InvalidRequestException { assert column.type.isMultiCell() : "Attempted to add items to a frozen map"; Term.Terminal value = t.bind(params.options); if (value != UNSET_VALUE) doPut(value, column, params); }
public void execute(DecoratedKey partitionKey, UpdateParameters params) throws InvalidRequestException { Term.Terminal value = t.bind(params.options); if (value == UNSET_VALUE) return; // delete + add if (column.type.isMultiCell()) params.setComplexDeletionTimeForOverwrite(column); Adder.doAdd(value, column, params); } }
public void execute(DecoratedKey partitionKey, UpdateParameters params) throws InvalidRequestException { Term.Terminal value = t.bind(params.options); if (value == UNSET_VALUE) return; // delete + put if (column.type.isMultiCell()) params.setComplexDeletionTimeForOverwrite(column); Putter.doPut(value, column, params); } }
public void execute(DecoratedKey partitionKey, UpdateParameters params) throws InvalidRequestException { Term.Terminal value = t.bind(params.options); if (value == UNSET_VALUE) return; // delete + put if (column.type.isMultiCell()) params.setComplexDeletionTimeForOverwrite(column); Putter.doPut(value, column, params); } }
public void execute(DecoratedKey partitionKey, UpdateParameters params) throws InvalidRequestException { Term.Terminal value = t.bind(params.options); if (value == UNSET_VALUE) return; // delete + append if (column.type.isMultiCell()) params.setComplexDeletionTimeForOverwrite(column); Appender.doAppend(value, column, params); } }
public void execute(DecoratedKey partitionKey, UpdateParameters params) throws InvalidRequestException { assert column.type.isMultiCell() : "Attempted to delete a single element in a frozen set"; Term.Terminal elt = t.bind(params.options); if (elt == null) throw new InvalidRequestException("Invalid null set element"); params.addTombstone(column, CellPath.create(elt.get(params.options.getProtocolVersion()))); } }