Class KNetConnectExtensions
Some extension method helping to convert types
public static class KNetConnectExtensions
- Inheritance
-
KNetConnectExtensions
- Inherited Members
Methods
CastTo<TValue>(IEnumerable<SinkRecord>)
Converts an IEnumerable<T> in IEnumerable<T> of SinkRecord<TKey, TValue>
public static IEnumerable<SinkRecord<object, TValue>> CastTo<TValue>(this IEnumerable<SinkRecord> source)
Parameters
source
IEnumerable<SinkRecord>The IEnumerable<T> to convert
Returns
- IEnumerable<SinkRecord<object, TValue>>
Type Parameters
TValue
CastTo<TKey, TValue>(IEnumerable<SinkRecord>)
Converts an IEnumerable<T> in IEnumerable<T> of SinkRecord<TKey, TValue>
public static IEnumerable<SinkRecord<TKey, TValue>> CastTo<TKey, TValue>(this IEnumerable<SinkRecord> source)
Parameters
source
IEnumerable<SinkRecord>The IEnumerable<T> to convert
Returns
- IEnumerable<SinkRecord<TKey, TValue>>
Type Parameters
TKey
TValue
Convert<TKey, TValue>(IEnumerable<SourceRecord<TKey, TValue>>)
Converts an IEnumerable<T> of SourceRecord<TKey, TValue> in List<T>
public static List<SourceRecord> Convert<TKey, TValue>(this IEnumerable<SourceRecord<TKey, TValue>> source)
Parameters
source
IEnumerable<SourceRecord<TKey, TValue>>The IEnumerable<T> of SourceRecord<TKey, TValue> to convert
Returns
Type Parameters
TKey
TValue
Convert<TKeySource, TOffset, TKey, TValue>(IEnumerable<SourceRecord<TKeySource, TOffset, TKey, TValue>>)
Converts an IEnumerable<T> of SourceRecord<TKeySource, TOffset, TKey, TValue> in List<T>
public static List<SourceRecord> Convert<TKeySource, TOffset, TKey, TValue>(this IEnumerable<SourceRecord<TKeySource, TOffset, TKey, TValue>> source)
Parameters
source
IEnumerable<SourceRecord<TKeySource, TOffset, TKey, TValue>>The IEnumerable<T> of SourceRecord<TKeySource, TOffset, TKey, TValue> to convert
Returns
Type Parameters
TKeySource
TOffset
TKey
TValue
From<TKey, TValue>(SourceRecord<TKey, TValue>)
Converts an SourceRecord<TKey, TValue> in SourceRecord
public static SourceRecord From<TKey, TValue>(this SourceRecord<TKey, TValue> source)
Parameters
source
SourceRecord<TKey, TValue>The SourceRecord<TKey, TValue> to convert
Returns
Type Parameters
TKey
TValue
From<TKeySource, TOffset, TKey, TValue>(SourceRecord<TKeySource, TOffset, TKey, TValue>)
Converts an SourceRecord<TKeySource, TOffset, TKey, TValue> in SourceRecord
public static SourceRecord From<TKeySource, TOffset, TKey, TValue>(this SourceRecord<TKeySource, TOffset, TKey, TValue> source)
Parameters
source
SourceRecord<TKeySource, TOffset, TKey, TValue>The SourceRecord<TKeySource, TOffset, TKey, TValue> to convert
Returns
Type Parameters
TKeySource
TOffset
TKey
TValue