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

Examples of com.basho.riak.client.core.operations.YzFetchIndexOperation$Builder


    public static boolean assureIndexExists(String indexName) throws InterruptedException
    {
        for (int x = 0; x < 5; x++)
        {
            Thread.sleep(2000);
            YzFetchIndexOperation fetch = new YzFetchIndexOperation.Builder().withIndexName(indexName).build();
            cluster.execute(fetch);
            fetch.await();
            if (fetch.isSuccess())
            {
                return true;
            }
        }
       
View Full Code Here


        putOp.get();
       
        assertTrue("Index not created", assureIndexExists("test_index"));
       
       
        YzFetchIndexOperation fetchOp =
            new YzFetchIndexOperation.Builder().withIndexName("test_index")
                .build();
       
        cluster.execute(fetchOp);
        fetchOp.await();
        if (!fetchOp.isSuccess())
        {
            assertTrue(fetchOp.cause().toString(), fetchOp.isSuccess());
        }
       
        List<YokozunaIndex> indexList = fetchOp.get().getIndexes();
       
        assertFalse(indexList.isEmpty());
        index = indexList.get(0);
        assertEquals(index.getSchema(), "_yz_default");
       
View Full Code Here

TOP

Related Classes of com.basho.riak.client.core.operations.YzFetchIndexOperation$Builder

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.