Table of Contents

Class Predicate<K, V>

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

Listener for Kafka Predicate. Extends JVMBridgeListener, implements IPredicate<K, V>

public class Predicate<K, V> : JVMBridgeListener, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IPredicate<K, V>, IJVMBridgeBase, IJVMBridgeDefinition

Type Parameters

K
V
Inheritance
Predicate<K, 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

Predicate()

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

public Predicate()

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

Parameters

args object[]

Properties

BridgeClassName

Java class name to be instantiated

public override string BridgeClassName { get; }

Property Value

string

OnTest

public Func<K, V, bool> OnTest { get; set; }

Property Value

Func<K, V, bool>

Remarks

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

Methods

InitializeHandlers()

Handlers initializer for Predicate

protected virtual void InitializeHandlers()

Test(K, V)

public virtual bool Test(K arg0, V arg1)

Parameters

arg0 K

K

arg1 V

V

Returns

bool

bool