Class KeyValueMapper<K, V, VR>
Listener for Kafka KeyValueMapper. Extends JVMBridgeListener, implements IKeyValueMapper<K, V, VR>
public class KeyValueMapper<K, V, VR> : JVMBridgeListener, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IKeyValueMapper<K, V, VR>, IJVMBridgeBase, IJVMBridgeDefinition
Type Parameters
K
V
VR
- Inheritance
-
KeyValueMapper<K, V, VR>
- Implements
-
IKeyValueMapper<K, V, VR>
- Derived
- Inherited Members
Remarks
Dispose the object to avoid a resource leak, the object contains a reference to the corresponding JVM object
Constructors
KeyValueMapper()
Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge
public KeyValueMapper()
KeyValueMapper(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 KeyValueMapper(params object[] args)
Parameters
args
object[]
Properties
BridgeClassName
Java class name to be instantiated
public override string BridgeClassName { get; }
Property Value
OnApply
public Func<K, V, VR> OnApply { get; set; }
Property Value
- Func<K, V, VR>
Remarks
If OnApply has a value it takes precedence over corresponding class method
Methods
Apply(K, V)
public virtual VR Apply(K arg0, V arg1)
Parameters
arg0
KK
arg1
VV
Returns
- VR
VR
InitializeHandlers()
Handlers initializer for KeyValueMapper
protected virtual void InitializeHandlers()