Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adding a public constructor that takes a vectorclock to RiakObject

  • Loading branch information...
commit da9da21974c6aa541519a2915348c4fafdddef97 1 parent 6b49663
@ticktock ticktock authored committed
Showing with 10 additions and 0 deletions.
  1. +10 −0 src/com/trifork/riak/RiakObject.java
View
10 src/com/trifork/riak/RiakObject.java
@@ -77,6 +77,13 @@
}
}
+ public RiakObject(ByteString vclock, ByteString bucket, ByteString key, ByteString content) {
+ this.bucket = bucket;
+ this.key = key;
+ this.value = content;
+ this.vclock = vclock;
+ }
+
public RiakObject(ByteString bucket, ByteString key, ByteString content) {
this.bucket = bucket;
this.key = key;
@@ -121,6 +128,9 @@ public ByteString getVclock() {
return vclock;
}
+ public ByteString getValue(){
+ return value;
+ }
RpbContent buildContent() {
Builder b =
Please sign in to comment.
Something went wrong with that request. Please try again.