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

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


    /**
     * @return
     */
    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


    /**
     * @return
     */
    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

            }
        }

        if (indexName != null && indexName.endsWith("_bin")) {
            if (isRange) {
                query = new BinRangeQuery(BinIndex.named(indexName), bucket, (String) from, (String) to);
            } else {
                query = new BinValueQuery(BinIndex.named(indexName), bucket, (String) value);
            }
        }
View Full Code Here

    /**
     * @return
     */
    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.BinRangeQuery

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.