the-algorithm/product-mixer/core/src/main/scala/com/twitter/product_mixer/core/pipeline/mixer/MixerPipeline.scala
twitter-team ef4c5eb65e Twitter Recommendation Algorithm
Please note we have force-pushed a new initial commit in order to remove some publicly-available Twitter user information. Note that this process may be required in the future.
2023-03-31 17:36:31 -05:00

25 lines
988 B
Scala

package com.twitter.product_mixer.core.pipeline.mixer
import com.twitter.product_mixer.core.model.common.identifier.MixerPipelineIdentifier
import com.twitter.product_mixer.core.pipeline.Pipeline
import com.twitter.product_mixer.core.pipeline.PipelineQuery
import com.twitter.stitch.Arrow
/**
* A Mixer Pipeline
*
* This is an abstract class, as we only construct these via the [[MixerPipelineBuilder]].
*
* A [[MixerPipeline]] is capable of processing requests (queries) and returning responses (results)
* in the correct format to directly send to users.
*
* @tparam Query the domain model for the query or request
* @tparam Result the final marshalled result type
*/
abstract class MixerPipeline[Query <: PipelineQuery, Result] private[mixer]
extends Pipeline[Query, Result] {
override private[core] val config: MixerPipelineConfig[Query, _, Result]
override val arrow: Arrow[Query, MixerPipelineResult[Result]]
override val identifier: MixerPipelineIdentifier
}