Class KStreamTransform.KStreamTransformProcessor<K1,​V1,​K2,​V2>

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()
      Close this processor and clean up any resources.
      void init​(ProcessorContext context)
      Initialize this processor with the given context.
      void process​(K1 key, V1 value)
      Process the record with the given key and value.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • KStreamTransformProcessor

        public KStreamTransformProcessor​(Transformer<? super K1,​? super V1,​? extends KeyValue<? extends K2,​? extends V2>> transformer)
    • Method Detail

      • init

        public void init​(ProcessorContext context)
        Description copied from interface: Processor
        Initialize this processor with the given context. The framework ensures this is called once per processor when the topology that contains it is initialized. When the framework is done with the processor, Processor.close() will be called on it; the framework may later re-use the processor by calling #init() again.

        The provided context can be used to access topology and record meta data, to schedule a method to be called periodically and to access attached StateStores.

        Specified by:
        init in interface Processor<K1,​V1>
        Overrides:
        init in class AbstractProcessor<K1,​V1>
        Parameters:
        context - the context; may not be null
      • process

        public void process​(K1 key,
                            V1 value)
        Description copied from interface: Processor
        Process the record with the given key and value.
        Parameters:
        key - the key for the record
        value - the value for the record
      • close

        public void close()
        Description copied from class: AbstractProcessor
        Close this processor and clean up any resources.

        This method does nothing by default; if desired, subclasses should override it with custom functionality.

        Specified by:
        close in interface Processor<K1,​V1>
        Overrides:
        close in class AbstractProcessor<K1,​V1>