Examples of YzFetchIndexOperation


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

    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

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

        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
Copyright © 2018 www.massapi.com. 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.