Class KNetPredicate
- Namespace
- MASES.KNet.Connect.Transforms.Predicates
- Assembly
- MASES.KNet.dll
The generic class which is the base of all predicates in .NET
public abstract class KNetPredicate : KNetCommon, IKNetCommon, IKNetConnectLogging, IKNetPredicate, IPredicate, IVersion
- Inheritance
-
KNetPredicate
- Implements
- Inherited Members
Properties
Properties
The properties retrieved from Configure(Map<String, object>)
public IReadOnlyDictionary<string, object> Properties { get; }
Property Value
Methods
Close()
Implement the method to execute the close action
public virtual void Close()
CloseInternal()
Public method used from Java to trigger Close()
public void CloseInternal()
Config()
Not implemented
public ConfigDef Config()
Returns
Exceptions
- NotImplementedException
Invoked in Java before any initialization
Configure(Map<String, object>)
Not implemented
public virtual void Configure(Map<String, object> props)
Parameters
Exceptions
- NotImplementedException
Local version with a different signature
Configure(IReadOnlyDictionary<string, object>)
Implement the method to execute the start action
public abstract void Configure(IReadOnlyDictionary<string, object> props)
Parameters
propsIReadOnlyDictionary<string, object>The set of properties returned from Apache Kafka Connect framework: the IReadOnlyDictionary<TKey, TValue> contains the same info from configuration file.
ConfigureInternal()
Public method used from Java to trigger Configure(Map<String, object>)
public void ConfigureInternal()
Test(ConnectRecord)
public virtual bool Test(ConnectRecord record)
Parameters
recordConnectRecord
Returns
Test(SinkRecord)
Implements the behavior of Test(ConnectRecord) for record
public virtual bool Test(SinkRecord record)
Parameters
recordSinkRecordThe SinkRecord to test
Returns
- bool
Follow specifications of Test(ConnectRecord)
Remarks
If the method is overridden never invoke the base method othrwise an exception is raised within the JVM.
Test(SourceRecord)
Implements the behavior of Test(ConnectRecord) for record
public virtual bool Test(SourceRecord record)
Parameters
recordSourceRecordThe SourceRecord to test
Returns
- bool
Follow specifications of Test(ConnectRecord)
Remarks
If the method is overridden never invoke the base method othrwise an exception is raised within the JVM.
TestInternal()
Public method used from Java to trigger Test(ConnectRecord)
public bool TestInternal()
Returns
ToStringInternal()
Public method used from Java to trigger ToStringInternal()
public string ToStringInternal()
Returns
ToStringPredicate()
Returns a formatted string used from Predicate
public virtual string ToStringPredicate()
Returns
- string
The formatted string
Version()
Not implemented
public string Version()
Returns
Exceptions
- NotImplementedException
Invoked in Java before any initialization