Table of Contents

Class SourceRecord<TKey, TValue>

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

SourceRecord<TKey, TValue> are generated by KNetSourceTask<TTask> and passed to Kafka Connect for storage in Kafka. In addition to the standard fields in ConnectRecord<R, TKey, TValue> which specify where data is stored in Kafka, they also include a sourcePartition and sourceOffset.

public class SourceRecord<TKey, TValue> : SourceRecord<object, object, TKey, TValue>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition

Type Parameters

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<SourceRecord<TKey, TValue>, TKey, TValue>>
ConnectRecord<SourceRecord<TKey, TValue>, TKey, TValue>
SourceRecord<object, object, TKey, TValue>
SourceRecord<TKey, TValue>
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Inherited Members
JVMBridgeBase<ConnectRecord<SourceRecord<TKey, TValue>, TKey, TValue>>.IsAssignableFrom(IJavaType)
JVMBridgeBase<ConnectRecord<SourceRecord<TKey, TValue>, TKey, TValue>>.IsAssignableFrom<T>()
JVMBridgeBase<ConnectRecord<SourceRecord<TKey, TValue>, TKey, TValue>>.Execute<T>(params T[])
JVMBridgeBase<ConnectRecord<SourceRecord<TKey, TValue>, TKey, TValue>>.DynBridgeClazz
JVMBridgeBase<ConnectRecord<SourceRecord<TKey, TValue>, 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.Execute<T>(params T[])
JVMBridgeBase.Dispose()
JVMBridgeBase.ToString()
JVMBridgeBase.GetHashCode()
JVMBridgeBase.Notify()
JVMBridgeBase.NotifyAll()
JVMBridgeBase.Wait()
JVMBridgeBase.DynBridgeInstance
JVMBridgeBase.BridgeInstance
JVMBridgeBase.IsBridgeInterface
JVMBridgeBase.IsBridgeStatic
JVMBridgeBase.IsBridgeCloseable
JVMBridgeBase.IsBridgeListener
Extension Methods

Constructors

SourceRecord(Map<String, object>, Map<String, object>, string, Schema, TKey?, Schema, TValue?)

public SourceRecord(Map<String, object> sourcePartition, Map<String, object> sourceOffset, string topic, Schema keySchema, TKey? key, Schema valueSchema, TValue? value)

Parameters

sourcePartition Map<String, object>

The parameter represents a single input sourcePartition that the record came from (e.g. a filename, table name, or topic-partition).

sourceOffset Map<String, object>

The parameter represents a position in that sourcePartition which can be used to resume consumption of data.

topic string

The name of the topic; may be null

keySchema Schema

The schema for the key; may be null

key TKey

The key; may be null

valueSchema Schema

The schema for the value; may be null

value TValue

The value; may be null

SourceRecord(Map<String, object>, Map<String, object>, string, Schema, TValue?)

public SourceRecord(Map<String, object> sourcePartition, Map<String, object> sourceOffset, string topic, Schema valueSchema, TValue? value)

Parameters

sourcePartition Map<String, object>

The parameter represents a single input sourcePartition that the record came from (e.g. a filename, table name, or topic-partition).

sourceOffset Map<String, object>

The parameter represents a position in that sourcePartition which can be used to resume consumption of data.

topic string

The name of the topic; may be null

valueSchema Schema

The schema for the value; may be null

value TValue

The value; may be null

SourceRecord(Map<String, object>, Map<String, object>, string, int?, Schema, TKey?, Schema, TValue?)

public SourceRecord(Map<String, object> sourcePartition, Map<String, object> sourceOffset, string topic, int? partition, Schema keySchema, TKey? key, Schema valueSchema, TValue? value)

Parameters

sourcePartition Map<String, object>

The parameter represents a single input sourcePartition that the record came from (e.g. a filename, table name, or topic-partition).

sourceOffset Map<String, object>

The parameter represents a position in that sourcePartition which can be used to resume consumption of data.

topic string

The name of the topic; may be null

partition int?

The partition number for the Kafka topic; may be null

keySchema Schema

The schema for the key; may be null

key TKey

The key; may be null

valueSchema Schema

The schema for the value; may be null

value TValue

The value; may be null

SourceRecord(Map<String, object>, Map<String, object>, string, int?, Schema, TKey?, Schema, TValue?, DateTime)

public SourceRecord(Map<String, object> sourcePartition, Map<String, object> sourceOffset, string topic, int? partition, Schema keySchema, TKey? key, Schema valueSchema, TValue? value, DateTime timestamp)

Parameters

sourcePartition Map<String, object>

The parameter represents a single input sourcePartition that the record came from (e.g. a filename, table name, or topic-partition).

sourceOffset Map<String, object>

The parameter represents a position in that sourcePartition which can be used to resume consumption of data.

topic string

The name of the topic; may be null

partition int?

The partition number for the Kafka topic; may be null

keySchema Schema

The schema for the key; may be null

key TKey

The key; may be null

valueSchema Schema

The schema for the value; may be null

value TValue

The value; may be null

timestamp DateTime

The timestamp; may be null

SourceRecord(Map<String, object>, Map<String, object>, string, int?, Schema, TKey?, Schema, TValue?, DateTime, Headers)

public SourceRecord(Map<String, object> sourcePartition, Map<String, object> sourceOffset, string topic, int? partition, Schema keySchema, TKey? key, Schema valueSchema, TValue? value, DateTime timestamp, Headers headers)

Parameters

sourcePartition Map<String, object>

The parameter represents a single input sourcePartition that the record came from (e.g. a filename, table name, or topic-partition).

sourceOffset Map<String, object>

The parameter represents a position in that sourcePartition which can be used to resume consumption of data.

topic string

The name of the topic; may be null

partition int?

The partition number for the Kafka topic; may be null

keySchema Schema

The schema for the key; may be null

key TKey

The key; may be null

valueSchema Schema

The schema for the value; may be null

value TValue

The value; may be null

timestamp DateTime

The timestamp; may be null

headers Headers

The Headerss; may be null or empty

SourceRecord(Map<String, object>, Map<String, object>, string, int?, Schema, TValue?)

public SourceRecord(Map<String, object> sourcePartition, Map<String, object> sourceOffset, string topic, int? partition, Schema valueSchema, TValue? value)

Parameters

sourcePartition Map<String, object>

The parameter represents a single input sourcePartition that the record came from (e.g. a filename, table name, or topic-partition).

sourceOffset Map<String, object>

The parameter represents a position in that sourcePartition which can be used to resume consumption of data.

topic string

The name of the topic; may be null

partition int?

The partition number for the Kafka topic; may be null

valueSchema Schema

The schema for the value; may be null

value TValue

The value; may be null

Properties

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

IsBridgeAbstract

public override bool IsBridgeAbstract { get; }

Property Value

bool

Operators

implicit operator SourceRecord(SourceRecord<TKey?, TValue?>)

public static implicit operator SourceRecord(SourceRecord<TKey?, TValue?> source)

Parameters

source SourceRecord<TKey, TValue>

The SourceRecord<TKey, TValue> to convert

Returns

SourceRecord