Package com.basho.riak.client.core.query

Examples of com.basho.riak.client.core.query.Namespace


        @Override
        public Namespace next()
        {
            BinaryValue bucket = iterator.next();
            return new Namespace(type, bucket);
        }
View Full Code Here


            new CoreFutureAdapter<Response, Location, StoreOperation.Response, Location>(coreFuture)
            {
                @Override
                protected Response convertResponse(StoreOperation.Response coreResponse)
                {
                    Namespace ns = orm.getNamespace();
                    BinaryValue key = orm.getKey();
                    if (coreResponse.hasGeneratedKey())
                    {
                        key = coreResponse.getGeneratedKey();
                    }
View Full Code Here

public class SecondaryIndexQueryTest
{
    @Test
    public void intIndexQueryBuildsCorrectly()
    {
        Namespace ns = new Namespace("bucket_type", "bucket_name");
       
        IntIndexQuery iiq =
            new IntIndexQuery.Builder(ns, "test_index", Long.MAX_VALUE)
                .withKeyAndIndex(true)
                .withContinuation(BinaryValue.create("continuation"))
View Full Code Here

    }
   
    @Test
    public void binIndexQueryBuildsCorrectly()
    {
        Namespace ns = new Namespace("bucket_type", "bucket_name");
       
        BinIndexQuery biq = new BinIndexQuery.Builder(ns, "test_index", "index_key")
            .withKeyAndIndex(true)
            .withMaxResults(Integer.MAX_VALUE)
            .withContinuation(BinaryValue.create("continuation"))
View Full Code Here

       
    }
   
    public void rawIndexQueryBuildsCorrectly()
    {
        Namespace ns = new Namespace("bucket_type", "bucket_name");
       
        BinaryValue indexMatch = BinaryValue.create("match");
        BinaryValue indexStart = BinaryValue.create("start");
        BinaryValue indexEnd = BinaryValue.create("end");
       
View Full Code Here

        svFuture = client.executeAsync(sv);
       
        svFuture.await();
        assertTrue(svFuture.isSuccess());
       
        Namespace ns = new Namespace(Namespace.DEFAULT_BUCKET_TYPE, bucketName.toString());
       
        IntIndexQuery iiq =
            new IntIndexQuery.Builder(ns, "test_index", 123456L).withKeyAndIndex(true).build();
        IntIndexQuery.Response iResp = client.execute(iiq);
       
View Full Code Here

        svFuture = client.executeAsync(sv);
       
        svFuture.await();
        assertTrue(svFuture.isSuccess());
       
        Namespace ns = new Namespace(Namespace.DEFAULT_BUCKET_TYPE, bucketName.toString());
       
        IntIndexQuery iiq =
            new IntIndexQuery.Builder(ns, "test_index", Long.MIN_VALUE, Long.MAX_VALUE)
                .withKeyAndIndex(true)
                .build();
View Full Code Here

        svFuture = client.executeAsync(sv);
       
        svFuture.await();
        assertTrue(svFuture.isSuccess());
       
        Namespace ns = new Namespace(Namespace.DEFAULT_BUCKET_TYPE, bucketName.toString());
       
        BigIntIndexQuery iiq =
            new BigIntIndexQuery.Builder(ns, "test_index", new BigInteger("91234567890123456789012345678901234567890"))
                .withKeyAndIndex(true).build();
        BigIntIndexQuery.Response iResp = client.execute(iiq);
View Full Code Here

        svFuture = client.executeAsync(sv);
       
        svFuture.await();
        assertTrue(svFuture.isSuccess());
       
        Namespace ns = new Namespace(Namespace.DEFAULT_BUCKET_TYPE, bucketName.toString());
        BigIntIndexQuery iiq =
            new BigIntIndexQuery.Builder(ns, "test_index",
                                         new BigInteger("91234567890123456789012345678901234567890"),
                                         new BigInteger("91234567890123456789012345678901234567898"))
                .withKeyAndIndex(true)
View Full Code Here

        RiakFuture<StoreValue.Response, Location> svFuture = client.executeAsync(sv);
       
        svFuture.await();
        assertTrue(svFuture.isSuccess());
       
        Namespace ns = new Namespace(Namespace.DEFAULT_BUCKET_TYPE, bucketName.toString());
       
        RawIndexQuery biq  =
            new RawIndexQuery.Builder(ns, "test_index", Type._BIN, indexKey).withKeyAndIndex(true).build();
        RawIndexQuery.Response iResp = client.execute(biq);
       
View Full Code Here

TOP

Related Classes of com.basho.riak.client.core.query.Namespace

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.