Table of Contents

Class CollectionUtils

Namespace
Org.Apache.Kafka.Common.Utils
Assembly
MASES.KNet.dll
public class CollectionUtils : JVMBridgeBase<CollectionUtils>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
Inheritance
CollectionUtils
Implements
Inherited Members

Constructors

CollectionUtils()

Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge

public CollectionUtils()

CollectionUtils(params object[])

Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class

public CollectionUtils(params object[] args)

Parameters

args object[]

Properties

BridgeClassName

Java class name to be instantiated

public override string BridgeClassName { get; }

Property Value

string

IsBridgeAbstract

true if the BridgeClassName is an abstract class, i.e. cannot be created an instance

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

true if the BridgeClassName implements Closeable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

true if the BridgeClassName is an interface, i.e. does not have any public constructor

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

true if the BridgeClassName is a static class, i.e. does not have any public constructor

public override bool IsBridgeStatic { get; }

Property Value

bool

Methods

GroupPartitionDataByTopic<T, Arg0ExtendsT>(Map<TopicPartition, Arg0ExtendsT>)

public static Map<String, Map<Integer, T>> GroupPartitionDataByTopic<T, Arg0ExtendsT>(Map<TopicPartition, Arg0ExtendsT> arg0) where Arg0ExtendsT : T

Parameters

arg0 Map<TopicPartition, Arg0ExtendsT>

Map

Returns

Map<String, Map<Integer, T>>

Map

Type Parameters

T
Arg0ExtendsT

T

GroupPartitionsByTopic(Collection<TopicPartition>)

public static Map<String, List<Integer>> GroupPartitionsByTopic(Collection<TopicPartition> arg0)

Parameters

arg0 Collection<TopicPartition>

Collection

Returns

Map<String, List<Integer>>

Map

GroupPartitionsByTopic<T>(Collection<TopicPartition>, Function<String, T>, BiConsumer<T, Integer>)

public static Map<String, T> GroupPartitionsByTopic<T>(Collection<TopicPartition> arg0, Function<String, T> arg1, BiConsumer<T, Integer> arg2)

Parameters

arg0 Collection<TopicPartition>

Collection

arg1 Function<String, T>

Function

arg2 BiConsumer<T, Integer>

BiConsumer

Returns

Map<String, T>

Map

Type Parameters

T

SubtractMap<K, V, Arg0ExtendsK, Arg0ExtendsV, Arg1ExtendsK, Arg1ExtendsV>(Map<Arg0ExtendsK, Arg0ExtendsV>, Map<Arg1ExtendsK, Arg1ExtendsV>)

public static Map<K, V> SubtractMap<K, V, Arg0ExtendsK, Arg0ExtendsV, Arg1ExtendsK, Arg1ExtendsV>(Map<Arg0ExtendsK, Arg0ExtendsV> arg0, Map<Arg1ExtendsK, Arg1ExtendsV> arg1) where Arg0ExtendsK : K where Arg0ExtendsV : V where Arg1ExtendsK : K where Arg1ExtendsV : V

Parameters

arg0 Map<Arg0ExtendsK, Arg0ExtendsV>

Map

arg1 Map<Arg1ExtendsK, Arg1ExtendsV>

Map

Returns

Map<K, V>

Map

Type Parameters

K
V
Arg0ExtendsK

K

Arg0ExtendsV

V

Arg1ExtendsK

K

Arg1ExtendsV

V