示例#1
0
 /// <summary>
 /// Performs a partial-xreplace command in Clusterpoint Server storage.
 /// </summary>
 /// <param name="ids">List of document IDs.</param>
 /// <param name="operation">Operation as <see cref="CPS_PRX_Operation"/> to perform.</param>
 /// <returns>List of document IDs partial-xreplace'd.</returns>
 public List<string> partialXReplace(List<string> ids, CPS_PRX_Operation operation)
 {
     CPS_PartialXRequest request = new CPS_PartialXRequest(ids, operation);
     this.p_lastResponse = this.p_connection.sendRequest(request);
     return ((CPS_ModifyResponse)this.p_lastResponse).getModifiedIds();
 }
示例#2
0
 /// <summary>
 /// Constructs an instance of the CPS_PRX_Changeset class.
 /// <seealso cref="CPS_PRX_Operation"/>
 /// </summary>
 /// <param name="ids">List of document IDs.</param>
 /// <param name="operation">Operation to perform as <see cref="CPS_PRX_Operation"/>.</param>
 public CPS_PRX_Changeset(List<string> ids, CPS_PRX_Operation operation)
 {
     this.p_ids = ids;
     this.p_operations = new List<CPS_PRX_Operation>();
     this.p_operations.Add(operation);
 }
示例#3
0
 /// <summary>
 /// Constructs an instance of the CPS_PartialXRequest class.
 /// <seealso cref="CPS_PRX_Operation"/>
 /// <seealso cref="CPS_PRX_Changeset"/>
 /// </summary>
 /// <param name="ids">List of document IDs.</param>
 /// <param name="operation">Operation as <see cref="CPS_PRX_Operation"/> to perform.</param>
 /// <param name="requestId">Specifies request ID.</param>
 public CPS_PartialXRequest(List<string> ids, CPS_PRX_Operation operation, string requestId = "")
     : base("partial-xrequest", null, requestId)
 {
     this.p_changesets = new List<CPS_PRX_Changeset>();
     this.p_changesets.Add(new CPS_PRX_Changeset(ids, operation));
 }
示例#4
0
 /// <summary>
 /// Constructs an instance of the CPS_PRX_Changeset class.
 /// <seealso cref="CPS_PRX_Operation"/>
 /// </summary>
 /// <param name="id">Document ID.</param>
 /// <param name="operation">Operation to perform as <see cref="CPS_PRX_Operation"/>.</param>
 public CPS_PRX_Changeset(string id, CPS_PRX_Operation operation)
 {
     this.p_ids = new List<string>();
     this.p_ids.Add(id);
     this.p_operations = new List<CPS_PRX_Operation>();
     this.p_operations.Add(operation);
 }