You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// <summary>Writes a potentially large sequence of key/value pairs into the database, by using as many transactions as necessary, and automatically scaling the size of each batch.</summary>
131
+
/// <param name="db">Database used for the operation</param>
132
+
/// <param name="data">Sequence of key/value pairs</param>
133
+
/// <param name="ct">Token used to cancel the operation</param>
134
+
/// <returns>Total number of values inserted in the database</returns>
135
+
/// <remarks>In case of a non-retryable error, some of the keys may remain in the database. Other transactions running at the same time may observe only a fraction of the keys until the operation completes.</remarks>
/// <summary>Writes a potentially large sequence of key/value pairs into the database, by using as many transactions as necessary, and automatically scaling the size of each batch.</summary>
152
+
/// <param name="db">Database used for the operation</param>
153
+
/// <param name="data">Sequence of key/value pairs</param>
154
+
/// <param name="options">Custom options used to configure the behaviour of the operation</param>
155
+
/// <param name="ct">Token used to cancel the operation</param>
156
+
/// <returns>Total number of values inserted in the database</returns>
157
+
/// <remarks>In case of a non-retryable error, some of the keys may remain in the database. Other transactions running at the same time may observe only a fraction of the keys until the operation completes.</remarks>
thrownewNotImplementedException("Multiple concurrent transactions are not yet supported");
146
190
}
147
191
148
-
varchunk=newList<KeyValuePair<Slice,Slice>>();
192
+
varchunk=newList<(SliceKey,SliceValue)>();
149
193
150
194
longitems=0;
151
195
using(variterator=data.GetEnumerator())
@@ -960,7 +1004,6 @@ public static Task ForEachAsync<TSource, TLocal>(
960
1004
/// <param name="localFinally">Lambda function that will be called after the last batch, and will be passed the last known state.</param>
961
1005
/// <param name="ct">Token used to cancel the operation</param>
962
1006
/// <returns>Task that completes when all the elements of <paramref name="source"/> have been processed, a non-retryable error occurs, or <paramref name="ct"/> is triggered</returns>
/// <param name="ct">Token used to cancel the operation</param>
409
409
/// <returns>Number of keys k such that range.Begin <= k > range.End</returns>
410
410
/// <remarks>If the range contains a large of number keys, the operation may need more than one transaction to complete, meaning that the number will not be transactionally accurate.</remarks>
/// <param name="ct">Token used to cancel the operation</param>
423
423
/// <returns>Number of keys k such that <paramref name="beginInclusive"/> <= k > <paramref name="endExclusive"/></returns>
424
424
/// <remarks>If the range contains a large of number keys, the operation may need more than one transaction to complete, meaning that the number will not be transactionally accurate.</remarks>
Copy file name to clipboardExpand all lines: FoundationDB.Client/FdbDatabaseExtensions.cs
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -318,18 +318,18 @@ public static Task SetAsync([NotNull] this IFdbRetryable db, Slice key, Slice va
318
318
returndb.WriteAsync((tr)=>tr.Set(key,value),ct);
319
319
}
320
320
321
-
/// <summary>Set the values of a list of keys in the database, using a dedicated transaction.</summary>
321
+
/// <summary>Set the values of a sequence of keys in the database, using a dedicated transaction.</summary>
322
322
/// <param name="db">Database instance</param>
323
323
/// <remarks>
324
324
/// Use this method only if you intend to perform a single operation inside your execution context (ex: HTTP request).
325
325
/// If you need to combine multiple read or write operations, consider using on of the multiple <see cref="IFdbRetryable.WriteAsync"/> or <see cref="IFdbRetryable.ReadWriteAsync"/> overrides.
@@ -342,12 +342,12 @@ public static Task SetValuesAsync([NotNull] this IFdbRetryable db, KeyValuePair<
342
342
/// Use this method only if you intend to perform a single operation inside your execution context (ex: HTTP request).
343
343
/// If you need to combine multiple read or write operations, consider using on of the multiple <see cref="IFdbRetryable.WriteAsync"/> or <see cref="IFdbRetryable.ReadWriteAsync"/> overrides.
/// <summary>Create an instance of the default Directory Layer</summary>
157
-
[NotNull]
158
-
publicstaticFdbDirectoryLayerCreate()
159
-
{
160
-
returnCreate(Slice.Empty);
161
-
}
162
-
163
156
/// <summary>Create an instance of a Directory Layer located under a specific prefix and path</summary>
164
157
/// <param name="prefix">Prefix for the content. The nodes will be stored under <paramref name="prefix"/> + <FE></param>
165
158
/// <param name="path">Optional path, if the Directory Layer is not located at the root of the database.</param>
159
+
/// <param name="encoding">Optional key encoding scheme. If not specified, will use the <see cref="TypeSystem.Tuples"/> type system by default.</param>
/// <summary>Create an instance of a Directory Layer located under a specific subspace and path</summary>
175
169
/// <param name="subspace">Subspace for the content. The nodes will be stored under <paramref name="subspace"/>.Key + <FE></param>
176
170
/// <param name="path">Optional path, if the Directory Layer is not located at the root of the database.</param>
171
+
/// <param name="encoding">Optional key encoding scheme. If not specified, will use the <see cref="TypeSystem.Tuples"/> type system by default.</param>
0 commit comments