Examples of BasicVClock


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

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

        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

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

            {
                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

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

    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

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

            // 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

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

     * @return this
     * @throws IllegalArgumentException
     *             for a null vclock
     */
    public RiakObjectBuilder withVClock(byte[] vclock) {
        this.vclock = new BasicVClock(vclock);
        return this;
    }
View Full Code Here

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

     */
    public RiakResponse(byte[] vclock, IRiakObject[] riakObjects) {
        if (vclock == null) {
            this.vclock = null;
        } else {
            this.vclock = new BasicVClock(vclock);
        }
        if (riakObjects == null) {
            this.riakObjects = NO_OBJECTS;
        } else {
            this.riakObjects = riakObjects;
View Full Code Here

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

     */
    public RiakResponse(byte[] vclock) {
        if (vclock == null) {
            throw new IllegalArgumentException("vclock cannot be null");
        } else {
            this.vclock = new BasicVClock(vclock);
        }
        this.riakObjects = NO_OBJECTS;
        this.unmodified = false;
        this.deleted = true;
    }
View Full Code Here

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

     * @return this
     * @throws IllegalArgumentException
     *             for a null vclock
     */
    public RiakObjectBuilder withVClock(byte[] vclock) {
        this.vclock = new BasicVClock(vclock);
        return this;
    }
View Full Code Here

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

     */
    public RiakResponse(byte[] vclock, IRiakObject[] riakObjects) {
        if (vclock == null) {
            this.vclock = null;
        } else {
            this.vclock = new BasicVClock(vclock);
        }
        if (riakObjects == null) {
            this.riakObjects = NO_OBJECTS;
        } else {
            this.riakObjects = riakObjects;
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.