Table of Contents

Class TimestampExtractor<K, V, TJVMK, TJVMV>

Namespace
MASES.KNet.Streams.Processor
Assembly
MASES.KNet.dll

KNet extension of TimestampExtractor

public class TimestampExtractor<K, V, TJVMK, TJVMV> : TimestampExtractor, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, ITimestampExtractor, IJVMBridgeBase, IJVMBridgeDefinition, IGenericSerDesFactoryApplier

Type Parameters

K

The key type

V

The value type

TJVMK

The JVM type of K

TJVMV

The JVM type of V

Inheritance
TimestampExtractor<K, V, TJVMK, TJVMV>
Implements
Inherited Members

Properties

OnExtract

public Func<TimestampExtractor<K, V, TJVMK, TJVMV>, DateTime> OnExtract { get; set; }

Property Value

Func<TimestampExtractor<K, V, TJVMK, TJVMV>, DateTime>

Remarks

If OnExtract has a value it takes precedence over corresponding class method

PartitionTime

The highest extracted valid DateTime of the current record's partition˙ (could be null if unknown)

public DateTime? PartitionTime { get; }

Property Value

DateTime?

Record

public ConsumerRecord<K, V, TJVMK, TJVMV> Record { get; }

Property Value

ConsumerRecord<K, V, TJVMK, TJVMV>

Methods

Extract()

public virtual DateTime Extract()

Returns

DateTime

The DateTime timestamp of the record

Extract(ConsumerRecord<object, object>, long)

public override sealed long Extract(ConsumerRecord<object, object> arg0, long arg1)

Parameters

arg0 ConsumerRecord<object, object>

ConsumerRecord

arg1 long

long

Returns

long

long