Table of Contents

Class ConnectRecord<R, TKey, TValue>

Namespace
Org.Apache.Kafka.Connect.Connector
Assembly
MASES.KNet.dll

KNet helper for ConnectRecord

public class ConnectRecord<R, TKey, TValue> : JVMBridgeBase<ConnectRecord<R, TKey, TValue>>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition where R : ConnectRecord<R, TKey, TValue>

Type Parameters

R

The class extending ConnectRecord<R, TKey, TValue>

TKey

The type of the key to be inserted in Kafka

TValue

The type of value to be inserted in Kafka

Inheritance
JVMBridgeBase
JVMBridgeBase<ConnectRecord<R, TKey, TValue>>
ConnectRecord<R, TKey, TValue>
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Derived
Inherited Members
JVMBridgeBase<ConnectRecord<R, TKey, TValue>>.IsAssignableFrom(IJavaType)
JVMBridgeBase<ConnectRecord<R, TKey, TValue>>.IsAssignableFrom<T>()
JVMBridgeBase<ConnectRecord<R, TKey, TValue>>.Execute<T>(params T[])
JVMBridgeBase<ConnectRecord<R, TKey, TValue>>.DynBridgeClazz
JVMBridgeBase<ConnectRecord<R, TKey, TValue>>.BridgeClazz
JVMBridgeBase.RuntimeClassNameOf<T>()
JVMBridgeBase.ClassNameOf<T>()
JVMBridgeBase.ClassOf<T>()
JVMBridgeBase.WrapsDirect<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn, TConverter>(IJavaObject)
JVMBridgeBase.MonitorEnter()
JVMBridgeBase.MonitorExit()
JVMBridgeBase.IsInstanceOf(IJavaType)
JVMBridgeBase.IsInstanceOf<T>()
JVMBridgeBase.RuntimeIsInstanceOf<T>()
JVMBridgeBase.CastTo<TNewClass>()
JVMBridgeBase.CastDirect<TNewClass>()
JVMBridgeBase.Dispose()
JVMBridgeBase.ToString()
JVMBridgeBase.GetHashCode()
JVMBridgeBase.Notify()
JVMBridgeBase.NotifyAll()
JVMBridgeBase.Wait()
JVMBridgeBase.DynBridgeInstance
JVMBridgeBase.BridgeInstance
JVMBridgeBase.IsBridgeInterface
JVMBridgeBase.IsBridgeStatic
JVMBridgeBase.IsBridgeCloseable
JVMBridgeBase.IsBridgeListener

Constructors

ConnectRecord()

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

public ConnectRecord()

ConnectRecord(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

protected ConnectRecord(params object[] args)

Parameters

args object[]

ConnectRecord(string, int, Schema, TKey, Schema, TValue, DateTime)

public ConnectRecord(string topic, int kafkaPartition, Schema keySchema, TKey key, Schema valueSchema, TValue value, DateTime timestamp)

Parameters

topic string
kafkaPartition int
keySchema Schema
key TKey
valueSchema Schema
value TValue
timestamp DateTime

ConnectRecord(string, int, Schema, TKey, Schema, TValue, DateTime, Headers)

public ConnectRecord(string topic, int kafkaPartition, Schema keySchema, TKey key, Schema valueSchema, TValue value, DateTime timestamp, Headers headers)

Parameters

topic string
kafkaPartition int
keySchema Schema
key TKey
valueSchema Schema
value TValue
timestamp DateTime
headers Headers

Properties

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

Headers

The Headers

public Headers Headers { get; }

Property Value

Headers

IsBridgeAbstract

public override bool IsBridgeAbstract { get; }

Property Value

bool

KafkaPartition

Partition

public int KafkaPartition { get; }

Property Value

int

Key

Key

public TKey Key { get; }

Property Value

TKey

KeySchema

KeySchema

public Schema KeySchema { get; }

Property Value

Schema

Timestamp

Timestamp

public DateTime Timestamp { get; }

Property Value

DateTime

Topic

Topic

public string Topic { get; }

Property Value

string

Value

Value

public TValue Value { get; }

Property Value

TValue

ValueSchema

ValueSchema

public Schema ValueSchema { get; }

Property Value

Schema

Methods

NewRecord(string, int, Schema, TKey, Schema, TValue, DateTime)

public R NewRecord(string topic, int kafkaPartition, Schema keySchema, TKey key, Schema valueSchema, TValue value, DateTime timestamp)

Parameters

topic string
kafkaPartition int
keySchema Schema
key TKey
valueSchema Schema
value TValue
timestamp DateTime

Returns

R

NewRecord(string, int, Schema, TKey, Schema, TValue, DateTime, Headers)

public R NewRecord(string topic, int kafkaPartition, Schema keySchema, TKey key, Schema valueSchema, TValue value, DateTime timestamp, Headers headers)

Parameters

topic string
kafkaPartition int
keySchema Schema
key TKey
valueSchema Schema
value TValue
timestamp DateTime
headers Headers

Returns

R