Interface IKNetSourceTask
Helper interface for KNetSourceTask<TTask>
public interface IKNetSourceTask : IKNetTask, ITask, IKNetCommon, IKNetConnectLogging
- Inherited Members
Properties
UseOnlyAsync
Implement the method to declare if out-of-sync feature will be used: it will be set once within KNetSourceTask<TTask> invocation of Start(IReadOnlyDictionary<string, string>)
bool UseOnlyAsync { get; }
Property Value
- bool
Returning true will use the out-of-sync feature, otherwise returning false the feature is disabled which is the default behavior.
Remarks
Be aware that returning true from this method will be mutually exclusive between the usage of PushRecordAsync(SourceRecord) and invocation of Poll()
Methods
CreateAndPushRecordAsync<TValue>(string, Schema, TValue, DateTime, Map<String, object>, Map<String, object>)
Creates a new SourceRecord<TKey, TValue> and push it to JVM in async mode using PushRecordAsync(SourceRecord), i.e. without waiting the invocation of Poll to return back the list of SourceRecord
void CreateAndPushRecordAsync<TValue>(string topic, Schema valueSchema, TValue value, DateTime timestamp, Map<String, object> sourcePartition = null, Map<String, object> sourceOffset = null)
Parameters
topicstringThe name of the topic; may be null
valueSchemaSchemaThe schema for the value; may be null
valueTValueThe value; may be null
timestampDateTimeThe timestamp; may be null
sourcePartitionMap<String, object>The parameter represents a single input sourcePartition that the record came from (e.g. a filename, table name, or topic-partition).
sourceOffsetMap<String, object>The parameter represents a position in that
sourcePartitionwhich can be used to resume consumption of data.
Type Parameters
TValueThe type of value to be inserted in Kafka
Remarks
These values can have arbitrary structure and should be represented using Org.Apache.Kafka.Connect.Data.* objects (or primitive values).
CreateAndPushRecordAsync<TValue>(string, int?, Schema, TValue, DateTime, Map<String, object>, Map<String, object>)
Creates a new SourceRecord<TKey, TValue> and push it to JVM in async mode using PushRecordAsync(SourceRecord), i.e. without waiting the invocation of Poll to return back the list of SourceRecord
void CreateAndPushRecordAsync<TValue>(string topic, int? partition, Schema valueSchema, TValue value, DateTime timestamp, Map<String, object> sourcePartition = null, Map<String, object> sourceOffset = null)
Parameters
topicstringThe name of the topic; may be null
partitionint?The partition number for the Kafka topic; may be null
valueSchemaSchemaThe schema for the value; may be null
valueTValueThe value; may be null
timestampDateTimeThe timestamp; may be null
sourcePartitionMap<String, object>The parameter represents a single input sourcePartition that the record came from (e.g. a filename, table name, or topic-partition).
sourceOffsetMap<String, object>The parameter represents a position in that
sourcePartitionwhich can be used to resume consumption of data.
Type Parameters
TValueThe type of value to be inserted in Kafka
Remarks
These values can have arbitrary structure and should be represented using Org.Apache.Kafka.Connect.Data.* objects (or primitive values).
CreateAndPushRecordAsync<TKey, TValue>(string, Schema, TKey, Schema, TValue, Map<String, object>, Map<String, object>)
Creates a new SourceRecord<TKey, TValue> and push it to JVM in async mode using PushRecordAsync(SourceRecord), i.e. without waiting the invocation of Poll to return back the list of SourceRecord
void CreateAndPushRecordAsync<TKey, TValue>(string topic, Schema keySchema, TKey key, Schema valueSchema, TValue value, Map<String, object> sourcePartition = null, Map<String, object> sourceOffset = null)
Parameters
topicstringThe name of the topic; may be null
keySchemaSchemaThe schema for the key; may be null
keyTKeyThe key; may be null
valueSchemaSchemaThe schema for the value; may be null
valueTValueThe value; may be null
sourcePartitionMap<String, object>The parameter represents a single input sourcePartition that the record came from (e.g. a filename, table name, or topic-partition).
sourceOffsetMap<String, object>The parameter represents a position in that
sourcePartitionwhich can be used to resume consumption of data.
Type Parameters
TKeyThe type of the key to be inserted in Kafka
TValueThe type of value to be inserted in Kafka
Remarks
These values can have arbitrary structure and should be represented using Org.Apache.Kafka.Connect.Data.* objects (or primitive values).
CreateAndPushRecordAsync<TKey, TValue>(string, Schema, TValue, Map<String, object>, Map<String, object>)
Creates a new SourceRecord<TKey, TValue> and push it to JVM in async mode using PushRecordAsync(SourceRecord), i.e. without waiting the invocation of Poll to return back the list of SourceRecord
void CreateAndPushRecordAsync<TKey, TValue>(string topic, Schema valueSchema, TValue value, Map<String, object> sourcePartition = null, Map<String, object> sourceOffset = null)
Parameters
topicstringThe name of the topic; may be null
valueSchemaSchemaThe schema for the value; may be null
valueTValueThe value; may be null
sourcePartitionMap<String, object>The parameter represents a single input sourcePartition that the record came from (e.g. a filename, table name, or topic-partition).
sourceOffsetMap<String, object>The parameter represents a position in that
sourcePartitionwhich can be used to resume consumption of data.
Type Parameters
TKeyThe type of the key to be inserted in Kafka
TValueThe type of value to be inserted in Kafka
Remarks
These values can have arbitrary structure and should be represented using Org.Apache.Kafka.Connect.Data.* objects (or primitive values).
CreateAndPushRecordAsync<TKey, TValue>(string, int?, Schema, TKey, Schema, TValue, Map<String, object>, Map<String, object>)
Creates a new SourceRecord<TKey, TValue> and push it to JVM in async mode using PushRecordAsync(SourceRecord), i.e. without waiting the invocation of Poll to return back the list of SourceRecord
void CreateAndPushRecordAsync<TKey, TValue>(string topic, int? partition, Schema keySchema, TKey key, Schema valueSchema, TValue value, Map<String, object> sourcePartition = null, Map<String, object> sourceOffset = null)
Parameters
topicstringThe name of the topic; may be null
partitionint?The partition number for the Kafka topic; may be null
keySchemaSchemaThe schema for the key; may be null
keyTKeyThe key; may be null
valueSchemaSchemaThe schema for the value; may be null
valueTValueThe value; may be null
sourcePartitionMap<String, object>The parameter represents a single input sourcePartition that the record came from (e.g. a filename, table name, or topic-partition).
sourceOffsetMap<String, object>The parameter represents a position in that
sourcePartitionwhich can be used to resume consumption of data.
Type Parameters
TKeyThe type of the key to be inserted in Kafka
TValueThe type of value to be inserted in Kafka
Remarks
These values can have arbitrary structure and should be represented using Org.Apache.Kafka.Connect.Data.* objects (or primitive values).
CreateAndPushRecordAsync<TKey, TValue>(string, int?, Schema, TKey, Schema, TValue, DateTime, Map<String, object>, Map<String, object>)
Creates a new SourceRecord<TKey, TValue> and push it to JVM in async mode using PushRecordAsync(SourceRecord), i.e. without waiting the invocation of Poll to return back the list of SourceRecord
void CreateAndPushRecordAsync<TKey, TValue>(string topic, int? partition, Schema keySchema, TKey key, Schema valueSchema, TValue value, DateTime timestamp, Map<String, object> sourcePartition = null, Map<String, object> sourceOffset = null)
Parameters
topicstringThe name of the topic; may be null
partitionint?The partition number for the Kafka topic; may be null
keySchemaSchemaThe schema for the key; may be null
keyTKeyThe key; may be null
valueSchemaSchemaThe schema for the value; may be null
valueTValueThe value; may be null
timestampDateTimeThe timestamp; may be null
sourcePartitionMap<String, object>The parameter represents a single input sourcePartition that the record came from (e.g. a filename, table name, or topic-partition).
sourceOffsetMap<String, object>The parameter represents a position in that
sourcePartitionwhich can be used to resume consumption of data.
Type Parameters
TKeyThe type of the key to be inserted in Kafka
TValueThe type of value to be inserted in Kafka
Remarks
These values can have arbitrary structure and should be represented using Org.Apache.Kafka.Connect.Data.* objects (or primitive values).
CreateAndPushRecordAsync<TKey, TValue>(string, int?, Schema, TKey, Schema, TValue, DateTime, Headers, Map<String, object>, Map<String, object>)
Creates a new SourceRecord<TKey, TValue> and push it to JVM in async mode using PushRecordAsync(SourceRecord), i.e. without waiting the invocation of Poll to return back the list of SourceRecord
void CreateAndPushRecordAsync<TKey, TValue>(string topic, int? partition, Schema keySchema, TKey key, Schema valueSchema, TValue value, DateTime timestamp, Headers headers, Map<String, object> sourcePartition = null, Map<String, object> sourceOffset = null)
Parameters
topicstringThe name of the topic; may be null
partitionint?The partition number for the Kafka topic; may be null
keySchemaSchemaThe schema for the key; may be null
keyTKeyThe key; may be null
valueSchemaSchemaThe schema for the value; may be null
valueTValueThe value; may be null
timestampDateTimeThe timestamp; may be null
headersHeadersThe Headerss; may be null or empty
sourcePartitionMap<String, object>The parameter represents a single input sourcePartition that the record came from (e.g. a filename, table name, or topic-partition).
sourceOffsetMap<String, object>The parameter represents a position in that
sourcePartitionwhich can be used to resume consumption of data.
Type Parameters
TKeyThe type of the key to be inserted in Kafka
TValueThe type of value to be inserted in Kafka
Remarks
These values can have arbitrary structure and should be represented using Org.Apache.Kafka.Connect.Data.* objects (or primitive values).
CreateAndPushRecordAsync<TKey, TValue>(string, int?, Schema, TValue, Map<String, object>, Map<String, object>)
Creates a new SourceRecord<TKey, TValue> and push it to JVM in async mode using PushRecordAsync(SourceRecord), i.e. without waiting the invocation of Poll to return back the list of SourceRecord
void CreateAndPushRecordAsync<TKey, TValue>(string topic, int? partition, Schema valueSchema, TValue value, Map<String, object> sourcePartition = null, Map<String, object> sourceOffset = null)
Parameters
topicstringThe name of the topic; may be null
partitionint?The partition number for the Kafka topic; may be null
valueSchemaSchemaThe schema for the value; may be null
valueTValueThe value; may be null
sourcePartitionMap<String, object>The parameter represents a single input sourcePartition that the record came from (e.g. a filename, table name, or topic-partition).
sourceOffsetMap<String, object>The parameter represents a position in that
sourcePartitionwhich can be used to resume consumption of data.
Type Parameters
TKeyThe type of the key to be inserted in Kafka
TValueThe type of value to be inserted in Kafka
Remarks
These values can have arbitrary structure and should be represented using Org.Apache.Kafka.Connect.Data.* objects (or primitive values).
CreateAndPushRecordAsync<TKeySource, TOffset, TValue>(Map<String, TKeySource>, Map<String, TOffset>, string, Schema, TValue, DateTime)
Creates a new SourceRecord<TKeySource, TOffset, TKey, TValue> and push it to JVM in async mode using PushRecordAsync(SourceRecord), i.e. without waiting the invocation of Poll to return back the list of SourceRecord
void CreateAndPushRecordAsync<TKeySource, TOffset, TValue>(Map<String, TKeySource> sourcePartition, Map<String, TOffset> sourceOffset, string topic, Schema valueSchema, TValue value, DateTime timestamp)
Parameters
sourcePartitionMap<String, TKeySource>The parameter represents a single input sourcePartition that the record came from (e.g. a filename, table name, or topic-partition).
sourceOffsetMap<String, TOffset>The parameter represents a position in that
sourcePartitionwhich can be used to resume consumption of data.topicstringThe name of the topic; may be null
valueSchemaSchemaThe schema for the value; may be null
valueTValueThe value; may be null
timestampDateTimeThe timestamp; may be null
Type Parameters
TKeySourceThe type within Map<K, V> of
sourcePartitionTOffsetThe type within Map<K, V> of
sourceOffsetTValueThe type of value to be inserted in Kafka
Remarks
These values can have arbitrary structure and should be represented using Org.Apache.Kafka.Connect.Data.* objects (or primitive values).
For example, a database connector might specify the sourcePartition as a record containing { "db": "database_name", "table": "table_name"} and the sourceOffset as a long containing the timestamp of the row.
CreateAndPushRecordAsync<TKeySource, TOffset, TValue>(Map<String, TKeySource>, Map<String, TOffset>, string, int?, Schema, TValue, DateTime)
Creates a new SourceRecord<TKeySource, TOffset, TKey, TValue> and push it to JVM in async mode using PushRecordAsync(SourceRecord), i.e. without waiting the invocation of Poll to return back the list of SourceRecord
void CreateAndPushRecordAsync<TKeySource, TOffset, TValue>(Map<String, TKeySource> sourcePartition, Map<String, TOffset> sourceOffset, string topic, int? partition, Schema valueSchema, TValue value, DateTime timestamp)
Parameters
sourcePartitionMap<String, TKeySource>The parameter represents a single input sourcePartition that the record came from (e.g. a filename, table name, or topic-partition).
sourceOffsetMap<String, TOffset>The parameter represents a position in that
sourcePartitionwhich can be used to resume consumption of data.topicstringThe name of the topic; may be null
partitionint?The partition number for the Kafka topic; may be null
valueSchemaSchemaThe schema for the value; may be null
valueTValueThe value; may be null
timestampDateTimeThe timestamp; may be null
Type Parameters
TKeySourceThe type within Map<K, V> of
sourcePartitionTOffsetThe type within Map<K, V> of
sourceOffsetTValueThe type of value to be inserted in Kafka
Remarks
These values can have arbitrary structure and should be represented using Org.Apache.Kafka.Connect.Data.* objects (or primitive values).
For example, a database connector might specify the sourcePartition as a record containing { "db": "database_name", "table": "table_name"} and the sourceOffset as a long containing the timestamp of the row.
CreateAndPushRecordAsync<TKeySource, TOffset, TKey, TValue>(Map<String, TKeySource>, Map<String, TOffset>, string, Schema, TKey, Schema, TValue)
Creates a new SourceRecord<TKeySource, TOffset, TKey, TValue> and push it to JVM in async mode using PushRecordAsync(SourceRecord), i.e. without waiting the invocation of Poll to return back the list of SourceRecord
void CreateAndPushRecordAsync<TKeySource, TOffset, TKey, TValue>(Map<String, TKeySource> sourcePartition, Map<String, TOffset> sourceOffset, string topic, Schema keySchema, TKey key, Schema valueSchema, TValue value)
Parameters
sourcePartitionMap<String, TKeySource>The parameter represents a single input sourcePartition that the record came from (e.g. a filename, table name, or topic-partition).
sourceOffsetMap<String, TOffset>The parameter represents a position in that
sourcePartitionwhich can be used to resume consumption of data.topicstringThe name of the topic; may be null
keySchemaSchemaThe schema for the key; may be null
keyTKeyThe key; may be null
valueSchemaSchemaThe schema for the value; may be null
valueTValueThe value; may be null
Type Parameters
TKeySourceThe type within Map<K, V> of
sourcePartitionTOffsetThe type within Map<K, V> of
sourceOffsetTKeyThe type within Map<K, V> of
sourcePartitionTValueThe type of value to be inserted in Kafka
Remarks
These values can have arbitrary structure and should be represented using Org.Apache.Kafka.Connect.Data.* objects (or primitive values).
For example, a database connector might specify the sourcePartition as a record containing { "db": "database_name", "table": "table_name"} and the sourceOffset as a long containing the timestamp of the row.
CreateAndPushRecordAsync<TKeySource, TOffset, TKey, TValue>(Map<String, TKeySource>, Map<String, TOffset>, string, Schema, TValue)
Creates a new SourceRecord<TKeySource, TOffset, TKey, TValue> and push it to JVM in async mode using PushRecordAsync(SourceRecord), i.e. without waiting the invocation of Poll to return back the list of SourceRecord
void CreateAndPushRecordAsync<TKeySource, TOffset, TKey, TValue>(Map<String, TKeySource> sourcePartition, Map<String, TOffset> sourceOffset, string topic, Schema valueSchema, TValue value)
Parameters
sourcePartitionMap<String, TKeySource>The parameter represents a single input sourcePartition that the record came from (e.g. a filename, table name, or topic-partition).
sourceOffsetMap<String, TOffset>The parameter represents a position in that
sourcePartitionwhich can be used to resume consumption of data.topicstringThe name of the topic; may be null
valueSchemaSchemaThe schema for the value; may be null
valueTValueThe value; may be null
Type Parameters
TKeySourceThe type within Map<K, V> of
sourcePartitionTOffsetThe type within Map<K, V> of
sourceOffsetTKeyThe type within Map<K, V> of
sourcePartitionTValueThe type of value to be inserted in Kafka
Remarks
These values can have arbitrary structure and should be represented using Org.Apache.Kafka.Connect.Data.* objects (or primitive values).
For example, a database connector might specify the sourcePartition as a record containing { "db": "database_name", "table": "table_name"} and the sourceOffset as a long containing the timestamp of the row.
CreateAndPushRecordAsync<TKeySource, TOffset, TKey, TValue>(Map<String, TKeySource>, Map<String, TOffset>, string, int?, Schema, TKey, Schema, TValue)
Creates a new SourceRecord<TKeySource, TOffset, TKey, TValue> and push it to JVM in async mode using PushRecordAsync(SourceRecord), i.e. without waiting the invocation of Poll to return back the list of SourceRecord
void CreateAndPushRecordAsync<TKeySource, TOffset, TKey, TValue>(Map<String, TKeySource> sourcePartition, Map<String, TOffset> sourceOffset, string topic, int? partition, Schema keySchema, TKey key, Schema valueSchema, TValue value)
Parameters
sourcePartitionMap<String, TKeySource>The parameter represents a single input sourcePartition that the record came from (e.g. a filename, table name, or topic-partition).
sourceOffsetMap<String, TOffset>The parameter represents a position in that
sourcePartitionwhich can be used to resume consumption of data.topicstringThe name of the topic; may be null
partitionint?The partition number for the Kafka topic; may be null
keySchemaSchemaThe schema for the key; may be null
keyTKeyThe key; may be null
valueSchemaSchemaThe schema for the value; may be null
valueTValueThe value; may be null
Type Parameters
TKeySourceThe type within Map<K, V> of
sourcePartitionTOffsetThe type within Map<K, V> of
sourceOffsetTKeyThe type within Map<K, V> of
sourcePartitionTValueThe type of value to be inserted in Kafka
Remarks
These values can have arbitrary structure and should be represented using Org.Apache.Kafka.Connect.Data.* objects (or primitive values).
For example, a database connector might specify the sourcePartition as a record containing { "db": "database_name", "table": "table_name"} and the sourceOffset as a long containing the timestamp of the row.
CreateAndPushRecordAsync<TKeySource, TOffset, TKey, TValue>(Map<String, TKeySource>, Map<String, TOffset>, string, int?, Schema, TKey, Schema, TValue, DateTime)
Creates a new SourceRecord<TKeySource, TOffset, TKey, TValue> and push it to JVM in async mode using PushRecordAsync(SourceRecord), i.e. without waiting the invocation of Poll to return back the list of SourceRecord
void CreateAndPushRecordAsync<TKeySource, TOffset, TKey, TValue>(Map<String, TKeySource> sourcePartition, Map<String, TOffset> sourceOffset, string topic, int? partition, Schema keySchema, TKey key, Schema valueSchema, TValue value, DateTime timestamp)
Parameters
sourcePartitionMap<String, TKeySource>The parameter represents a single input sourcePartition that the record came from (e.g. a filename, table name, or topic-partition).
sourceOffsetMap<String, TOffset>The parameter represents a position in that
sourcePartitionwhich can be used to resume consumption of data.topicstringThe name of the topic; may be null
partitionint?The partition number for the Kafka topic; may be null
keySchemaSchemaThe schema for the key; may be null
keyTKeyThe key; may be null
valueSchemaSchemaThe schema for the value; may be null
valueTValueThe value; may be null
timestampDateTimeThe timestamp; may be null
Type Parameters
TKeySourceThe type within Map<K, V> of
sourcePartitionTOffsetThe type within Map<K, V> of
sourceOffsetTKeyThe type within Map<K, V> of
sourcePartitionTValueThe type of value to be inserted in Kafka
Remarks
These values can have arbitrary structure and should be represented using Org.Apache.Kafka.Connect.Data.* objects (or primitive values).
For example, a database connector might specify the sourcePartition as a record containing { "db": "database_name", "table": "table_name"} and the sourceOffset as a long containing the timestamp of the row.
CreateAndPushRecordAsync<TKeySource, TOffset, TKey, TValue>(Map<String, TKeySource>, Map<String, TOffset>, string, int?, Schema, TKey, Schema, TValue, DateTime, Headers)
Creates a new SourceRecord<TKeySource, TOffset, TKey, TValue> and push it to JVM in async mode using PushRecordAsync(SourceRecord), i.e. without waiting the invocation of Poll to return back the list of SourceRecord
void CreateAndPushRecordAsync<TKeySource, TOffset, TKey, TValue>(Map<String, TKeySource> sourcePartition, Map<String, TOffset> sourceOffset, string topic, int? partition, Schema keySchema, TKey key, Schema valueSchema, TValue value, DateTime timestamp, Headers headers)
Parameters
sourcePartitionMap<String, TKeySource>The parameter represents a single input sourcePartition that the record came from (e.g. a filename, table name, or topic-partition).
sourceOffsetMap<String, TOffset>The parameter represents a position in that
sourcePartitionwhich can be used to resume consumption of data.topicstringThe name of the topic; may be null
partitionint?The partition number for the Kafka topic; may be null
keySchemaSchemaThe schema for the key; may be null
keyTKeyThe key; may be null
valueSchemaSchemaThe schema for the value; may be null
valueTValueThe value; may be null
timestampDateTimeThe timestamp; may be null
headersHeadersThe Headerss; may be null or empty
Type Parameters
TKeySourceThe type within Map<K, V> of
sourcePartitionTOffsetThe type within Map<K, V> of
sourceOffsetTKeyThe type within Map<K, V> of
sourcePartitionTValueThe type of value to be inserted in Kafka
Remarks
These values can have arbitrary structure and should be represented using Org.Apache.Kafka.Connect.Data.* objects (or primitive values).
For example, a database connector might specify the sourcePartition as a record containing { "db": "database_name", "table": "table_name"} and the sourceOffset as a long containing the timestamp of the row.
CreateAndPushRecordAsync<TKeySource, TOffset, TKey, TValue>(Map<String, TKeySource>, Map<String, TOffset>, string, int?, Schema, TValue)
Creates a new SourceRecord<TKeySource, TOffset, TKey, TValue> and push it to JVM in async mode using PushRecordAsync(SourceRecord), i.e. without waiting the invocation of Poll to return back the list of SourceRecord
void CreateAndPushRecordAsync<TKeySource, TOffset, TKey, TValue>(Map<String, TKeySource> sourcePartition, Map<String, TOffset> sourceOffset, string topic, int? partition, Schema valueSchema, TValue value)
Parameters
sourcePartitionMap<String, TKeySource>The parameter represents a single input sourcePartition that the record came from (e.g. a filename, table name, or topic-partition).
sourceOffsetMap<String, TOffset>The parameter represents a position in that
sourcePartitionwhich can be used to resume consumption of data.topicstringThe name of the topic; may be null
partitionint?The partition number for the Kafka topic; may be null
valueSchemaSchemaThe schema for the value; may be null
valueTValueThe value; may be null
Type Parameters
TKeySourceThe type within Map<K, V> of
sourcePartitionTOffsetThe type within Map<K, V> of
sourceOffsetTKeyThe type of the key to be inserted in Kafka
TValueThe type of value to be inserted in Kafka
Remarks
These values can have arbitrary structure and should be represented using Org.Apache.Kafka.Connect.Data.* objects (or primitive values).
For example, a database connector might specify the sourcePartition as a record containing { "db": "database_name", "table": "table_name"} and the sourceOffset as a long containing the timestamp of the row.
CreateAndPushRecord<TValue>(string, Schema, TValue, DateTime, Map<String, object>, Map<String, object>)
Creates a new SourceRecord<TKey, TValue> and push it to JVM
void CreateAndPushRecord<TValue>(string topic, Schema valueSchema, TValue value, DateTime timestamp, Map<String, object> sourcePartition = null, Map<String, object> sourceOffset = null)
Parameters
topicstringThe name of the topic; may be null
valueSchemaSchemaThe schema for the value; may be null
valueTValueThe value; may be null
timestampDateTimeThe timestamp; may be null
sourcePartitionMap<String, object>The parameter represents a single input sourcePartition that the record came from (e.g. a filename, table name, or topic-partition).
sourceOffsetMap<String, object>The parameter represents a position in that
sourcePartitionwhich can be used to resume consumption of data.
Type Parameters
TValueThe type of value to be inserted in Kafka
Remarks
These values can have arbitrary structure and should be represented using Org.Apache.Kafka.Connect.Data.* objects (or primitive values).
CreateAndPushRecord<TValue>(string, int?, Schema, TValue, DateTime, Map<String, object>, Map<String, object>)
Creates a new SourceRecord<TKey, TValue> and push it to JVM
void CreateAndPushRecord<TValue>(string topic, int? partition, Schema valueSchema, TValue value, DateTime timestamp, Map<String, object> sourcePartition = null, Map<String, object> sourceOffset = null)
Parameters
topicstringThe name of the topic; may be null
partitionint?The partition number for the Kafka topic; may be null
valueSchemaSchemaThe schema for the value; may be null
valueTValueThe value; may be null
timestampDateTimeThe timestamp; may be null
sourcePartitionMap<String, object>The parameter represents a single input sourcePartition that the record came from (e.g. a filename, table name, or topic-partition).
sourceOffsetMap<String, object>The parameter represents a position in that
sourcePartitionwhich can be used to resume consumption of data.
Type Parameters
TValueThe type of value to be inserted in Kafka
Remarks
These values can have arbitrary structure and should be represented using Org.Apache.Kafka.Connect.Data.* objects (or primitive values).
CreateAndPushRecord<TKey, TValue>(string, Schema, TKey, Schema, TValue, Map<String, object>, Map<String, object>)
Creates a new SourceRecord<TKey, TValue> and push it to JVM
void CreateAndPushRecord<TKey, TValue>(string topic, Schema keySchema, TKey key, Schema valueSchema, TValue value, Map<String, object> sourcePartition = null, Map<String, object> sourceOffset = null)
Parameters
topicstringThe name of the topic; may be null
keySchemaSchemaThe schema for the key; may be null
keyTKeyThe key; may be null
valueSchemaSchemaThe schema for the value; may be null
valueTValueThe value; may be null
sourcePartitionMap<String, object>The parameter represents a single input sourcePartition that the record came from (e.g. a filename, table name, or topic-partition).
sourceOffsetMap<String, object>The parameter represents a position in that
sourcePartitionwhich can be used to resume consumption of data.
Type Parameters
TKeyThe type of the key to be inserted in Kafka
TValueThe type of value to be inserted in Kafka
Remarks
These values can have arbitrary structure and should be represented using Org.Apache.Kafka.Connect.Data.* objects (or primitive values).
CreateAndPushRecord<TKey, TValue>(string, Schema, TValue, Map<String, object>, Map<String, object>)
Creates a new SourceRecord<TKey, TValue> and push it to JVM
void CreateAndPushRecord<TKey, TValue>(string topic, Schema valueSchema, TValue value, Map<String, object> sourcePartition = null, Map<String, object> sourceOffset = null)
Parameters
topicstringThe name of the topic; may be null
valueSchemaSchemaThe schema for the value; may be null
valueTValueThe value; may be null
sourcePartitionMap<String, object>The parameter represents a single input sourcePartition that the record came from (e.g. a filename, table name, or topic-partition).
sourceOffsetMap<String, object>The parameter represents a position in that
sourcePartitionwhich can be used to resume consumption of data.
Type Parameters
TKeyThe type of the key to be inserted in Kafka
TValueThe type of value to be inserted in Kafka
Remarks
These values can have arbitrary structure and should be represented using Org.Apache.Kafka.Connect.Data.* objects (or primitive values).
CreateAndPushRecord<TKey, TValue>(string, int?, Schema, TKey, Schema, TValue, Map<String, object>, Map<String, object>)
Creates a new SourceRecord<TKey, TValue> and push it to JVM
void CreateAndPushRecord<TKey, TValue>(string topic, int? partition, Schema keySchema, TKey key, Schema valueSchema, TValue value, Map<String, object> sourcePartition = null, Map<String, object> sourceOffset = null)
Parameters
topicstringThe name of the topic; may be null
partitionint?The partition number for the Kafka topic; may be null
keySchemaSchemaThe schema for the key; may be null
keyTKeyThe key; may be null
valueSchemaSchemaThe schema for the value; may be null
valueTValueThe value; may be null
sourcePartitionMap<String, object>The parameter represents a single input sourcePartition that the record came from (e.g. a filename, table name, or topic-partition).
sourceOffsetMap<String, object>The parameter represents a position in that
sourcePartitionwhich can be used to resume consumption of data.
Type Parameters
TKeyThe type of the key to be inserted in Kafka
TValueThe type of value to be inserted in Kafka
Remarks
These values can have arbitrary structure and should be represented using Org.Apache.Kafka.Connect.Data.* objects (or primitive values).
CreateAndPushRecord<TKey, TValue>(string, int?, Schema, TKey, Schema, TValue, DateTime, Map<String, object>, Map<String, object>)
Creates a new SourceRecord<TKey, TValue> and push it to JVM
void CreateAndPushRecord<TKey, TValue>(string topic, int? partition, Schema keySchema, TKey key, Schema valueSchema, TValue value, DateTime timestamp, Map<String, object> sourcePartition = null, Map<String, object> sourceOffset = null)
Parameters
topicstringThe name of the topic; may be null
partitionint?The partition number for the Kafka topic; may be null
keySchemaSchemaThe schema for the key; may be null
keyTKeyThe key; may be null
valueSchemaSchemaThe schema for the value; may be null
valueTValueThe value; may be null
timestampDateTimeThe timestamp; may be null
sourcePartitionMap<String, object>The parameter represents a single input sourcePartition that the record came from (e.g. a filename, table name, or topic-partition).
sourceOffsetMap<String, object>The parameter represents a position in that
sourcePartitionwhich can be used to resume consumption of data.
Type Parameters
TKeyThe type of the key to be inserted in Kafka
TValueThe type of value to be inserted in Kafka
Remarks
These values can have arbitrary structure and should be represented using Org.Apache.Kafka.Connect.Data.* objects (or primitive values).
CreateAndPushRecord<TKey, TValue>(string, int?, Schema, TKey, Schema, TValue, DateTime, Headers, Map<String, object>, Map<String, object>)
Creates a new SourceRecord<TKey, TValue> and push it to JVM
void CreateAndPushRecord<TKey, TValue>(string topic, int? partition, Schema keySchema, TKey key, Schema valueSchema, TValue value, DateTime timestamp, Headers headers, Map<String, object> sourcePartition = null, Map<String, object> sourceOffset = null)
Parameters
topicstringThe name of the topic; may be null
partitionint?The partition number for the Kafka topic; may be null
keySchemaSchemaThe schema for the key; may be null
keyTKeyThe key; may be null
valueSchemaSchemaThe schema for the value; may be null
valueTValueThe value; may be null
timestampDateTimeThe timestamp; may be null
headersHeadersThe Headerss; may be null or empty
sourcePartitionMap<String, object>The parameter represents a single input sourcePartition that the record came from (e.g. a filename, table name, or topic-partition).
sourceOffsetMap<String, object>The parameter represents a position in that
sourcePartitionwhich can be used to resume consumption of data.
Type Parameters
TKeyThe type of the key to be inserted in Kafka
TValueThe type of value to be inserted in Kafka
Remarks
These values can have arbitrary structure and should be represented using Org.Apache.Kafka.Connect.Data.* objects (or primitive values).
CreateAndPushRecord<TKey, TValue>(string, int?, Schema, TValue, Map<String, object>, Map<String, object>)
Creates a new SourceRecord<TKey, TValue> and push it to JVM
void CreateAndPushRecord<TKey, TValue>(string topic, int? partition, Schema valueSchema, TValue value, Map<String, object> sourcePartition = null, Map<String, object> sourceOffset = null)
Parameters
topicstringThe name of the topic; may be null
partitionint?The partition number for the Kafka topic; may be null
valueSchemaSchemaThe schema for the value; may be null
valueTValueThe value; may be null
sourcePartitionMap<String, object>The parameter represents a single input sourcePartition that the record came from (e.g. a filename, table name, or topic-partition).
sourceOffsetMap<String, object>The parameter represents a position in that
sourcePartitionwhich can be used to resume consumption of data.
Type Parameters
TKeyThe type of the key to be inserted in Kafka
TValueThe type of value to be inserted in Kafka
Remarks
These values can have arbitrary structure and should be represented using Org.Apache.Kafka.Connect.Data.* objects (or primitive values).
CreateAndPushRecord<TKeySource, TOffset, TValue>(Map<String, TKeySource>, Map<String, TOffset>, string, Schema, TValue, DateTime)
Creates a new SourceRecord<TKeySource, TOffset, TKey, TValue> and push it to JVM
void CreateAndPushRecord<TKeySource, TOffset, TValue>(Map<String, TKeySource> sourcePartition, Map<String, TOffset> sourceOffset, string topic, Schema valueSchema, TValue value, DateTime timestamp)
Parameters
sourcePartitionMap<String, TKeySource>The parameter represents a single input sourcePartition that the record came from (e.g. a filename, table name, or topic-partition).
sourceOffsetMap<String, TOffset>The parameter represents a position in that
sourcePartitionwhich can be used to resume consumption of data.topicstringThe name of the topic; may be null
valueSchemaSchemaThe schema for the value; may be null
valueTValueThe value; may be null
timestampDateTimeThe timestamp; may be null
Type Parameters
TKeySourceThe type within Map<K, V> of
sourcePartitionTOffsetThe type within Map<K, V> of
sourceOffsetTValueThe type of value to be inserted in Kafka
Remarks
These values can have arbitrary structure and should be represented using Org.Apache.Kafka.Connect.Data.* objects (or primitive values).
For example, a database connector might specify the sourcePartition as a record containing { "db": "database_name", "table": "table_name"} and the sourceOffset as a long containing the timestamp of the row.
CreateAndPushRecord<TKeySource, TOffset, TValue>(Map<String, TKeySource>, Map<String, TOffset>, string, int?, Schema, TValue, DateTime)
Creates a new SourceRecord<TKeySource, TOffset, TKey, TValue> and push it to JVM
void CreateAndPushRecord<TKeySource, TOffset, TValue>(Map<String, TKeySource> sourcePartition, Map<String, TOffset> sourceOffset, string topic, int? partition, Schema valueSchema, TValue value, DateTime timestamp)
Parameters
sourcePartitionMap<String, TKeySource>The parameter represents a single input sourcePartition that the record came from (e.g. a filename, table name, or topic-partition).
sourceOffsetMap<String, TOffset>The parameter represents a position in that
sourcePartitionwhich can be used to resume consumption of data.topicstringThe name of the topic; may be null
partitionint?The partition number for the Kafka topic; may be null
valueSchemaSchemaThe schema for the value; may be null
valueTValueThe value; may be null
timestampDateTimeThe timestamp; may be null
Type Parameters
TKeySourceThe type within Map<K, V> of
sourcePartitionTOffsetThe type within Map<K, V> of
sourceOffsetTValueThe type of value to be inserted in Kafka
Remarks
These values can have arbitrary structure and should be represented using Org.Apache.Kafka.Connect.Data.* objects (or primitive values).
For example, a database connector might specify the sourcePartition as a record containing { "db": "database_name", "table": "table_name"} and the sourceOffset as a long containing the timestamp of the row.
CreateAndPushRecord<TKeySource, TOffset, TKey, TValue>(Map<String, TKeySource>, Map<String, TOffset>, string, Schema, TKey, Schema, TValue)
Creates a new SourceRecord<TKeySource, TOffset, TKey, TValue> and push it to JVM
void CreateAndPushRecord<TKeySource, TOffset, TKey, TValue>(Map<String, TKeySource> sourcePartition, Map<String, TOffset> sourceOffset, string topic, Schema keySchema, TKey key, Schema valueSchema, TValue value)
Parameters
sourcePartitionMap<String, TKeySource>The parameter represents a single input sourcePartition that the record came from (e.g. a filename, table name, or topic-partition).
sourceOffsetMap<String, TOffset>The parameter represents a position in that
sourcePartitionwhich can be used to resume consumption of data.topicstringThe name of the topic; may be null
keySchemaSchemaThe schema for the key; may be null
keyTKeyThe key; may be null
valueSchemaSchemaThe schema for the value; may be null
valueTValueThe value; may be null
Type Parameters
TKeySourceThe type within Map<K, V> of
sourcePartitionTOffsetThe type within Map<K, V> of
sourceOffsetTKeyThe type within Map<K, V> of
sourcePartitionTValueThe type of value to be inserted in Kafka
Remarks
These values can have arbitrary structure and should be represented using Org.Apache.Kafka.Connect.Data.* objects (or primitive values).
For example, a database connector might specify the sourcePartition as a record containing { "db": "database_name", "table": "table_name"} and the sourceOffset as a long containing the timestamp of the row.
CreateAndPushRecord<TKeySource, TOffset, TKey, TValue>(Map<String, TKeySource>, Map<String, TOffset>, string, Schema, TValue)
Creates a new SourceRecord<TKeySource, TOffset, TKey, TValue> and push it to JVM
void CreateAndPushRecord<TKeySource, TOffset, TKey, TValue>(Map<String, TKeySource> sourcePartition, Map<String, TOffset> sourceOffset, string topic, Schema valueSchema, TValue value)
Parameters
sourcePartitionMap<String, TKeySource>The parameter represents a single input sourcePartition that the record came from (e.g. a filename, table name, or topic-partition).
sourceOffsetMap<String, TOffset>The parameter represents a position in that
sourcePartitionwhich can be used to resume consumption of data.topicstringThe name of the topic; may be null
valueSchemaSchemaThe schema for the value; may be null
valueTValueThe value; may be null
Type Parameters
TKeySourceThe type within Map<K, V> of
sourcePartitionTOffsetThe type within Map<K, V> of
sourceOffsetTKeyThe type within Map<K, V> of
sourcePartitionTValueThe type of value to be inserted in Kafka
Remarks
These values can have arbitrary structure and should be represented using Org.Apache.Kafka.Connect.Data.* objects (or primitive values).
For example, a database connector might specify the sourcePartition as a record containing { "db": "database_name", "table": "table_name"} and the sourceOffset as a long containing the timestamp of the row.
CreateAndPushRecord<TKeySource, TOffset, TKey, TValue>(Map<String, TKeySource>, Map<String, TOffset>, string, int?, Schema, TKey, Schema, TValue)
Creates a new SourceRecord<TKeySource, TOffset, TKey, TValue> and push it to JVM
void CreateAndPushRecord<TKeySource, TOffset, TKey, TValue>(Map<String, TKeySource> sourcePartition, Map<String, TOffset> sourceOffset, string topic, int? partition, Schema keySchema, TKey key, Schema valueSchema, TValue value)
Parameters
sourcePartitionMap<String, TKeySource>The parameter represents a single input sourcePartition that the record came from (e.g. a filename, table name, or topic-partition).
sourceOffsetMap<String, TOffset>The parameter represents a position in that
sourcePartitionwhich can be used to resume consumption of data.topicstringThe name of the topic; may be null
partitionint?The partition number for the Kafka topic; may be null
keySchemaSchemaThe schema for the key; may be null
keyTKeyThe key; may be null
valueSchemaSchemaThe schema for the value; may be null
valueTValueThe value; may be null
Type Parameters
TKeySourceThe type within Map<K, V> of
sourcePartitionTOffsetThe type within Map<K, V> of
sourceOffsetTKeyThe type within Map<K, V> of
sourcePartitionTValueThe type of value to be inserted in Kafka
Remarks
These values can have arbitrary structure and should be represented using Org.Apache.Kafka.Connect.Data.* objects (or primitive values).
For example, a database connector might specify the sourcePartition as a record containing { "db": "database_name", "table": "table_name"} and the sourceOffset as a long containing the timestamp of the row.
CreateAndPushRecord<TKeySource, TOffset, TKey, TValue>(Map<String, TKeySource>, Map<String, TOffset>, string, int?, Schema, TKey, Schema, TValue, DateTime)
Creates a new SourceRecord<TKeySource, TOffset, TKey, TValue> and push it to JVM
void CreateAndPushRecord<TKeySource, TOffset, TKey, TValue>(Map<String, TKeySource> sourcePartition, Map<String, TOffset> sourceOffset, string topic, int? partition, Schema keySchema, TKey key, Schema valueSchema, TValue value, DateTime timestamp)
Parameters
sourcePartitionMap<String, TKeySource>The parameter represents a single input sourcePartition that the record came from (e.g. a filename, table name, or topic-partition).
sourceOffsetMap<String, TOffset>The parameter represents a position in that
sourcePartitionwhich can be used to resume consumption of data.topicstringThe name of the topic; may be null
partitionint?The partition number for the Kafka topic; may be null
keySchemaSchemaThe schema for the key; may be null
keyTKeyThe key; may be null
valueSchemaSchemaThe schema for the value; may be null
valueTValueThe value; may be null
timestampDateTimeThe timestamp; may be null
Type Parameters
TKeySourceThe type within Map<K, V> of
sourcePartitionTOffsetThe type within Map<K, V> of
sourceOffsetTKeyThe type within Map<K, V> of
sourcePartitionTValueThe type of value to be inserted in Kafka
Remarks
These values can have arbitrary structure and should be represented using Org.Apache.Kafka.Connect.Data.* objects (or primitive values).
For example, a database connector might specify the sourcePartition as a record containing { "db": "database_name", "table": "table_name"} and the sourceOffset as a long containing the timestamp of the row.
CreateAndPushRecord<TKeySource, TOffset, TKey, TValue>(Map<String, TKeySource>, Map<String, TOffset>, string, int?, Schema, TKey, Schema, TValue, DateTime, Headers)
Creates a new SourceRecord<TKeySource, TOffset, TKey, TValue> and push it to JVM
void CreateAndPushRecord<TKeySource, TOffset, TKey, TValue>(Map<String, TKeySource> sourcePartition, Map<String, TOffset> sourceOffset, string topic, int? partition, Schema keySchema, TKey key, Schema valueSchema, TValue value, DateTime timestamp, Headers headers)
Parameters
sourcePartitionMap<String, TKeySource>The parameter represents a single input sourcePartition that the record came from (e.g. a filename, table name, or topic-partition).
sourceOffsetMap<String, TOffset>The parameter represents a position in that
sourcePartitionwhich can be used to resume consumption of data.topicstringThe name of the topic; may be null
partitionint?The partition number for the Kafka topic; may be null
keySchemaSchemaThe schema for the key; may be null
keyTKeyThe key; may be null
valueSchemaSchemaThe schema for the value; may be null
valueTValueThe value; may be null
timestampDateTimeThe timestamp; may be null
headersHeadersThe Headerss; may be null or empty
Type Parameters
TKeySourceThe type within Map<K, V> of
sourcePartitionTOffsetThe type within Map<K, V> of
sourceOffsetTKeyThe type within Map<K, V> of
sourcePartitionTValueThe type of value to be inserted in Kafka
Remarks
These values can have arbitrary structure and should be represented using Org.Apache.Kafka.Connect.Data.* objects (or primitive values).
For example, a database connector might specify the sourcePartition as a record containing { "db": "database_name", "table": "table_name"} and the sourceOffset as a long containing the timestamp of the row.
CreateAndPushRecord<TKeySource, TOffset, TKey, TValue>(Map<String, TKeySource>, Map<String, TOffset>, string, int?, Schema, TValue)
Creates a new SourceRecord<TKeySource, TOffset, TKey, TValue> and push it to JVM
void CreateAndPushRecord<TKeySource, TOffset, TKey, TValue>(Map<String, TKeySource> sourcePartition, Map<String, TOffset> sourceOffset, string topic, int? partition, Schema valueSchema, TValue value)
Parameters
sourcePartitionMap<String, TKeySource>The parameter represents a single input sourcePartition that the record came from (e.g. a filename, table name, or topic-partition).
sourceOffsetMap<String, TOffset>The parameter represents a position in that
sourcePartitionwhich can be used to resume consumption of data.topicstringThe name of the topic; may be null
partitionint?The partition number for the Kafka topic; may be null
valueSchemaSchemaThe schema for the value; may be null
valueTValueThe value; may be null
Type Parameters
TKeySourceThe type within Map<K, V> of
sourcePartitionTOffsetThe type within Map<K, V> of
sourceOffsetTKeyThe type of the key to be inserted in Kafka
TValueThe type of value to be inserted in Kafka
Remarks
These values can have arbitrary structure and should be represented using Org.Apache.Kafka.Connect.Data.* objects (or primitive values).
For example, a database connector might specify the sourcePartition as a record containing { "db": "database_name", "table": "table_name"} and the sourceOffset as a long containing the timestamp of the row.
CreateRecord<TValue>(string, Schema, TValue, DateTime, Map<String, object>, Map<String, object>)
Creates a new SourceRecord<TKey, TValue>
SourceRecord<object, TValue> CreateRecord<TValue>(string topic, Schema valueSchema, TValue value, DateTime timestamp, Map<String, object> sourcePartition = null, Map<String, object> sourceOffset = null)
Parameters
topicstringThe name of the topic; may be null
valueSchemaSchemaThe schema for the value; may be null
valueTValueThe value; may be null
timestampDateTimeThe timestamp; may be null
sourcePartitionMap<String, object>The parameter represents a single input sourcePartition that the record came from (e.g. a filename, table name, or topic-partition).
sourceOffsetMap<String, object>The parameter represents a position in that
sourcePartitionwhich can be used to resume consumption of data.
Returns
- SourceRecord<object, TValue>
A newvly allocated SourceRecord<TKey, TValue>
Type Parameters
TValueThe type of value to be inserted in Kafka
Remarks
These values can have arbitrary structure and should be represented using Org.Apache.Kafka.Connect.Data.* objects (or primitive values).
CreateRecord<TValue>(string, int?, Schema, TValue, DateTime, Map<String, object>, Map<String, object>)
Creates a new SourceRecord<TKey, TValue>
SourceRecord<object, TValue> CreateRecord<TValue>(string topic, int? partition, Schema valueSchema, TValue value, DateTime timestamp, Map<String, object> sourcePartition = null, Map<String, object> sourceOffset = null)
Parameters
topicstringThe name of the topic; may be null
partitionint?The partition number for the Kafka topic; may be null
valueSchemaSchemaThe schema for the value; may be null
valueTValueThe value; may be null
timestampDateTimeThe timestamp; may be null
sourcePartitionMap<String, object>The parameter represents a single input sourcePartition that the record came from (e.g. a filename, table name, or topic-partition).
sourceOffsetMap<String, object>The parameter represents a position in that
sourcePartitionwhich can be used to resume consumption of data.
Returns
- SourceRecord<object, TValue>
A newvly allocated SourceRecord<TKey, TValue>
Type Parameters
TValueThe type of value to be inserted in Kafka
Remarks
These values can have arbitrary structure and should be represented using Org.Apache.Kafka.Connect.Data.* objects (or primitive values).
CreateRecord<TKey, TValue>(string, Schema, TKey, Schema, TValue, Map<String, object>, Map<String, object>)
Creates a new SourceRecord<TKey, TValue>
SourceRecord<TKey, TValue> CreateRecord<TKey, TValue>(string topic, Schema keySchema, TKey key, Schema valueSchema, TValue value, Map<String, object> sourcePartition = null, Map<String, object> sourceOffset = null)
Parameters
topicstringThe name of the topic; may be null
keySchemaSchemaThe schema for the key; may be null
keyTKeyThe key; may be null
valueSchemaSchemaThe schema for the value; may be null
valueTValueThe value; may be null
sourcePartitionMap<String, object>The parameter represents a single input sourcePartition that the record came from (e.g. a filename, table name, or topic-partition).
sourceOffsetMap<String, object>The parameter represents a position in that
sourcePartitionwhich can be used to resume consumption of data.
Returns
- SourceRecord<TKey, TValue>
A newvly allocated SourceRecord<TKey, TValue>
Type Parameters
TKeyThe type of the key to be inserted in Kafka
TValueThe type of value to be inserted in Kafka
Remarks
These values can have arbitrary structure and should be represented using Org.Apache.Kafka.Connect.Data.* objects (or primitive values).
CreateRecord<TKey, TValue>(string, Schema, TValue, Map<String, object>, Map<String, object>)
Creates a new SourceRecord<TKey, TValue>
SourceRecord<TKey, TValue> CreateRecord<TKey, TValue>(string topic, Schema valueSchema, TValue value, Map<String, object> sourcePartition = null, Map<String, object> sourceOffset = null)
Parameters
topicstringThe name of the topic; may be null
valueSchemaSchemaThe schema for the value; may be null
valueTValueThe value; may be null
sourcePartitionMap<String, object>The parameter represents a single input sourcePartition that the record came from (e.g. a filename, table name, or topic-partition).
sourceOffsetMap<String, object>The parameter represents a position in that
sourcePartitionwhich can be used to resume consumption of data.
Returns
- SourceRecord<TKey, TValue>
A newvly allocated SourceRecord<TKey, TValue>
Type Parameters
TKeyThe type of the key to be inserted in Kafka
TValueThe type of value to be inserted in Kafka
Remarks
These values can have arbitrary structure and should be represented using Org.Apache.Kafka.Connect.Data.* objects (or primitive values).
CreateRecord<TKey, TValue>(string, int?, Schema, TKey, Schema, TValue, Map<String, object>, Map<String, object>)
Creates a new SourceRecord<TKey, TValue>
SourceRecord<TKey, TValue> CreateRecord<TKey, TValue>(string topic, int? partition, Schema keySchema, TKey key, Schema valueSchema, TValue value, Map<String, object> sourcePartition = null, Map<String, object> sourceOffset = null)
Parameters
topicstringThe name of the topic; may be null
partitionint?The partition number for the Kafka topic; may be null
keySchemaSchemaThe schema for the key; may be null
keyTKeyThe key; may be null
valueSchemaSchemaThe schema for the value; may be null
valueTValueThe value; may be null
sourcePartitionMap<String, object>The parameter represents a single input sourcePartition that the record came from (e.g. a filename, table name, or topic-partition).
sourceOffsetMap<String, object>The parameter represents a position in that
sourcePartitionwhich can be used to resume consumption of data.
Returns
- SourceRecord<TKey, TValue>
A newvly allocated SourceRecord<TKey, TValue>
Type Parameters
TKeyThe type of the key to be inserted in Kafka
TValueThe type of value to be inserted in Kafka
Remarks
These values can have arbitrary structure and should be represented using Org.Apache.Kafka.Connect.Data.* objects (or primitive values).
CreateRecord<TKey, TValue>(string, int?, Schema, TKey, Schema, TValue, DateTime, Map<String, object>, Map<String, object>)
Creates a new SourceRecord<TKey, TValue>
SourceRecord<TKey, TValue> CreateRecord<TKey, TValue>(string topic, int? partition, Schema keySchema, TKey key, Schema valueSchema, TValue value, DateTime timestamp, Map<String, object> sourcePartition = null, Map<String, object> sourceOffset = null)
Parameters
topicstringThe name of the topic; may be null
partitionint?The partition number for the Kafka topic; may be null
keySchemaSchemaThe schema for the key; may be null
keyTKeyThe key; may be null
valueSchemaSchemaThe schema for the value; may be null
valueTValueThe value; may be null
timestampDateTimeThe timestamp; may be null
sourcePartitionMap<String, object>The parameter represents a single input sourcePartition that the record came from (e.g. a filename, table name, or topic-partition).
sourceOffsetMap<String, object>The parameter represents a position in that
sourcePartitionwhich can be used to resume consumption of data.
Returns
- SourceRecord<TKey, TValue>
A newvly allocated SourceRecord<TKey, TValue>
Type Parameters
TKeyThe type of the key to be inserted in Kafka
TValueThe type of value to be inserted in Kafka
Remarks
These values can have arbitrary structure and should be represented using Org.Apache.Kafka.Connect.Data.* objects (or primitive values).
CreateRecord<TKey, TValue>(string, int?, Schema, TKey, Schema, TValue, DateTime, Headers, Map<String, object>, Map<String, object>)
Creates a new SourceRecord<TKey, TValue>
SourceRecord<TKey, TValue> CreateRecord<TKey, TValue>(string topic, int? partition, Schema keySchema, TKey key, Schema valueSchema, TValue value, DateTime timestamp, Headers headers, Map<String, object> sourcePartition = null, Map<String, object> sourceOffset = null)
Parameters
topicstringThe name of the topic; may be null
partitionint?The partition number for the Kafka topic; may be null
keySchemaSchemaThe schema for the key; may be null
keyTKeyThe key; may be null
valueSchemaSchemaThe schema for the value; may be null
valueTValueThe value; may be null
timestampDateTimeThe timestamp; may be null
headersHeadersThe Headerss; may be null or empty
sourcePartitionMap<String, object>The parameter represents a single input sourcePartition that the record came from (e.g. a filename, table name, or topic-partition).
sourceOffsetMap<String, object>The parameter represents a position in that
sourcePartitionwhich can be used to resume consumption of data.
Returns
- SourceRecord<TKey, TValue>
A newvly allocated SourceRecord<TKey, TValue>
Type Parameters
TKeyThe type of the key to be inserted in Kafka
TValueThe type of value to be inserted in Kafka
Remarks
These values can have arbitrary structure and should be represented using Org.Apache.Kafka.Connect.Data.* objects (or primitive values).
CreateRecord<TKey, TValue>(string, int?, Schema, TValue, Map<String, object>, Map<String, object>)
Creates a new SourceRecord<TKey, TValue>
SourceRecord<TKey, TValue> CreateRecord<TKey, TValue>(string topic, int? partition, Schema valueSchema, TValue value, Map<String, object> sourcePartition = null, Map<String, object> sourceOffset = null)
Parameters
topicstringThe name of the topic; may be null
partitionint?The partition number for the Kafka topic; may be null
valueSchemaSchemaThe schema for the value; may be null
valueTValueThe value; may be null
sourcePartitionMap<String, object>The parameter represents a single input sourcePartition that the record came from (e.g. a filename, table name, or topic-partition).
sourceOffsetMap<String, object>The parameter represents a position in that
sourcePartitionwhich can be used to resume consumption of data.
Returns
- SourceRecord<TKey, TValue>
A newvly allocated SourceRecord<TKey, TValue>
Type Parameters
TKeyThe type of the key to be inserted in Kafka
TValueThe type of value to be inserted in Kafka
Remarks
These values can have arbitrary structure and should be represented using Org.Apache.Kafka.Connect.Data.* objects (or primitive values).
CreateRecord<TKeySource, TOffset, TValue>(Map<String, TKeySource>, Map<String, TOffset>, string, Schema, TValue, DateTime)
Creates a new SourceRecord<TKeySource, TOffset, TKey, TValue>
SourceRecord<TKeySource, TOffset, object, TValue> CreateRecord<TKeySource, TOffset, TValue>(Map<String, TKeySource> sourcePartition, Map<String, TOffset> sourceOffset, string topic, Schema valueSchema, TValue value, DateTime timestamp)
Parameters
sourcePartitionMap<String, TKeySource>The parameter represents a single input sourcePartition that the record came from (e.g. a filename, table name, or topic-partition).
sourceOffsetMap<String, TOffset>The parameter represents a position in that
sourcePartitionwhich can be used to resume consumption of data.topicstringThe name of the topic; may be null
valueSchemaSchemaThe schema for the value; may be null
valueTValueThe value; may be null
timestampDateTimeThe timestamp; may be null
Returns
- SourceRecord<TKeySource, TOffset, object, TValue>
A newvly allocated SourceRecord<TKeySource, TOffset, TKey, TValue>
Type Parameters
TKeySourceThe type within Map<K, V> of
sourcePartitionTOffsetThe type within Map<K, V> of
sourceOffsetTValueThe type of value to be inserted in Kafka
Remarks
These values can have arbitrary structure and should be represented using Org.Apache.Kafka.Connect.Data.* objects (or primitive values).
For example, a database connector might specify the sourcePartition as a record containing { "db": "database_name", "table": "table_name"} and the sourceOffset as a long containing the timestamp of the row.
CreateRecord<TKeySource, TOffset, TValue>(Map<String, TKeySource>, Map<String, TOffset>, string, int?, Schema, TValue, DateTime)
Creates a new SourceRecord<TKeySource, TOffset, TKey, TValue>
SourceRecord<TKeySource, TOffset, object, TValue> CreateRecord<TKeySource, TOffset, TValue>(Map<String, TKeySource> sourcePartition, Map<String, TOffset> sourceOffset, string topic, int? partition, Schema valueSchema, TValue value, DateTime timestamp)
Parameters
sourcePartitionMap<String, TKeySource>The parameter represents a single input sourcePartition that the record came from (e.g. a filename, table name, or topic-partition).
sourceOffsetMap<String, TOffset>The parameter represents a position in that
sourcePartitionwhich can be used to resume consumption of data.topicstringThe name of the topic; may be null
partitionint?The partition number for the Kafka topic; may be null
valueSchemaSchemaThe schema for the value; may be null
valueTValueThe value; may be null
timestampDateTimeThe timestamp; may be null
Returns
- SourceRecord<TKeySource, TOffset, object, TValue>
A newvly allocated SourceRecord<TKeySource, TOffset, TKey, TValue>
Type Parameters
TKeySourceThe type within Map<K, V> of
sourcePartitionTOffsetThe type within Map<K, V> of
sourceOffsetTValueThe type of value to be inserted in Kafka
Remarks
These values can have arbitrary structure and should be represented using Org.Apache.Kafka.Connect.Data.* objects (or primitive values).
For example, a database connector might specify the sourcePartition as a record containing { "db": "database_name", "table": "table_name"} and the sourceOffset as a long containing the timestamp of the row.
CreateRecord<TKeySource, TOffset, TKey, TValue>(Map<String, TKeySource>, Map<String, TOffset>, string, Schema, TKey, Schema, TValue)
Creates a new SourceRecord<TKeySource, TOffset, TKey, TValue>
SourceRecord<TKeySource, TOffset, TKey, TValue> CreateRecord<TKeySource, TOffset, TKey, TValue>(Map<String, TKeySource> sourcePartition, Map<String, TOffset> sourceOffset, string topic, Schema keySchema, TKey key, Schema valueSchema, TValue value)
Parameters
sourcePartitionMap<String, TKeySource>The parameter represents a single input sourcePartition that the record came from (e.g. a filename, table name, or topic-partition).
sourceOffsetMap<String, TOffset>The parameter represents a position in that
sourcePartitionwhich can be used to resume consumption of data.topicstringThe name of the topic; may be null
keySchemaSchemaThe schema for the key; may be null
keyTKeyThe key; may be null
valueSchemaSchemaThe schema for the value; may be null
valueTValueThe value; may be null
Returns
- SourceRecord<TKeySource, TOffset, TKey, TValue>
A newvly allocated SourceRecord<TKeySource, TOffset, TKey, TValue>
Type Parameters
TKeySourceThe type within Map<K, V> of
sourcePartitionTOffsetThe type within Map<K, V> of
sourceOffsetTKeyThe type within Map<K, V> of
sourcePartitionTValueThe type of value to be inserted in Kafka
Remarks
These values can have arbitrary structure and should be represented using Org.Apache.Kafka.Connect.Data.* objects (or primitive values).
For example, a database connector might specify the sourcePartition as a record containing { "db": "database_name", "table": "table_name"} and the sourceOffset as a long containing the timestamp of the row.
CreateRecord<TKeySource, TOffset, TKey, TValue>(Map<String, TKeySource>, Map<String, TOffset>, string, Schema, TValue)
Creates a new SourceRecord<TKeySource, TOffset, TKey, TValue>
SourceRecord<TKeySource, TOffset, TKey, TValue> CreateRecord<TKeySource, TOffset, TKey, TValue>(Map<String, TKeySource> sourcePartition, Map<String, TOffset> sourceOffset, string topic, Schema valueSchema, TValue value)
Parameters
sourcePartitionMap<String, TKeySource>The parameter represents a single input sourcePartition that the record came from (e.g. a filename, table name, or topic-partition).
sourceOffsetMap<String, TOffset>The parameter represents a position in that
sourcePartitionwhich can be used to resume consumption of data.topicstringThe name of the topic; may be null
valueSchemaSchemaThe schema for the value; may be null
valueTValueThe value; may be null
Returns
- SourceRecord<TKeySource, TOffset, TKey, TValue>
A newvly allocated SourceRecord<TKeySource, TOffset, TKey, TValue>
Type Parameters
TKeySourceThe type within Map<K, V> of
sourcePartitionTOffsetThe type within Map<K, V> of
sourceOffsetTKeyThe type within Map<K, V> of
sourcePartitionTValueThe type of value to be inserted in Kafka
Remarks
These values can have arbitrary structure and should be represented using Org.Apache.Kafka.Connect.Data.* objects (or primitive values).
For example, a database connector might specify the sourcePartition as a record containing { "db": "database_name", "table": "table_name"} and the sourceOffset as a long containing the timestamp of the row.
CreateRecord<TKeySource, TOffset, TKey, TValue>(Map<String, TKeySource>, Map<String, TOffset>, string, int?, Schema, TKey, Schema, TValue)
Creates a new SourceRecord<TKeySource, TOffset, TKey, TValue>
SourceRecord<TKeySource, TOffset, TKey, TValue> CreateRecord<TKeySource, TOffset, TKey, TValue>(Map<String, TKeySource> sourcePartition, Map<String, TOffset> sourceOffset, string topic, int? partition, Schema keySchema, TKey key, Schema valueSchema, TValue value)
Parameters
sourcePartitionMap<String, TKeySource>The parameter represents a single input sourcePartition that the record came from (e.g. a filename, table name, or topic-partition).
sourceOffsetMap<String, TOffset>The parameter represents a position in that
sourcePartitionwhich can be used to resume consumption of data.topicstringThe name of the topic; may be null
partitionint?The partition number for the Kafka topic; may be null
keySchemaSchemaThe schema for the key; may be null
keyTKeyThe key; may be null
valueSchemaSchemaThe schema for the value; may be null
valueTValueThe value; may be null
Returns
- SourceRecord<TKeySource, TOffset, TKey, TValue>
A newvly allocated SourceRecord<TKeySource, TOffset, TKey, TValue>
Type Parameters
TKeySourceThe type within Map<K, V> of
sourcePartitionTOffsetThe type within Map<K, V> of
sourceOffsetTKeyThe type within Map<K, V> of
sourcePartitionTValueThe type of value to be inserted in Kafka
Remarks
These values can have arbitrary structure and should be represented using Org.Apache.Kafka.Connect.Data.* objects (or primitive values).
For example, a database connector might specify the sourcePartition as a record containing { "db": "database_name", "table": "table_name"} and the sourceOffset as a long containing the timestamp of the row.
CreateRecord<TKeySource, TOffset, TKey, TValue>(Map<String, TKeySource>, Map<String, TOffset>, string, int?, Schema, TKey, Schema, TValue, DateTime)
Creates a new SourceRecord<TKeySource, TOffset, TKey, TValue>
SourceRecord<TKeySource, TOffset, TKey, TValue> CreateRecord<TKeySource, TOffset, TKey, TValue>(Map<String, TKeySource> sourcePartition, Map<String, TOffset> sourceOffset, string topic, int? partition, Schema keySchema, TKey key, Schema valueSchema, TValue value, DateTime timestamp)
Parameters
sourcePartitionMap<String, TKeySource>The parameter represents a single input sourcePartition that the record came from (e.g. a filename, table name, or topic-partition).
sourceOffsetMap<String, TOffset>The parameter represents a position in that
sourcePartitionwhich can be used to resume consumption of data.topicstringThe name of the topic; may be null
partitionint?The partition number for the Kafka topic; may be null
keySchemaSchemaThe schema for the key; may be null
keyTKeyThe key; may be null
valueSchemaSchemaThe schema for the value; may be null
valueTValueThe value; may be null
timestampDateTimeThe timestamp; may be null
Returns
- SourceRecord<TKeySource, TOffset, TKey, TValue>
A newvly allocated SourceRecord<TKeySource, TOffset, TKey, TValue>
Type Parameters
TKeySourceThe type within Map<K, V> of
sourcePartitionTOffsetThe type within Map<K, V> of
sourceOffsetTKeyThe type within Map<K, V> of
sourcePartitionTValueThe type of value to be inserted in Kafka
Remarks
These values can have arbitrary structure and should be represented using Org.Apache.Kafka.Connect.Data.* objects (or primitive values).
For example, a database connector might specify the sourcePartition as a record containing { "db": "database_name", "table": "table_name"} and the sourceOffset as a long containing the timestamp of the row.
CreateRecord<TKeySource, TOffset, TKey, TValue>(Map<String, TKeySource>, Map<String, TOffset>, string, int?, Schema, TKey, Schema, TValue, DateTime, Headers)
Creates a new SourceRecord<TKeySource, TOffset, TKey, TValue>
SourceRecord<TKeySource, TOffset, TKey, TValue> CreateRecord<TKeySource, TOffset, TKey, TValue>(Map<String, TKeySource> sourcePartition, Map<String, TOffset> sourceOffset, string topic, int? partition, Schema keySchema, TKey key, Schema valueSchema, TValue value, DateTime timestamp, Headers headers)
Parameters
sourcePartitionMap<String, TKeySource>The parameter represents a single input sourcePartition that the record came from (e.g. a filename, table name, or topic-partition).
sourceOffsetMap<String, TOffset>The parameter represents a position in that
sourcePartitionwhich can be used to resume consumption of data.topicstringThe name of the topic; may be null
partitionint?The partition number for the Kafka topic; may be null
keySchemaSchemaThe schema for the key; may be null
keyTKeyThe key; may be null
valueSchemaSchemaThe schema for the value; may be null
valueTValueThe value; may be null
timestampDateTimeThe timestamp; may be null
headersHeadersThe Headerss; may be null or empty
Returns
- SourceRecord<TKeySource, TOffset, TKey, TValue>
A newvly allocated SourceRecord<TKeySource, TOffset, TKey, TValue>
Type Parameters
TKeySourceThe type within Map<K, V> of
sourcePartitionTOffsetThe type within Map<K, V> of
sourceOffsetTKeyThe type within Map<K, V> of
sourcePartitionTValueThe type of value to be inserted in Kafka
Remarks
These values can have arbitrary structure and should be represented using Org.Apache.Kafka.Connect.Data.* objects (or primitive values).
For example, a database connector might specify the sourcePartition as a record containing { "db": "database_name", "table": "table_name"} and the sourceOffset as a long containing the timestamp of the row.
CreateRecord<TKeySource, TOffset, TKey, TValue>(Map<String, TKeySource>, Map<String, TOffset>, string, int?, Schema, TValue)
Creates a new SourceRecord<TKeySource, TOffset, TKey, TValue>
SourceRecord<TKeySource, TOffset, TKey, TValue> CreateRecord<TKeySource, TOffset, TKey, TValue>(Map<String, TKeySource> sourcePartition, Map<String, TOffset> sourceOffset, string topic, int? partition, Schema valueSchema, TValue value)
Parameters
sourcePartitionMap<String, TKeySource>The parameter represents a single input sourcePartition that the record came from (e.g. a filename, table name, or topic-partition).
sourceOffsetMap<String, TOffset>The parameter represents a position in that
sourcePartitionwhich can be used to resume consumption of data.topicstringThe name of the topic; may be null
partitionint?The partition number for the Kafka topic; may be null
valueSchemaSchemaThe schema for the value; may be null
valueTValueThe value; may be null
Returns
- SourceRecord<TKeySource, TOffset, TKey, TValue>
A newvly allocated SourceRecord<TKeySource, TOffset, TKey, TValue>
Type Parameters
TKeySourceThe type within Map<K, V> of
sourcePartitionTOffsetThe type within Map<K, V> of
sourceOffsetTKeyThe type of the key to be inserted in Kafka
TValueThe type of value to be inserted in Kafka
Remarks
These values can have arbitrary structure and should be represented using Org.Apache.Kafka.Connect.Data.* objects (or primitive values).
For example, a database connector might specify the sourcePartition as a record containing { "db": "database_name", "table": "table_name"} and the sourceOffset as a long containing the timestamp of the row.
PushRecordAsync(SourceRecord)
If UseOnlyAsync is true, each record is accumulated in a list outside the scope of Poll() invocation.
The method can be useful in condition where records are generated in parallel, e.g. with async methods, so it becomes less useful to wait the Poll() invocation to move the records within the JVM
void PushRecordAsync(SourceRecord record)
Parameters
recordSourceRecordThe SourceRecord to be pushed in async within the JVM queue
Remarks
When the JVM will invoke its internal poll, the invocation of PushRecordAsync(SourceRecord) can be locked waiting for the JVM to return the accumulated SourceRecord