@Override public void validate() throws InvalidRequestException { checkNotNull(key, "Unsupported null map key for column %s", column.name); checkBindValueSet(key, "Unsupported unset map key for column %s", column.name); checkNotNull(value, "Unsupported null map value for column %s", column.name); checkBindValueSet(value, "Unsupported unset map value for column %s", column.name); }
public void validate() { checkNotNull(value, "Unsupported null value for column %s", column.name); checkBindValueSet(value, "Unsupported unset value for column %s", column.name); }
protected void setArg(int i, ByteBuffer value) throws InvalidRequestException { RequestValidations.checkBindValueSet(value, "Invalid unset value for argument in call to function %s", fun.name().name); args.set(i, value); }
protected void setArg(int i, ByteBuffer value) throws InvalidRequestException { RequestValidations.checkBindValueSet(value, "Invalid unset value for argument in call to function %s", fun.name().name); args.set(i, value); }
protected void setArg(int i, ByteBuffer value) throws InvalidRequestException { RequestValidations.checkBindValueSet(value, "Invalid unset value for argument in call to function %s", fun.name().name); args.set(i, value); }
public void validate() { checkNotNull(value, "Unsupported null value for column %s", column.name); checkBindValueSet(value, "Unsupported unset value for column %s", column.name); }
@Override public void validate() throws InvalidRequestException { checkNotNull(key, "Unsupported null map key for column %s", column.name); checkBindValueSet(key, "Unsupported unset map key for column %s", column.name); checkNotNull(value, "Unsupported null map value for column %s", column.name); checkBindValueSet(value, "Unsupported unset map value for column %s", column.name); }
public void validate() { checkNotNull(value, "Unsupported null value for column %s", column.name); checkBindValueSet(value, "Unsupported unset value for column %s", column.name); }
@Override public void validate() throws InvalidRequestException { checkNotNull(key, "Unsupported null map key for column %s", column.name); checkBindValueSet(key, "Unsupported unset map key for column %s", column.name); checkNotNull(value, "Unsupported null map value for column %s", column.name); checkBindValueSet(value, "Unsupported unset map value for column %s", column.name); }
public ByteBuffer bindAndGet(QueryOptions options) throws InvalidRequestException { List<ByteBuffer> buffers = new ArrayList<>(terms.size()); for (Term t : terms) { ByteBuffer functionArg = t.bindAndGet(options); RequestValidations.checkBindValueSet(functionArg, "Invalid unset value for argument in call to function %s", fun.name().name); buffers.add(functionArg); } return executeInternal(options.getProtocolVersion(), fun, buffers); }
public ByteBuffer bindAndGet(QueryOptions options) throws InvalidRequestException { List<ByteBuffer> buffers = new ArrayList<>(terms.size()); for (Term t : terms) { ByteBuffer functionArg = t.bindAndGet(options); RequestValidations.checkBindValueSet(functionArg, "Invalid unset value for argument in call to function %s", fun.name().name); buffers.add(functionArg); } return executeInternal(options.getProtocolVersion(), fun, buffers); }
public ByteBuffer bindAndGet(QueryOptions options) throws InvalidRequestException { List<ByteBuffer> buffers = new ArrayList<>(terms.size()); for (Term t : terms) { ByteBuffer functionArg = t.bindAndGet(options); RequestValidations.checkBindValueSet(functionArg, "Invalid unset value for argument in call to function %s", fun.name().name); buffers.add(functionArg); } return executeInternal(options.getProtocolVersion(), fun, buffers); }
@Override public MultiCBuilder appendBoundTo(MultiCBuilder builder, Bound bound, QueryOptions options) { Bound b = bound.reverseIfNeeded(getFirstColumn()); if (!hasBound(b)) return builder; Term term = slice.bound(b); assert (term instanceof Tuples.Value); firstValue = ((Tuples.Value)term).getElements().get(0); secondValue = ((Tuples.Value)term).getElements().get(1); checkBindValueSet(firstValue, "Invalid unset value for column %s", columnDef.name); checkBindValueSet(secondValue, "Invalid unset value for column %s", columnDef.name); return builder.addElementToAll(firstValue); } }
@Override public MultiCBuilder appendBoundTo(MultiCBuilder builder, Bound bound, QueryOptions options) { Bound b = bound.reverseIfNeeded(getFirstColumn()); if (!hasBound(b)) return builder; Term term = slice.bound(b); assert (term instanceof Tuples.Value); firstValue = ((Tuples.Value)term).getElements().get(0); secondValue = ((Tuples.Value)term).getElements().get(1); checkBindValueSet(firstValue, "Invalid unset value for column %s", columnDef.name); checkBindValueSet(secondValue, "Invalid unset value for column %s", columnDef.name); return builder.addElementToAll(firstValue); } }
@Override public MultiCBuilder appendBoundTo(MultiCBuilder builder, Bound bound, QueryOptions options) { Bound b = bound.reverseIfNeeded(getFirstColumn()); if (!hasBound(b)) return builder; Term term = slice.bound(b); assert (term instanceof Tuples.Value); firstValue = ((Tuples.Value)term).getElements().get(0); secondValue = ((Tuples.Value)term).getElements().get(1); checkBindValueSet(firstValue, "Invalid unset value for column %s", columnDef.name); checkBindValueSet(secondValue, "Invalid unset value for column %s", columnDef.name); return builder.addElementToAll(firstValue); } }
@Override public MultiCBuilder appendBoundTo(MultiCBuilder builder, Bound bound, QueryOptions options) { Bound b = bound.reverseIfNeeded(getFirstColumn()); if (!hasBound(b)) return builder; ByteBuffer value = slice.bound(b).bindAndGet(options); checkBindValueSet(value, "Invalid unset value for column %s", columnDef.name); return builder.addElementToAll(value); }
@Override public MultiCBuilder appendBoundTo(MultiCBuilder builder, Bound bound, QueryOptions options) { Bound b = bound.reverseIfNeeded(getFirstColumn()); if (!hasBound(b)) return builder; ByteBuffer value = slice.bound(b).bindAndGet(options); checkBindValueSet(value, "Invalid unset value for column %s", columnDef.name); return builder.addElementToAll(value); }
@Override public MultiCBuilder appendBoundTo(MultiCBuilder builder, Bound bound, QueryOptions options) { Bound b = bound.reverseIfNeeded(getFirstColumn()); if (!hasBound(b)) return builder; ByteBuffer value = slice.bound(b).bindAndGet(options); checkBindValueSet(value, "Invalid unset value for column %s", columnDef.name); return builder.addElementToAll(value); }