Examples of YzGetSchemaOperation


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

       
        YzPutSchemaOperation putOp = new YzPutSchemaOperation.Builder(yzSchema).build();
        cluster.execute(putOp);
        putOp.get();
       
        YzGetSchemaOperation getOp =
            new YzGetSchemaOperation.Builder("test_schema").build();
       
        cluster.execute(getOp);
        YokozunaSchema yzSchema2 = getOp.get().getSchema();
       
        assertEquals(yzSchema.getContent(), yzSchema2.getContent());
       
       
    }
View Full Code Here

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

   
    @Test
    public void fetchAndStoreDefaultSchema() throws InterruptedException, ExecutionException
    {
        Assume.assumeTrue(testYokozuna);
        YzGetSchemaOperation getOp =
            new YzGetSchemaOperation.Builder("_yz_default").build();
       
        cluster.execute(getOp);
        YokozunaSchema yzSchema = getOp.get().getSchema();
       
        assertNotNull(yzSchema.getName());
        assertNotNull(yzSchema.getContent());
       
        YzPutSchemaOperation putOp = new YzPutSchemaOperation.Builder(yzSchema).build();
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.