Share via


ConcurrentHashMap.ReduceKeys Method

Definition

Overloads

ReduceKeys(Int64, IBiFunction)

Returns the result of accumulating all keys using the given reducer to combine values, or null if none.

ReduceKeys(Int64, IFunction, IBiFunction)

Returns the result of accumulating the given transformation of all keys using the given reducer to combine values, or null if none.

ReduceKeys(Int64, IBiFunction)

Returns the result of accumulating all keys using the given reducer to combine values, or null if none.

[Android.Runtime.Register("reduceKeys", "(JLjava/util/function/BiFunction;)Ljava/lang/Object;", "GetReduceKeys_JLjava_util_function_BiFunction_Handler", ApiSince=24)]
public virtual Java.Lang.Object? ReduceKeys (long parallelismThreshold, Java.Util.Functions.IBiFunction reducer);
[<Android.Runtime.Register("reduceKeys", "(JLjava/util/function/BiFunction;)Ljava/lang/Object;", "GetReduceKeys_JLjava_util_function_BiFunction_Handler", ApiSince=24)>]
abstract member ReduceKeys : int64 * Java.Util.Functions.IBiFunction -> Java.Lang.Object
override this.ReduceKeys : int64 * Java.Util.Functions.IBiFunction -> Java.Lang.Object

Parameters

parallelismThreshold
Int64

the (estimated) number of elements needed for this operation to be executed in parallel

reducer
IBiFunction

a commutative associative combining function

Returns

the result of accumulating all keys using the given reducer to combine values, or null if none

Attributes

Remarks

Returns the result of accumulating all keys using the given reducer to combine values, or null if none.

Added in 1.8.

Java documentation for java.util.concurrent.ConcurrentHashMap.reduceKeys(long, java.util.function.BiFunction<? super K, ? super K, ? extends K>).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

ReduceKeys(Int64, IFunction, IBiFunction)

Returns the result of accumulating the given transformation of all keys using the given reducer to combine values, or null if none.

[Android.Runtime.Register("reduceKeys", "(JLjava/util/function/Function;Ljava/util/function/BiFunction;)Ljava/lang/Object;", "GetReduceKeys_JLjava_util_function_Function_Ljava_util_function_BiFunction_Handler", ApiSince=24)]
[Java.Interop.JavaTypeParameters(new System.String[] { "U" })]
public virtual Java.Lang.Object? ReduceKeys (long parallelismThreshold, Java.Util.Functions.IFunction transformer, Java.Util.Functions.IBiFunction reducer);
[<Android.Runtime.Register("reduceKeys", "(JLjava/util/function/Function;Ljava/util/function/BiFunction;)Ljava/lang/Object;", "GetReduceKeys_JLjava_util_function_Function_Ljava_util_function_BiFunction_Handler", ApiSince=24)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "U" })>]
abstract member ReduceKeys : int64 * Java.Util.Functions.IFunction * Java.Util.Functions.IBiFunction -> Java.Lang.Object
override this.ReduceKeys : int64 * Java.Util.Functions.IFunction * Java.Util.Functions.IBiFunction -> Java.Lang.Object

Parameters

parallelismThreshold
Int64

the (estimated) number of elements needed for this operation to be executed in parallel

transformer
IFunction

a function returning the transformation for an element, or null if there is no transformation (in which case it is not combined)

reducer
IBiFunction

a commutative associative combining function

Returns

the result of accumulating the given transformation of all keys

Attributes

Remarks

Returns the result of accumulating the given transformation of all keys using the given reducer to combine values, or null if none.

Added in 1.8.

Java documentation for java.util.concurrent.ConcurrentHashMap.reduceKeys(long, java.util.function.Function<? super K, ? extends U>, java.util.function.BiFunction<? super U, ? super U, ? extends U>).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to