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

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


     * @return the String representation of the key
     */
    public <T> BinaryValue getRiakKey(T obj)
    {
        // TODO: charset
        BinaryValue key = null;
        if (riakKeyField != null)
        {
            if (riakKeyField.getType().equals(String.class))
            {
                Object o = getFieldValue(riakKeyField, obj);
View Full Code Here


    }

    // TODO: charset in annotation
    public <T> BinaryValue getRiakBucketName(T obj)
    {
        BinaryValue bucketName = null;
       
        if (riakBucketNameField != null)
        {
            if (riakBucketNameField.getType().equals(String.class))
            {
View Full Code Here

    }
   
    // TODO: charset in annotation
    public <T> BinaryValue getRiakBucketType(T obj)
    {
        BinaryValue bucketType = null;
       
        if (riakBucketTypeField != null)
        {
            if (riakBucketTypeField.getType().equals(String.class))
            {
View Full Code Here

     * @param key the key the counter is mapped to.
     * @return a reference to this object.
     */
    public MapUpdate removeCounter(String key)
    {
        BinaryValue k = BinaryValue.create(key);
        removes.add(new MapOp.MapField(MapOp.FieldType.COUNTER, k));
        return this;
    }
View Full Code Here

     * @param key the key the register is mapped to.
     * @return a reference to this object.
     */
    public MapUpdate removeRegister(String key)
    {
        BinaryValue k = BinaryValue.create(key);
        removes.add(new MapOp.MapField(MapOp.FieldType.REGISTER, k));
        return this;
    }
View Full Code Here

     * @param key the key the flag is mapped to.
     * @return a reference to this object.
     */
    public MapUpdate removeFlag(String key)
    {
        BinaryValue k = BinaryValue.create(key);
        removes.add(new MapOp.MapField(MapOp.FieldType.FLAG, k));
        return this;
    }
View Full Code Here

     * @param key the key the set is mapped to.
     * @return a reference to this object.
     */
    public MapUpdate removeSet(String key)
    {
        BinaryValue k = BinaryValue.create(key);
        removes.add(new MapOp.MapField(MapOp.FieldType.SET, k));
        return this;
    }
View Full Code Here

     * @param key the key the map is mapped to.
     * @return a reference to this object.
     */
    public MapUpdate removeMap(String key)
    {
        BinaryValue k = BinaryValue.create(key);
        removes.add(new MapOp.MapField(MapOp.FieldType.MAP, k));
        return this;
    }
View Full Code Here

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

     * @param builder the update to apply to the set the key is mapped to. If none exists it is created.
     * @return a reference to this object.
     */
    public MapUpdate update(String key, SetUpdate builder)
    {
        BinaryValue k = BinaryValue.create(key);
        updates.add(new MapOp.MapUpdate(new MapOp.MapField(MapOp.FieldType.SET, k), builder.getOp()));
        return this;
    }
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.