Table of Contents

Class KNetTransformation

Namespace
MASES.KNet.Connect.Transforms
Assembly
MASES.KNet.dll

The generic class which is the base of all transformations in .NET

public abstract class KNetTransformation : KNetCommon, IKNetCommon, IKNetConnectLogging, IKNetTransformation, ITransformation, IVersion
Inheritance
KNetTransformation
Implements
Inherited Members

Properties

ReflectedRemoteObjectClassName

Set the ReflectedRemoteObjectClassName of the connector to a fixed value

protected override sealed string ReflectedRemoteObjectClassName { get; }

Property Value

string

Methods

Apply(ConnectRecord)

public virtual ConnectRecord Apply(ConnectRecord record)

Parameters

record ConnectRecord

Returns

ConnectRecord

ConnectRecord

Apply(SinkRecord)

Implements the behavior of Apply(ConnectRecord) for record

public virtual SinkRecord Apply(SinkRecord record)

Parameters

record SinkRecord

The SinkRecord to test

Returns

SinkRecord

Follow specifications of Apply(ConnectRecord)

Remarks

If the method is overridden never invoke the base method othrwise an exception is raised within the JVM.

Apply(SourceRecord)

Implements the behavior of Apply(ConnectRecord) for record

public virtual SourceRecord Apply(SourceRecord record)

Parameters

record SourceRecord

The SourceRecord to test

Returns

SourceRecord

Follow specifications of Apply(ConnectRecord)

Remarks

If the method is overridden never invoke the base method othrwise an exception is raised within the JVM.

Close()

Implement the method to execute the stop action

public virtual void Close()

Configure(Map<String, object>)

Not implemented

public virtual void Configure(Map<String, object> props)

Parameters

props Map<String, object>

Exceptions

NotImplementedException

Local version with a different signature

Configure(IKNetConfigurationFromMap)

Implement the method to execute the start action

public abstract void Configure(IKNetConfigurationFromMap configuration)

Parameters

configuration IKNetConfigurationFromMap

The IKNetConfigurationFromMap to access the properties returned from Apache Kafka Connect framework: the Properties contains the same info from configuration file.