public static RiakObject Load(Bucket bucket, RiakHttpResponse response) { RiakObject ro = new RiakObject { Bucket = bucket }; ro.LoadFromResponse(response); return ro; }
public static RiakObject Load(Bucket bucket, string keyName, string siblingId) { RiakObject ro = new RiakObject { Bucket = bucket, SiblingId = siblingId, KeyName = keyName }; ro.Refresh(); return ro; }
public static RiakObject Load(Bucket bucket, string keyName, Document part) { RiakObject ro = new RiakObject { Bucket = bucket, KeyName = keyName }; ro.LoadDocumentHeaders(part); ro._cachedData = part.Content; return ro; }
public static RiakObject Load(Bucket bucket, string keyName, bool autoRefresh) { RiakObject ro = new RiakObject { Bucket = bucket, KeyName = keyName }; if (autoRefresh) { if(string.IsNullOrEmpty(keyName)) { throw new RiakClientException("Loading a RiakObject requires a key name."); } ro.Refresh(); } return ro; }
public MapReduce Input(RiakObject riakObject, string arg) { _inputBucket = null; _inputKeys.Add(new KeyValuePair<RiakObject, string>(riakObject, arg)); return this; }
public void AddLink(RiakObject remoteObject, string riakTag) { Link newLink = new Link { UriResource = remoteObject.LinkPath, RiakTag = riakTag }; Links.Add(newLink); }
private void SetAndStoreTextKey(RiakObject textKey) { textKey.ContentType = "text/plain"; string data = GetRandomTextData(); textKey.Store(data); _randomTextData.Add(data); }