Package com.basho.riak.client.api.cap

Examples of com.basho.riak.client.api.cap.BasicVClock


        final PojoWithAnnotatedFields pojo = new PojoWithAnnotatedFields();
        pojo.vclock = expected;

        final byte[] clockBytes = "a85hYGBgzGDKBVIcypz/fvo/2e2UwZTImMfKwHIy/SRfFgA=".getBytes();
        assertNull(AnnotationUtil.getVClock(pojo));
        assertNotNull(AnnotationUtil.getVClock(pojo, new BasicVClock(clockBytes) ));
    }
View Full Code Here


        final PojoWithAnnotatedMethods pojo = new PojoWithAnnotatedMethods();
        pojo.setVClock(expected);

        assertNull(AnnotationUtil.getVClock(pojo));
        final byte[] clockBytes = "a85hYGBgzGDKBVIcypz/fvo/2e2UwZTImMfKwHIy/SRfFgA=".getBytes();
        assertNotNull(AnnotationUtil.getVClock(pojo, new BasicVClock(clockBytes)));
    }
View Full Code Here

            {
                vclock = (VClock) getFieldValue(riakVClockField, obj);
            }
            else
            {
                vclock = new BasicVClock((byte[]) getFieldValue(riakVClockField, obj));
            }
        }
        else if (riakVClockGetter != null)
        {
            if (riakVClockGetter.getReturnType().isArray())
            {
                vclock = new BasicVClock((byte[]) getMethodValue(riakVClockGetter, obj));
            }
            else
            {
                vclock = (VClock) getMethodValue(riakVClockGetter, obj);
            }
View Full Code Here

    private RiakObjectConverter() {}
   
    public static List<RiakObject> convert(List<RpbContent> contentList, ByteString contentVClock)
    {
        List<RiakObject> roList = new LinkedList<RiakObject>();
        BasicVClock vclock = new BasicVClock(contentVClock.toByteArray());
       
        for (RpbContent content : contentList)
        {
            RiakObject ro = new RiakObject();
           
View Full Code Here

            // it deleted
            if (response.getContentCount() == 0)
            {
                RiakObject ro = new RiakObject()
                                    .setDeleted(true)
                                    .setVClock(new BasicVClock(response.getVclock().toByteArray()));
               
                responseBuilder.addObject(ro);
            }
            else
            {
View Full Code Here

TOP

Related Classes of com.basho.riak.client.api.cap.BasicVClock

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.