Packages

class KafkaSourceFactory[K, V] extends SourceFactory with SingleInputGenericNodeTransformation[Source] with WithCachedTopicsExistenceValidator with WithExplicitTypesToExtract

Base factory for Kafka sources with additional metadata variable. It is based on pl.touk.nussknacker.engine.api.context.transformation.SingleInputGenericNodeTransformation that allows custom ValidationContext and Context transformations, which are provided by KafkaContextInitializer Can be used for single- or multi- topic sources (as csv, see topicNameSeparator and extractTopics).

Features:

  • fetch latest N records which can be later used to test process in UI Fetching data is defined in source which may extends pl.touk.nussknacker.engine.api.process.TestDataGenerator. See pl.touk.nussknacker.engine.kafka.KafkaUtils#readLastMessages
  • reset Kafka's offset to latest value - forceLatestRead property, see pl.touk.nussknacker.engine.kafka.KafkaUtils#setOffsetToLatest
K

- type of key of kafka event that is generated by raw source (SourceFunction).

V

- type of value of kafka event that is generated by raw source (SourceFunction).

Linear Supertypes
WithExplicitTypesToExtract, WithCachedTopicsExistenceValidator, TopicsExistenceValidator, SingleInputGenericNodeTransformation[Source], GenericNodeTransformation[Source], SourceFactory, Component, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. KafkaSourceFactory
  2. WithExplicitTypesToExtract
  3. WithCachedTopicsExistenceValidator
  4. TopicsExistenceValidator
  5. SingleInputGenericNodeTransformation
  6. GenericNodeTransformation
  7. SourceFactory
  8. Component
  9. Serializable
  10. Serializable
  11. AnyRef
  12. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new KafkaSourceFactory(deserializationSchemaFactory: KafkaDeserializationSchemaFactory[ConsumerRecord[K, V]], formatterFactory: RecordFormatterFactory, processObjectDependencies: ProcessObjectDependencies, implProvider: KafkaSourceImplFactory[K, V])(implicit arg0: ClassTag[K], arg1: ClassTag[V])

