Package com.basho.riak.client.core.util

Examples of com.basho.riak.client.core.util.BinaryValue


     * @param builder the update to apply to the counter the key is mapped to. If none exists it is created.
     * @return a reference to this object.
     */
    public MapUpdate update(String key, CounterUpdate builder)
    {
        BinaryValue k = BinaryValue.create(key);
        updates.add(new MapOp.MapUpdate(new MapOp.MapField(MapOp.FieldType.COUNTER, k), builder.getOp()));
        return this;
    }
View Full Code Here


     * @param builder the update to apply to the register the key is mapped to. If none exists it is created.
     * @return a reference to this object.
     */
    public MapUpdate update(String key, RegisterUpdate builder)
    {
        BinaryValue k = BinaryValue.create(key);
        updates.add(new MapOp.MapUpdate(new MapOp.MapField(MapOp.FieldType.REGISTER, k), builder.getOp()));
        return this;
    }
View Full Code Here

     * @param builder the update to apply to the flag the key is mapped to. If none exists it is created.
     * @return a reference to this object.
     */
    public MapUpdate update(String key, FlagUpdate builder)
    {
        BinaryValue k = BinaryValue.create(key);
        updates.add(new MapOp.MapUpdate(new MapOp.MapField(MapOp.FieldType.FLAG, k), builder.getOp()));
        return this;
    }
View Full Code Here

     * @return either the value found on <code>domainObject</code>;s
     * {@literal @RiakKey} member or <code>defaultkey</code>
     */
    public static <T> BinaryValue getKey(T domainObject, BinaryValue defaultKey)
    {
        BinaryValue key = getKey(domainObject);
        if (key == null)
        {
            key = defaultKey;
        }
        return key;
View Full Code Here

        return AnnotationHelper.getInstance().setRiakBucketName(domainObject, bucketName);
    }
   
    public static <T> BinaryValue getBucketName(T domainObject, BinaryValue defaultBucketName)
    {
        BinaryValue bucketName = getBucketName(domainObject);
        return bucketName != null ? bucketName : defaultBucketName;
    }
View Full Code Here

        return AnnotationHelper.getInstance().setRiakBucketType(domainObject, bucketType);
    }
   
    public static <T> BinaryValue getBucketType(T domainObject, BinaryValue defaultBucketType)
    {
        BinaryValue bucketType = getBucketType(domainObject);
        return bucketType != null ? bucketType : defaultBucketType;
    }
View Full Code Here

    }

    @Override
    public Location next()
    {
      BinaryValue key = iterator.next();
      return new Location(namespace, key);
    }
View Full Code Here

            {
                @Override
                protected Response convertResponse(StoreOperation.Response coreResponse)
                {
                    Namespace ns = orm.getNamespace();
                    BinaryValue key = orm.getKey();
                    if (coreResponse.hasGeneratedKey())
                    {
                        key = coreResponse.getGeneratedKey();
                    }
                   
View Full Code Here

TOP

Related Classes of com.basho.riak.client.core.util.BinaryValue

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.