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
Copy file name to clipboardExpand all lines: com.ibm.streamsx.dps/com.ibm.streamsx/store/distributed/native.function/function.xml
+44-15Lines changed: 44 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -435,40 +435,69 @@ it does safety checks and is therefore slower.</description>
435
435
</function>
436
436
437
437
<function>
438
-
<description>This function can be called to get multiple keys present in a given store.
438
+
<description>This function can be called to get i.e. read/fetch multiple keys present in a given store.
439
439
@param store The handle of the store.
440
440
@param keys User provided mutable list variable. This list must be suitable for storing multiple keys found in a given store and it must be made of a given store's key data type.
441
-
@param keyStartPosition User can indicate a start position from where keys should be fetched and returned. It must be greater than or equal to zero. If not, this API will return back with an empty list of keys.
441
+
@param keyStartPosition User can indicate a zero index based start position from where keys should be fetched and returned. It must be greater than or equal to zero. If not, this API will return back with an empty list of keys.
442
442
@param numberOfKeysNeeded User can indicate the total number of keys to be returned as available from the given key start position. It must be greater than or equal to 0 and less than or equal to 50000. If it is set to 0, then all the available keys upto a maximum of 50000 keys from the given key start position will be returned.
443
443
@param keyExpression User can provide an expression made of the attributes from the key's data type. This expression will be evaluated in determining which matching keys to be returned. Due to very high logic complexity, this feature is not implemented at this time.
444
444
@param valueExpression User can provide an expression made of the attributes from the value's data type. This expression will be evaluated in determining which matching keys to be returned. Due to very high logic complexity, this feature is not implemented at this time.
445
-
@param err Contains the error code. Will be '0' if no error occurs, and a non-zero value otherwise.
445
+
@param err User provided mutable uint64 typed variable in which the result of this bulk get keys operation will be returned. It will be 0 if no error occurs and a non-zero error code otherwise.
<description>This function can be called to get values for a given list of multiple keys present in a given store.
451
+
<description>This function can be called to get i.e. read/fetch values for a given list of multiple keys present in a given store.
452
452
@param store The handle of the store.
453
-
@param keys User provided list variable that contains keys for which values need to be fetched.
454
-
@param values User provided mutabe list variable in which the fetched values will be returned. This list must be suitable for storing multiple values obtained from a given store and it must be made of a given store's value data type. Fetched values will be available in this list at the same index where the key appears in the user provided keys list. Before using the individual values from this list, it is recommended to make sure that a given value fetch worked with no errors.
455
-
@param errors User provided mutable list variable in which the individual success or failure value fetch result codes will be returned. This list must be of type uint64. Each list element will be 0 if no error occurs and a non-zero error code otherwise. Such value fetch result codes will be available in this list at the same index where the key appears in the user provided keys list. If a given result code doesn't indicate a successful value fetch, it is better to skip the corresponding element at the same index in the mutable values list.
456
-
@return It returns true if value fetch worked for all given keys with no errors. Else, it returns false to indicate that value fetch encountered error for one or more keys.
453
+
@param keys User provided list variable that contains keys for which values need to be fetched. It must be made of a given store's key data type.
454
+
@param keyExistsOrNot User provided mutable list variable in which true or false status for every user given key will be returned. This is done to indicate to the user about if that key exists or not in the given store. This list must be made of a boolean data type. Status returned in this list can be used in combination with the items returned in the values list which is explained next.
455
+
@param values User provided mutabe list variable in which the fetched values will be returned. This list must be suitable for storing multiple values obtained from a given store and it must be made of a given store's value data type. Fetched values will be available in this list at the same index where the key appeared in the user provided keys list. If a user given key is not present in the store, there will still be a default value returned in that key's index. It is better to first confirm in the keyExistsOrNot list that will carry true or false status about the existence of all the user provided keys. Depending on the key existence status found in that other list, user can decide to either consider using or ignore a value in a given index of the values list.
456
+
@param err User provided mutable uint64 typed variable in which the result of this bulk get values operation will be returned. It will be 0 if no error occurs and a non-zero error code otherwise.
457
457
</description>
458
-
<prototype><any T1, any T2> public stateful boolean dpsGetValues(uint64 store, list<T1> keys, mutable list<T2>values, mutable list<uint64>errors)</prototype>
458
+
<prototype><any T1, any T2> public stateful void dpsGetValues(uint64 store, list<T1> keys, mutable list<boolean>keyExistsOrNot, mutable list<T2>values, mutable uint64 err)</prototype>
459
459
</function>
460
460
461
461
<function>
462
-
<description>This function can be called to get multiple Key/Value (KV) pairs present in a given store.
462
+
<description>This function can be called to get i.e. read/fetch multiple Key/Value (KV) pairs present in a given store.
463
463
@param store The handle of the store.
464
464
@param keys User provided mutable list variable in which the keys found in the store will be returned. This list must be suitable for storing multiple keys found in a given store and it must be made of a given store's key data type.
465
-
@param values User provided mutabe list variable in which the fetched values will be returned. This list must be suitable for storing multiple values obtained from a given store and it must be made of a given store's value data type. Fetched values will be available in this list at the same index where the corresponding key appears in the keys list. Before using the individual values from this list, it is recommended to make sure that a given value fetch worked with no errors.
466
-
@param keyStartPosition User can indicate a start position from where the K/V pairs should be fetched and returned. It must be greater than or equal to zero. If not, this API will return back with an empty list of keys.
465
+
@param values User provided mutabe list variable in which the fetched values will be returned. This list must be suitable for storing multiple values obtained from a given store and it must be made of a given store's value data type. Fetched values will be available in this list at the same index where the corresponding key appears in the keys list.
466
+
@param keyStartPosition User can indicate a zero index based start position from where the K/V pairs should be fetched and returned. It must be greater than or equal to zero. If not, this API will return back with an empty list of keys.
467
467
@param numberOfPairsNeeded User can indicate the total number of K/V pairs to be returned as available from the given key start position. It must be greater than or equal to 0 and less than or equal to 50000. If it is set to 0, then all the available K/V pairs upto a maximum of 50000 pairs from the given key start position will be returned.
468
-
@param errors User provided mutable list variable in which the individual success or failure value fetch result codes will be returned. This list must be of type uint64. Each list element will be 0 if no error occurs and a non-zero error code otherwise. Such value fetch result codes will be available in this list at the same index where the key appears in the keys list. If a given result code doesn't indicate a successful value fetch, it is better to skip the corresponding element at the same index in the mutable values list.
469
-
@return It returns true if value fetch worked for all the keys with no errors. Else, it returns false to indicate that value fetch encountered error for one or more keys.
468
+
@param err User provided mutable uint64 typed variable in which the result of this bulk get KV pairs operation will be returned. It will be 0 if no error occurs and a non-zero error code otherwise.
<description>This function can be called to put i.e. write/save multiple Key/Value (KV) pairs to a given store. Note: You must make sure that the intended store exists before you use this function. If not, you will end up creating bulk K/V pairs in an unmanageable fashion in the backend data store which will make it less useful.
475
+
@param store The handle of the store.
476
+
@param keys User provided list variable that contains the keys to be written i.e. saved. This list must be made of a given store's key data type.
477
+
@param values User provided list variable that contains the values to be written i.e. saved. This list must be made of a given store's value data type. A KV pair is formed with a key and a value taken from the same index position of the keys and values lists. If the keys and values lists are not of the same size, this function will simply return back without doing any bulk put operation.
478
+
@param err User provided mutable uint64 typed variable in which the result of this bulk put operation will be returned. It will be 0 if no error occurs and a non-zero error code otherwise.
479
+
</description>
480
+
<prototype><any T1, any T2> public stateful void dpsPutKVPairs(uint64 store, list<T1> keys, list<T2> values, mutable uint64 err)</prototype>
481
+
</function>
482
+
483
+
<function>
484
+
<description>This function can be called to check for the existence of a given list of keys in a given store.
485
+
@param store The handle of the store.
486
+
@param keys User provided list variable that contains the keys to be checked for their existence in the given store. This list must be made of a given store's key data type.
487
+
@param results User provided mutable list variable in which the key existence check true or false results will be returned. This list must be made of a boolean data type.
488
+
@param err User provided mutable uint64 typed variable in which the result of this bulk has keys operation will be returned. It will be 0 if no error occurs and a non-zero error code otherwise.
<description>This function can be called to remove a given list of keys from a given store.
495
+
@param store The handle of the store.
496
+
@param keys User provided list variable that contains the keys to be removed from the given store. This list must be made of a given store's key data type.
497
+
@param totalKeysRemoved User provided mutable int32 variable in which the total number of keys removed from the store will be returned.
498
+
@param err User provided mutable uint64 typed variable in which the result of this bulk remove keys operation will be returned. It will be 0 if no error occurs and a non-zero error code otherwise.
0 commit comments