Type Members

  1. type DefinedParameter = DefinedSingleParameter
    Definition Classes
    SingleInputGenericNodeTransformation → GenericNodeTransformation
  2. case class FinalResults extends TransformationStepResult with Product with Serializable
    Definition Classes
    GenericNodeTransformation
  3. type InputContext = ValidationContext
    Definition Classes
    SingleInputGenericNodeTransformation → GenericNodeTransformation
  4. case class NextParameters extends TransformationStepResult with Product with Serializable
    Definition Classes
    GenericNodeTransformation
  5. type NodeTransformationDefinition = PartialFunction[TransformationStep, TransformationStepResult]
    Definition Classes
    GenericNodeTransformation
  6. type State = KafkaSourceFactoryState[K, V]
    Definition Classes
    KafkaSourceFactory → GenericNodeTransformation
  7. case class TransformationStep extends Product with Serializable
    Definition Classes
    GenericNodeTransformation
  8. sealed trait TransformationStepResult extends AnyRef
    Definition Classes
    GenericNodeTransformation

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  6. def contextTransformation(context: ValidationContext, dependencies: List[NodeDependencyValue])(implicit nodeId: NodeId): NodeTransformationDefinition

    contextTransformation should handle exceptions raised by prepareInitialParameters

    contextTransformation should handle exceptions raised by prepareInitialParameters

    Definition Classes
    KafkaSourceFactory → GenericNodeTransformation
  7. val deserializationSchemaFactory: KafkaDeserializationSchemaFactory[ConsumerRecord[K, V]]
    Attributes
    protected
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. def extractTopics(params: Map[String, Any]): List[String]

    Extracts topics from default topic parameter.

    Extracts topics from default topic parameter.

    Attributes
    protected
  11. def fallbackFinalResult(step: TransformationStep, inputContext: InputContext, outputVariable: Option[String])(implicit nodeId: NodeId): FinalResults
    Attributes
    protected
    Definition Classes
    GenericNodeTransformation
  12. val formatterFactory: RecordFormatterFactory
    Attributes
    protected
  13. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  14. def handleExceptionDuringTransformation(step: TransformationStep, inputContext: InputContext, outputVariable: Option[String], ex: Throwable)(implicit nodeId: NodeId): FinalResults
    Definition Classes
    GenericNodeTransformation
  15. def handleExceptionInInitialParameters: List[Parameter]
    Attributes
    protected
  16. def handleUnmatchedTransformationStep(step: TransformationStep, inputContext: InputContext, outputVariable: Option[String])(implicit nodeId: NodeId): FinalResults
    Definition Classes
    GenericNodeTransformation
  17. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. val implProvider: KafkaSourceImplFactory[K, V]
    Attributes
    protected
  19. def implementation(params: Map[String, Any], dependencies: List[NodeDependencyValue], finalState: Option[State]): Source

    Common set of operations required to create basic KafkaSource.

    Common set of operations required to create basic KafkaSource.

    Definition Classes
    KafkaSourceFactory → GenericNodeTransformation
  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. val kafkaConfig: KafkaConfig
    Attributes
    protected
    Definition Classes
    KafkaSourceFactoryWithCachedTopicsExistenceValidator
  22. lazy val keyTypingResult: TypedClass
    Attributes
    protected
  23. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. def nextSteps(context: ValidationContext, dependencies: List[NodeDependencyValue])(implicit nodeId: NodeId): NodeTransformationDefinition
    Attributes
    protected
  25. def nodeDependencies: List[NodeDependency]
    Definition Classes
    KafkaSourceFactory → GenericNodeTransformation
  26. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  27. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  28. def prepareContextInitializer(dependencies: List[NodeDependencyValue], parameters: List[(String, DefinedParameter)], keyTypingResult: TypingResult, valueTypingResult: TypingResult): ContextInitializer[ConsumerRecord[K, V]]
    Attributes
    protected
  29. final def prepareFinalResultWithOptionalVariable(inputContext: InputContext, outputVariable: Option[(String, TypingResult)], state: Option[State])(implicit nodeId: NodeId): FinalResults
    Attributes
    protected
    Definition Classes
    GenericNodeTransformation
  30. def prepareInitialParameters: List[Parameter]

    Basic implementation of definition of single topic parameter.

    Basic implementation of definition of single topic parameter. In case of fetching topics from external repository: return list of topics or raise exception.

    Attributes
    protected
  31. def prepareSourceFinalErrors(context: ValidationContext, dependencies: List[NodeDependencyValue], parameters: List[(String, DefinedParameter)], errors: List[ProcessCompilationError])(implicit nodeId: NodeId): FinalResults
    Attributes
    protected
  32. def prepareSourceFinalResults(context: ValidationContext, dependencies: List[NodeDependencyValue], parameters: List[(String, DefinedParameter)], keyTypingResult: TypingResult, valueTypingResult: TypingResult, errors: List[ProcessCompilationError])(implicit nodeId: NodeId): FinalResults
    Attributes
    protected
  33. val processObjectDependencies: ProcessObjectDependencies
    Attributes
    protected
  34. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  35. def toString(): String
    Definition Classes
    AnyRef → Any
  36. val topicNameSeparator: String
    Attributes
    protected
  37. val topicParameter: ParameterWithExtractor[String]
    Attributes
    protected
  38. def topicsValidationErrors(topic: String)(implicit nodeId: NodeId): List[CustomNodeError]
    Attributes
    protected
  39. def typesToExtract: List[TypedClass]
    Definition Classes
    KafkaSourceFactory → WithExplicitTypesToExtract
  40. final def validateTopic(topic: String): Validated[TopicExistenceValidationException, String]
    Definition Classes
    TopicsExistenceValidator
  41. final def validateTopics(topics: List[String]): Validated[TopicExistenceValidationException, List[String]]
  42. lazy val validator: CachedTopicsExistenceValidator
    Attributes
    protected
    Definition Classes
    WithCachedTopicsExistenceValidator
  43. lazy val valueTypingResult: TypedClass
    Attributes
    protected
  44. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  46. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  47. object FinalResults extends Serializable
    Definition Classes
    GenericNodeTransformation

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from WithExplicitTypesToExtract

Inherited from TopicsExistenceValidator

Inherited from SingleInputGenericNodeTransformation[Source]

Inherited from GenericNodeTransformation[Source]

Inherited from SourceFactory

Inherited from Component

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped