Table of Contents

Class Reducer<V>

Namespace
Org.Apache.Kafka.Streams.Kstream
Assembly
MASES.KNet.dll

Listener for Kafka Reducer. Extends JVMBridgeListener, implements IReducer<V>

public class Reducer<V> : JVMBridgeListener, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IReducer<V>, IJVMBridgeBase, IJVMBridgeDefinition

Type Parameters

V
Inheritance
Reducer<V>
Implements
Derived
Inherited Members

Remarks

Dispose the object to avoid a resource leak, the object contains a reference to the corresponding JVM object

Constructors

Reducer()

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

public Reducer()

Reducer(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 Reducer(params object[] args)

Parameters

args object[]

Properties

BridgeClassName

Java class name to be instantiated

public override string BridgeClassName { get; }

Property Value

string

OnApply

public Func<V, V, V> OnApply { get; set; }

Property Value

Func<V, V, V>

Remarks

If OnApply has a value it takes precedence over corresponding class method

Methods

Apply(V, V)

public virtual V Apply(V arg0, V arg1)

Parameters

arg0 V

V

arg1 V

V

Returns

V

V

InitializeHandlers()

Handlers initializer for Reducer

protected virtual void InitializeHandlers()