pl.touk.nussknacker.engine.management.sample.source.BoundedSource.scala Maven / Gradle / Ivy
The newest version!
package pl.touk.nussknacker.engine.management.sample.source
import pl.touk.nussknacker.engine.api.component.UnboundedStreamComponent
import pl.touk.nussknacker.engine.api.process.SourceFactory
import pl.touk.nussknacker.engine.api.typed.typing.Unknown
import pl.touk.nussknacker.engine.api.{MethodToInvoke, ParamName}
import pl.touk.nussknacker.engine.flink.util.source.CollectionSource
import scala.jdk.CollectionConverters._
object BoundedSource extends SourceFactory with UnboundedStreamComponent {
@MethodToInvoke
def source(@ParamName("elements") elements: java.util.List[Any]) =
new CollectionSource[Any](elements.asScala.toList, None, Unknown)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy