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

Examples of com.basho.riak.client.core.util.BinaryValue.unsafeGetValue()


        RegisterOp op = new RegisterOp(registerValue);

        DtUpdateOperation.Builder operation = new DtUpdateOperation.Builder(namespace);
        ByteString registerOp = operation.getRegisterOp(op);

        ByteString serializedValue = ByteString.copyFrom(registerValue.unsafeGetValue());
        assertEquals(serializedValue, registerOp);
    }

    @Test
    public void testGetMapOpUpdates()
View Full Code Here


                    .setName(ByteString.copyFrom(registerKey.unsafeGetValue()))
                    .setType(RiakDtPB.MapField.MapFieldType.REGISTER))
                .setRegisterValue(ByteString.copyFrom(registerValue.unsafeGetValue())))
            .addMapValue(RiakDtPB.MapEntry.newBuilder()
                .setField(RiakDtPB.MapField.newBuilder()
                    .setName(ByteString.copyFrom(flagKey.unsafeGetValue()))
                    .setType(RiakDtPB.MapField.MapFieldType.FLAG))
                .setFlagValue(flagValue))
            .build();

        CrdtResponseConverter converter = new CrdtResponseConverter();
View Full Code Here

        BinaryValue mapKey = BinaryValue.create("key");

        RiakDtPB.DtUpdateResp resp = RiakDtPB.DtUpdateResp.newBuilder()
            .addMapValue(RiakDtPB.MapEntry.newBuilder()
                .setField(RiakDtPB.MapField.newBuilder()
                    .setName(ByteString.copyFrom(mapKey.unsafeGetValue()))
                    .setType(RiakDtPB.MapField.MapFieldType.MAP))
                .addMapValue(RiakDtPB.MapEntry.newBuilder()
                    .setField(RiakDtPB.MapField.newBuilder()
                        .setName(ByteString.copyFrom(mapKey.unsafeGetValue()))
                        .setType(RiakDtPB.MapField.MapFieldType.MAP))
View Full Code Here

                .setField(RiakDtPB.MapField.newBuilder()
                    .setName(ByteString.copyFrom(mapKey.unsafeGetValue()))
                    .setType(RiakDtPB.MapField.MapFieldType.MAP))
                .addMapValue(RiakDtPB.MapEntry.newBuilder()
                    .setField(RiakDtPB.MapField.newBuilder()
                        .setName(ByteString.copyFrom(mapKey.unsafeGetValue()))
                        .setType(RiakDtPB.MapField.MapFieldType.MAP))
                    .addMapValue(RiakDtPB.MapEntry.newBuilder()
                        .setField(RiakDtPB.MapField.newBuilder()
                            .setName(ByteString.copyFrom(mapKey.unsafeGetValue()))
                            .setType(RiakDtPB.MapField.MapFieldType.MAP)))))
View Full Code Here

                    .setField(RiakDtPB.MapField.newBuilder()
                        .setName(ByteString.copyFrom(mapKey.unsafeGetValue()))
                        .setType(RiakDtPB.MapField.MapFieldType.MAP))
                    .addMapValue(RiakDtPB.MapEntry.newBuilder()
                        .setField(RiakDtPB.MapField.newBuilder()
                            .setName(ByteString.copyFrom(mapKey.unsafeGetValue()))
                            .setType(RiakDtPB.MapField.MapFieldType.MAP)))))
            .build();

        CrdtResponseConverter converter = new CrdtResponseConverter();
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.