c
pl.touk.nussknacker.engine.schemedkafka.source
UniversalKafkaSourceFactory
Companion object UniversalKafkaSourceFactory
class UniversalKafkaSourceFactory extends KafkaUniversalComponentTransformer[Source, ForSource] with SourceFactory with WithExplicitTypesToExtract with UnboundedStreamComponent
This is universal kafka source - it will handle both avro and json TODO: Move it to some other module when json schema handling will be available
Linear Supertypes
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- UniversalKafkaSourceFactory
- UnboundedStreamComponent
- WithExplicitTypesToExtract
- SourceFactory
- KafkaUniversalComponentTransformer
- WithCachedTopicsExistenceValidator
- TopicsExistenceValidator
- SingleInputDynamicComponent
- DynamicComponent
- Component
- Serializable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new UniversalKafkaSourceFactory(schemaRegistryClientFactory: SchemaRegistryClientFactory, schemaBasedMessagesSerdeProvider: SchemaBasedSerdeProvider, modelDependencies: ProcessObjectDependencies, implProvider: KafkaSourceImplFactory[Any, Any])
Type Members
- type ContextTransformationDefinition = PartialFunction[TransformationStep, TransformationStepResult]
- Definition Classes
- DynamicComponent
- type DefinedParameter = DefinedSingleParameter
- Definition Classes
- SingleInputDynamicComponent → DynamicComponent
- case class FinalResults extends TransformationStepResult with Product with Serializable
- Definition Classes
- DynamicComponent
- type InputContext = ValidationContext
- Definition Classes
- SingleInputDynamicComponent → DynamicComponent
- case class NextParameters extends TransformationStepResult with Product with Serializable
- Definition Classes
- DynamicComponent
- type State = UniversalKafkaSourceFactoryState
- Definition Classes
- UniversalKafkaSourceFactory → DynamicComponent
- case class TransformationStep extends Product with Serializable
- Definition Classes
- DynamicComponent
- sealed trait TransformationStepResult extends AnyRef
- Definition Classes
- DynamicComponent
- type WithError[V] = WriterT[Id, List[ProcessCompilationError], V]
- Definition Classes
- KafkaUniversalComponentTransformer
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
- def allowedProcessingModes: AllowedProcessingModes
- Definition Classes
- UnboundedStreamComponent
- 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()
- def contextTransformation(context: ValidationContext, dependencies: List[NodeDependencyValue])(implicit nodeId: NodeId): ContextTransformationDefinition
- Definition Classes
- UniversalKafkaSourceFactory → DynamicComponent
- def determineSchemaAndType(schemaDeterminer: ParsedSchemaDeterminer, paramName: Option[ParameterName])(implicit nodeId: NodeId): Validated[ProcessCompilationError, (Option[RuntimeSchemaData[ParsedSchema]], TypingResult)]
- Attributes
- protected
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def extractPreparedTopic(params: Params): PreparedKafkaTopic[ForSource]
- Attributes
- protected
- Definition Classes
- KafkaUniversalComponentTransformer
- def fallbackFinalResult(step: TransformationStep, inputContext: InputContext, outputVariable: Option[String])(implicit nodeId: NodeId): FinalResults
- Attributes
- protected
- Definition Classes
- DynamicComponent
- lazy val fallbackVersionOptionParam: ParameterCreatorWithNoDependency with ParameterExtractor[String]
- Attributes
- protected
- Definition Classes
- KafkaUniversalComponentTransformer
- Annotations
- @transient()
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def getTopicParam(implicit nodeId: NodeId): WithError[ParameterCreatorWithNoDependency with ParameterExtractor[String]]
- Attributes
- protected
- Definition Classes
- KafkaUniversalComponentTransformer
- def getVersionParam(versions: List[Integer]): ParameterCreatorWithNoDependency with ParameterExtractor[String]
- Attributes
- protected
- Definition Classes
- KafkaUniversalComponentTransformer
- def getVersionParam(preparedTopic: PreparedKafkaTopic[ForSource])(implicit nodeId: NodeId): WithError[ParameterCreatorWithNoDependency with ParameterExtractor[String]]
- Attributes
- protected
- Definition Classes
- KafkaUniversalComponentTransformer
- def handleExceptionDuringTransformation(step: TransformationStep, inputContext: InputContext, outputVariable: Option[String], ex: Throwable)(implicit nodeId: NodeId): FinalResults
- Definition Classes
- DynamicComponent
- def handleUnmatchedTransformationStep(step: TransformationStep, inputContext: InputContext, outputVariable: Option[String])(implicit nodeId: NodeId): FinalResults
- Definition Classes
- DynamicComponent
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- val implProvider: KafkaSourceImplFactory[Any, Any]
- Attributes
- protected
- def implementation(params: Params, dependencies: List[NodeDependencyValue], finalState: Option[State]): Source
- Definition Classes
- UniversalKafkaSourceFactory → DynamicComponent
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- lazy val kafkaConfig: KafkaConfig
- Attributes
- protected
- Definition Classes
- KafkaUniversalComponentTransformer → WithCachedTopicsExistenceValidator
- Annotations
- @transient()
- val modelDependencies: ProcessObjectDependencies
- Definition Classes
- UniversalKafkaSourceFactory → KafkaUniversalComponentTransformer
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def nextSteps(context: ValidationContext, dependencies: List[NodeDependencyValue])(implicit nodeId: NodeId): ContextTransformationDefinition
- Attributes
- protected
- def nodeDependencies: List[NodeDependency]
- Definition Classes
- UniversalKafkaSourceFactory → DynamicComponent
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def paramsDeterminedAfterSchema: List[Parameter]
- Definition Classes
- UniversalKafkaSourceFactory → KafkaUniversalComponentTransformer
- def parseVersionOption(versionOptionName: String): SchemaVersionOption
- Attributes
- protected
- Definition Classes
- KafkaUniversalComponentTransformer
- def prepareContextInitializer(dependencies: List[NodeDependencyValue], parameters: List[(ParameterName, DefinedParameter)], keyTypingResult: TypingResult, valueTypingResult: TypingResult): ContextInitializer[ConsumerRecord[Any, Any]]
- Attributes
- protected
- final def prepareFinalResultWithOptionalVariable(inputContext: InputContext, outputVariable: Option[(String, TypingResult)], state: Option[State])(implicit nodeId: NodeId): FinalResults
- Attributes
- protected
- Definition Classes
- DynamicComponent
- def prepareKafkaConfig: KafkaConfig
- Attributes
- protected
- Definition Classes
- KafkaUniversalComponentTransformer
- def prepareKeySchemaDeterminer(preparedTopic: PreparedKafkaTopic[ForSource]): AvroSchemaDeterminer
- Attributes
- protected
- Definition Classes
- KafkaUniversalComponentTransformer
- def prepareSourceFinalErrors(context: ValidationContext, dependencies: List[NodeDependencyValue], parameters: List[(ParameterName, DefinedParameter)], errors: List[ProcessCompilationError])(implicit nodeId: NodeId): FinalResults
- Attributes
- protected
- def prepareSourceFinalResults(preparedTopic: PreparedKafkaTopic[ForSource], valueValidationResult: Validated[ProcessCompilationError, (Option[RuntimeSchemaData[ParsedSchema]], TypingResult)], context: ValidationContext, dependencies: List[NodeDependencyValue], parameters: List[(ParameterName, DefinedParameter)], errors: List[ProcessCompilationError])(implicit nodeId: NodeId): FinalResults
- Attributes
- protected
- def prepareTopic(topicString: String): PreparedKafkaTopic[ForSource]
- Attributes
- protected
- Definition Classes
- KafkaUniversalComponentTransformer
- def prepareUniversalKeySchemaDeterminer(preparedTopic: PreparedKafkaTopic[ForSource]): ParsedSchemaDeterminer
- Attributes
- protected
- Definition Classes
- KafkaUniversalComponentTransformer
- def prepareUniversalValueSchemaDeterminer(preparedTopic: PreparedKafkaTopic[ForSource], version: SchemaVersionOption): ParsedSchemaDeterminer
- Attributes
- protected
- Definition Classes
- KafkaUniversalComponentTransformer
- def prepareValueSchemaDeterminer(preparedTopic: PreparedKafkaTopic[ForSource], version: SchemaVersionOption): AvroSchemaDeterminer
- Attributes
- protected
- Definition Classes
- KafkaUniversalComponentTransformer
- val schemaBasedMessagesSerdeProvider: SchemaBasedSerdeProvider
- def schemaParamStep(nextParams: List[Parameter])(implicit nodeId: NodeId): ContextTransformationDefinition
- Attributes
- protected
- Definition Classes
- KafkaUniversalComponentTransformer
- lazy val schemaRegistryClient: SchemaRegistryClient
- Attributes
- protected
- Definition Classes
- KafkaUniversalComponentTransformer
- Annotations
- @transient()
- val schemaRegistryClientFactory: SchemaRegistryClientFactory
- Definition Classes
- UniversalKafkaSourceFactory → KafkaUniversalComponentTransformer
- lazy val schemaSupportDispatcher: UniversalSchemaSupportDispatcher
- Attributes
- protected
- Definition Classes
- KafkaUniversalComponentTransformer
- Annotations
- @transient()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def topicFrom(value: String): ForSource
- Attributes
- protected
- Definition Classes
- UniversalKafkaSourceFactory → KafkaUniversalComponentTransformer
- lazy val topicParamName: ParameterName
- Attributes
- protected
- Definition Classes
- KafkaUniversalComponentTransformer
- Annotations
- @transient()
- def topicParamStep(implicit nodeId: NodeId): ContextTransformationDefinition
- Attributes
- protected
- Definition Classes
- KafkaUniversalComponentTransformer
- def topicSelectionStrategy: TopicSelectionStrategy
- Attributes
- protected
- Definition Classes
- KafkaUniversalComponentTransformer
- def typesToExtract: List[TypedClass]
- Definition Classes
- UniversalKafkaSourceFactory → WithExplicitTypesToExtract
- final def validateTopic[T <: TopicName](topic: T)(implicit arg0: TopicValidationType[T]): Validated[TopicExistenceValidationException[T], T]
- Definition Classes
- TopicsExistenceValidator
- final def validateTopics[T <: TopicName](topics: NonEmptyList[T])(implicit arg0: TopicValidationType[T]): Validated[TopicExistenceValidationException[T], NonEmptyList[T]]
- Definition Classes
- WithCachedTopicsExistenceValidator → TopicsExistenceValidator
- 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])
- object FinalResults extends Serializable
- Definition Classes
- DynamicComponent
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)