class KafkaContextInitializer[K, V] extends BasicContextInitializer[ConsumerRecord[K, V]]
KafkaContextInitializer initializes Context variables with data provided in raw kafka event (see org.apache.kafka.clients.consumer.ConsumerRecord). It is used when flink source function produces stream of ConsumerRecord (deserialized to proper key-value data types). Produces pl.touk.nussknacker.engine.api.Context with two variables: - default "input" variable which is set up with ConsumerRecord.value - metadata of kafka event, see InputMeta
- K
- type of key of deserialized ConsumerRecord
- V
- type of value of deserialized ConsumerRecord
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- KafkaContextInitializer
- BasicContextInitializer
- ContextInitializer
- Serializable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new KafkaContextInitializer(outputVariableName: String, keyTypingResult: TypingResult, valueTypingResult: TypingResult)
- keyTypingResult
- provides information on key type to specify metadata variable
- valueTypingResult
- provides information on value type to specify main "#input" variable
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def initContext(contextIdGenerator: ContextIdGenerator): ContextInitializingFunction[ConsumerRecord[K, V]]
- Definition Classes
- KafkaContextInitializer → BasicContextInitializer → ContextInitializer
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- val outputVariableName: String
- Attributes
- protected
- Definition Classes
- BasicContextInitializer
- val outputVariableType: TypingResult
- Attributes
- protected
- Definition Classes
- BasicContextInitializer
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def validationContext(context: ValidationContext)(implicit nodeId: NodeId): ValidatedNel[ProcessCompilationError, ValidationContext]
- Definition Classes
- KafkaContextInitializer → BasicContextInitializer → ContextInitializer
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)