Class Reducer<V>
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
-
IReducer<V>
- 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
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
VV
arg1
VV
Returns
- V
V
InitializeHandlers()
Handlers initializer for Reducer
protected virtual void InitializeHandlers()