Package com.basho.riak.client.raw.query.indexes

Examples of com.basho.riak.client.raw.query.indexes.IntRangeQuery


     */
    private IndexQuery makeRangeQuery() {
        if (to.getClass().equals(String.class)) {
            return new BinRangeQuery((BinIndex) index, bucket, (String) from, (String) to);
        } else if (to.getClass().equals(Integer.class)) {
            return new IntRangeQuery((IntIndex) index, bucket, (Integer) from, (Integer) to);
        } else {
            throw new RuntimeException("Unkown range query type " + to.getClass());
        }
    }
View Full Code Here


     */
    private IndexQuery makeRangeQuery() {
        if (to.getClass().equals(String.class)) {
            return new BinRangeQuery((BinIndex) index, bucket, (String) from, (String) to);
        } else if (Number.class.isAssignableFrom(to.getClass())) {
            return new IntRangeQuery((IntIndex) index, bucket,
                                     ((Number)from).longValue(), ((Number) to).longValue());
        } else {
            throw new RuntimeException("Unkown range query type " + to.getClass());
        }
    }
View Full Code Here

            isRange = true;
        }

        if (indexName != null && indexName.endsWith("_int")) {
            if (isRange) {
                query = new IntRangeQuery(IntIndex.named(indexName), bucket, (Integer) from, (Integer) to);
            } else {
                query = new IntValueQuery(IntIndex.named(indexName), bucket, (Integer) value);
            }
        }
View Full Code Here

     */
    private IndexQuery makeRangeQuery() {
        if (to.getClass().equals(String.class)) {
            return new BinRangeQuery((BinIndex) index, bucket, (String) from, (String) to);
        } else if (Number.class.isAssignableFrom(to.getClass())) {
            return new IntRangeQuery((IntIndex) index, bucket,
                                     ((Number)from).longValue(), ((Number) to).longValue());
        } else {
            throw new RuntimeException("Unkown range query type " + to.getClass());
        }
    }
View Full Code Here

TOP

Related Classes of com.basho.riak.client.raw.query.indexes.IntRangeQuery

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.