private SimpleBound(ColumnCondition condition, QueryOptions options) throws InvalidRequestException { super(condition.column, condition.operator); assert !(column.type instanceof CollectionType) && condition.field == null; assert condition.operator != Operator.IN; this.value = condition.value.bindAndGet(options); }
public void collectMarkerSpecification(VariableSpecifications boundNames) { for (Term t : terms) t.collectMarkerSpecification(boundNames); }
public boolean containsBindMarker() { for (Term t : values) if (t.containsBindMarker()) return true; return false; }
@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; } }
public void addFunctionsTo(List<Function> functions) { if (timestamp != null) timestamp.addFunctionsTo(functions); if (timeToLive != null) timeToLive.addFunctionsTo(functions); }
@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 public void addFunctionsTo(List<Function> functions) { value.addFunctionsTo(functions); }
public void collectMarkerSpecification(VariableSpecifications boundNames) { if (timestamp != null) timestamp.collectMarkerSpecification(boundNames); if (timeToLive != null) timeToLive.collectMarkerSpecification(boundNames); }
@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 List<ByteBuffer> values(QueryOptions options) throws InvalidRequestException { return Collections.singletonList(value.bindAndGet(options)); }
@Override public void addFunctionsTo(List<Function> functions) { value.addFunctionsTo(functions); }
public boolean containsBindMarker() { for (Term term : elements) if (term.containsBindMarker()) return true; return false; }
public void collectMarkerSpecification(VariableSpecifications boundNames) { for (Term term : elements) term.collectMarkerSpecification(boundNames); }
@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 List<ByteBuffer> values(QueryOptions options) throws InvalidRequestException { return Collections.singletonList(value.bindAndGet(options)); }
public void addFunctionsTo(List<Function> functions) { if (collectionElement != null) collectionElement.addFunctionsTo(functions); if (value != null) value.addFunctionsTo(functions); if (inValues != null) for (Term value : inValues) if (value != null) value.addFunctionsTo(functions); }
public boolean containsBindMarker() { for (Term t : values) if (t.containsBindMarker()) return true; return false; }
/** * Collects the column specification for the bind variables of this operation. * * @param boundNames the list of column specification where to collect the * bind variables of this term in. */ public void collectMarkerSpecification(VariableSpecifications boundNames) { if (t != null) t.collectMarkerSpecification(boundNames); }
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 protected List<ByteBuffer> getValues(QueryOptions options) { List<ByteBuffer> buffers = new ArrayList<>(values.size()); for (Term value : values) buffers.add(value.bindAndGet(options)); return buffers; }