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