/** * Returns the specified bound of the partition key. * * @param b the boundary type * @param options the query options * @return the specified bound of the partition key */ private ByteBuffer getPartitionKeyBound(Bound b, QueryOptions options) { // We deal with IN queries for keys in other places, so we know buildBound will return only one result return partitionKeyRestrictions.bounds(b, options).get(0); }
/** * Returns the specified bound of the partition key. * * @param b the boundary type * @param options the query options * @return the specified bound of the partition key */ private ByteBuffer getPartitionKeyBound(Bound b, QueryOptions options) { // We deal with IN queries for keys in other places, so we know buildBound will return only one result return partitionKeyRestrictions.bounds(b, options).get(0); }
/** * Returns the specified bound of the partition key. * * @param b the boundary type * @param options the query options * @return the specified bound of the partition key */ private ByteBuffer getPartitionKeyBound(Bound b, QueryOptions options) { // We deal with IN queries for keys in other places, so we know buildBound will return only one result return partitionKeyRestrictions.bounds(b, options).get(0); }
@Override public List<ByteBuffer> bounds(Bound bound, QueryOptions options) throws InvalidRequestException { return isOnToken() ? tokenRestriction.bounds(bound, options) : restrictions.bounds(bound, options); }
@Override public List<ByteBuffer> bounds(Bound bound, QueryOptions options) throws InvalidRequestException { return isOnToken() ? tokenRestriction.bounds(bound, options) : restrictions.bounds(bound, options); }
@Override public List<ByteBuffer> bounds(Bound bound, QueryOptions options) throws InvalidRequestException { return isOnToken() ? tokenRestriction.bounds(bound, options) : restrictions.bounds(bound, options); }
private Token getTokenBound(Bound b, QueryOptions options, IPartitioner p) { if (!partitionKeyRestrictions.hasBound(b)) return p.getMinimumToken(); ByteBuffer value = partitionKeyRestrictions.bounds(b, options).get(0); checkNotNull(value, "Invalid null token value"); return p.getTokenFactory().fromByteArray(value); }
private Token getTokenBound(Bound b, QueryOptions options, IPartitioner p) { if (!partitionKeyRestrictions.hasBound(b)) return p.getMinimumToken(); ByteBuffer value = partitionKeyRestrictions.bounds(b, options).get(0); checkNotNull(value, "Invalid null token value"); return p.getTokenFactory().fromByteArray(value); }
private Token getTokenBound(Bound b, QueryOptions options, IPartitioner p) { if (!partitionKeyRestrictions.hasBound(b)) return p.getMinimumToken(); ByteBuffer value = partitionKeyRestrictions.bounds(b, options).get(0); checkNotNull(value, "Invalid null token value"); return p.getTokenFactory().fromByteArray(value); }