@Override public List<ByteBuffer> bounds(Bound bound, QueryOptions options) { MultiCBuilder builder = MultiCBuilder.create(comparator, hasIN()); for (SingleRestriction r : restrictions) { r.appendBoundTo(builder, bound, options); if (builder.hasMissingElements()) return Collections.emptyList(); } return toByteBuffers(builder.buildBound(bound.isStart(), true)); }
@Override public List<ByteBuffer> bounds(Bound bound, QueryOptions options) { MultiCBuilder builder = MultiCBuilder.create(comparator, hasIN()); for (SingleRestriction r : restrictions) { r.appendBoundTo(builder, bound, options); if (builder.hasMissingElements()) return Collections.emptyList(); } return toByteBuffers(builder.buildBound(bound.isStart(), true)); }
@Override public List<ByteBuffer> bounds(Bound bound, QueryOptions options) { MultiCBuilder builder = MultiCBuilder.create(comparator, hasIN()); for (SingleRestriction r : restrictions) { r.appendBoundTo(builder, bound, options); if (builder.hasMissingElements()) return Collections.emptyList(); } return toByteBuffers(builder.buildBound(bound.isStart(), true)); }
@Override public List<ByteBuffer> values(QueryOptions options) { MultiCBuilder builder = MultiCBuilder.create(comparator, hasIN()); for (SingleRestriction r : restrictions) { r.appendTo(builder, options); if (builder.hasMissingElements()) break; } return toByteBuffers(builder.build()); }
@Override public List<ByteBuffer> values(QueryOptions options) { MultiCBuilder builder = MultiCBuilder.create(comparator, hasIN()); for (SingleRestriction r : restrictions) { r.appendTo(builder, options); if (builder.hasMissingElements()) break; } return toByteBuffers(builder.build()); }
@Override public List<ByteBuffer> values(QueryOptions options) { MultiCBuilder builder = MultiCBuilder.create(comparator, hasIN()); for (SingleRestriction r : restrictions) { r.appendTo(builder, options); if (builder.hasMissingElements()) break; } return toByteBuffers(builder.build()); }