Package com.basho.riak.client.core.operations

Examples of com.basho.riak.client.core.operations.YzPutIndexOperation


    @Test
    public void testStoreAndFetchIndex() throws InterruptedException, ExecutionException
    {
        Assume.assumeTrue(testYokozuna);
        YokozunaIndex index = new YokozunaIndex("test_index");
        YzPutIndexOperation putOp = new YzPutIndexOperation.Builder(index).build();
       
        cluster.execute(putOp);
        putOp.get();
       
        assertTrue("Index not created", assureIndexExists("test_index"));
       
       
        YzFetchIndexOperation fetchOp =
View Full Code Here


    @Test
    public void testDeleteIndex() throws InterruptedException, ExecutionException
    {
        Assume.assumeTrue(testYokozuna);
        YokozunaIndex index = new YokozunaIndex("test_index5");
        YzPutIndexOperation putOp = new YzPutIndexOperation.Builder(index).build();
       
        cluster.execute(putOp);
        putOp.get();
       
        assertTrue("Index not created", assureIndexExists("test_index5"));
       
        YzDeleteIndexOperation delOp =
            new YzDeleteIndexOperation.Builder("test_index5").build();
View Full Code Here

        // First we have to create an index and attach it to a bucket
        // and the 'default' bucket type can't be used for search
       
        BinaryValue searchBucket = BinaryValue.create("search_bucket");
        YokozunaIndex index = new YokozunaIndex("test_index");
        YzPutIndexOperation putOp = new YzPutIndexOperation.Builder(index).build();
       
        cluster.execute(putOp);
        putOp.await();
       
        assertTrue(putOp.isSuccess());
       
        assureIndexExists("test_index");
       
        Namespace namespace = new Namespace(yokozunaBucketType, searchBucket);
        StoreBucketPropsOperation propsOp =
View Full Code Here

TOP

Related Classes of com.basho.riak.client.core.operations.YzPutIndexOperation

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.