final String key = (String) parameters[0];
final byte[] dataBytes = (byte[]) parameters[1];
final ByteString keyBS = ByteString.copyFromUtf8 (key);
final ByteString bucketBS = ByteString.copyFromUtf8 (RiakPBOperationFactory.this.bucket);
final ByteString dataBS = ByteString.copyFrom (dataBytes);
final RiakObject riakobj = new RiakObject (bucketBS, keyBS, dataBS);
// FIXME: use the vector clock...
RiakPBOperationFactory.this.riakcl.store (riakobj);
return true;
}
});