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

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


   
    @Test
    public void testFetchDefaultBucketProps() throws InterruptedException, ExecutionException
    {
        Namespace namespace = new Namespace(Namespace.DEFAULT_BUCKET_TYPE, bucketName.toString());
        BucketProperties props = fetchBucketProps(namespace);
        assertTrue(props.hasNVal());
        assertTrue(props.hasAllowMulti());
        assertTrue(props.hasBasicQuorum());
        assertTrue(props.hasBigVClock());
        assertTrue(props.hasChashKeyFunction());
        assertTrue(props.hasLinkwalkFunction());
        assertTrue(props.hasDw());
        assertTrue(props.hasLastWriteWins());
        assertTrue(props.hasLinkwalkFunction());
        assertTrue(props.hasNotFoundOk());
        assertTrue(props.hasOldVClock());
        assertTrue(props.hasPr());
        assertTrue(props.hasPw());
        assertTrue(props.hasR());
        assertTrue(props.hasLegacyRiakSearchEnabled());
        assertTrue(props.hasRw());
        assertTrue(props.hasSmallVClock());
        assertTrue(props.hasW());
        assertTrue(props.hasYoungVClock());
       
        assertFalse(props.hasBackend());
        assertFalse(props.hasPostcommitHooks());
        assertFalse(props.hasPrecommitHooks());
        assertFalse(props.hasSearchIndex());
    }
View Full Code Here


                .withAllowMulti(true)
                .withNVal(4);
       
        storeBucketProps(builder);
       
        BucketProperties props = fetchBucketProps(namespace);
       
        assertEquals(props.getNVal(), Integer.valueOf(4));
        assertTrue(props.getAllowMulti());
       
    }
View Full Code Here

            new StoreBucketPropsOperation.Builder(namespace)
                .withNVal(4)
                .withR(1);
       
        storeBucketProps(builder);
        BucketProperties props = fetchBucketProps(namespace);
       
        assertEquals(props.getNVal(), Integer.valueOf(4));
        assertEquals(props.getR().getIntValue(), 1);
       
        resetAndEmptyBucket(bucketName);
       
        props = fetchBucketProps(namespace);
        assertEquals(props.getNVal(), Integer.valueOf(3));
        assertEquals(props.getR(), Quorum.quorumQuorum());
       
    }
View Full Code Here

    @Test
    public void testFetchBucketPropsFromType() throws InterruptedException, ExecutionException
    {
        Assume.assumeTrue(testBucketType);
        Namespace namespace = new Namespace(bucketType, bucketName);
        BucketProperties props = fetchBucketProps(namespace);
        assertTrue(props.hasNVal());
        assertTrue(props.hasAllowMulti());
        assertTrue(props.hasBasicQuorum());
        assertTrue(props.hasBigVClock());
        assertTrue(props.hasChashKeyFunction());
        assertTrue(props.hasDw());
        assertTrue(props.hasLastWriteWins());
        assertTrue(props.hasNotFoundOk());
        assertTrue(props.hasOldVClock());
        assertTrue(props.hasPr());
        assertTrue(props.hasPw());
        assertTrue(props.hasR());
        assertTrue(props.hasLegacyRiakSearchEnabled());
        assertTrue(props.hasRw());
        assertTrue(props.hasSmallVClock());
        assertTrue(props.hasW());
        assertTrue(props.hasYoungVClock());
       
        assertFalse(props.hasBackend());
        assertFalse(props.hasPostcommitHooks());
        assertFalse(props.hasPrecommitHooks());
        assertFalse(props.hasSearchIndex());
    }
View Full Code Here

            new StoreBucketPropsOperation.Builder(namespace)
                .withR(1)
                .withNVal(4);
       
        storeBucketProps(builder);
        BucketProperties props = fetchBucketProps(namespace);
       
        assertEquals(props.getNVal(), Integer.valueOf(4));
        assertEquals(props.getR().getIntValue(), 1);
       
        namespace = new Namespace(Namespace.DEFAULT_BUCKET_TYPE, bucketName.toString());
        props = fetchBucketProps(namespace);
        assertEquals(props.getNVal(), Integer.valueOf(3));
    }
View Full Code Here

TOP

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

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.