/** * Reverses the bound if the column type is a reversed one. * * @param columnDefinition the column definition * @return the bound reversed if the column type was a reversed one or the original bound */ public Bound reverseIfNeeded(ColumnDefinition columnDefinition) { return columnDefinition.isReversedType() ? reverse() : this; }
if (hasComponent(b.reverse(), i, componentBounds)) toAdd.add(values);
if (hasComponent(b.reverse(), i, componentBounds)) toAdd.add(values);
/** * Reverses the bound if the column type is a reversed one. * * @param columnDefinition the column definition * @return the bound reversed if the column type was a reversed one or the original bound */ public Bound reverseIfNeeded(ColumnDefinition columnDefinition) { return columnDefinition.isReversedType() ? reverse() : this; }
if (hasComponent(b.reverse(), i, componentBounds)) toAdd.add(values);
/** * Reverses the bound if the column type is a reversed one. * * @param columnDefinition the column definition * @return the bound reversed if the column type was a reversed one or the original bound */ public Bound reverseIfNeeded(ColumnDefinition columnDefinition) { return columnDefinition.isReversedType() ? reverse() : this; }
public NavigableSet<ClusteringBound> boundsAsClustering(Bound bound, QueryOptions options) throws InvalidRequestException { MultiCBuilder builder = MultiCBuilder.create(comparator, hasIN() || hasMultiColumnSlice()); int keyPosition = 0; for (SingleRestriction r : restrictions) { if (handleInFilter(r, keyPosition)) break; if (r.isSlice()) { r.appendBoundTo(builder, bound, options); return builder.buildBoundForSlice(bound.isStart(), r.isInclusive(bound), r.isInclusive(bound.reverse()), r.getColumnDefs()); } r.appendBoundTo(builder, bound, options); if (builder.hasMissingElements()) return BTreeSet.empty(comparator); keyPosition = r.getLastColumn().position() + 1; } // Everything was an equal (or there was nothing) return builder.buildBound(bound.isStart(), true); }
public NavigableSet<ClusteringBound> boundsAsClustering(Bound bound, QueryOptions options) throws InvalidRequestException { MultiCBuilder builder = MultiCBuilder.create(comparator, hasIN() || hasMultiColumnSlice()); int keyPosition = 0; for (SingleRestriction r : restrictions) { if (handleInFilter(r, keyPosition)) break; if (r.isSlice()) { r.appendBoundTo(builder, bound, options); return builder.buildBoundForSlice(bound.isStart(), r.isInclusive(bound), r.isInclusive(bound.reverse()), r.getColumnDefs()); } r.appendBoundTo(builder, bound, options); if (builder.hasMissingElements()) return BTreeSet.empty(comparator); keyPosition = r.getLastColumn().position() + 1; } // Everything was an equal (or there was nothing) return builder.buildBound(bound.isStart(), true); }
public NavigableSet<ClusteringBound> boundsAsClustering(Bound bound, QueryOptions options) throws InvalidRequestException { MultiCBuilder builder = MultiCBuilder.create(comparator, hasIN() || hasMultiColumnSlice()); int keyPosition = 0; for (SingleRestriction r : restrictions) { if (handleInFilter(r, keyPosition)) break; if (r.isSlice()) { r.appendBoundTo(builder, bound, options); return builder.buildBoundForSlice(bound.isStart(), r.isInclusive(bound), r.isInclusive(bound.reverse()), r.getColumnDefs()); } r.appendBoundTo(builder, bound, options); if (builder.hasMissingElements()) return BTreeSet.empty(comparator); keyPosition = r.getLastColumn().position() + 1; } // Everything was an equal (or there was nothing) return builder.buildBound(bound.isStart(), true); }