class PipeDoFn extends DoFn[String, String]
A DoFn
that pipes elements through an external command via StdIn & StdOut.
- Source
- PipeDoFn.java
- Alphabetic
- By Inheritance
- PipeDoFn
- DoFn
- HasDisplayData
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new PipeDoFn(cmdArray: Array[String], environment: Map[String, String], dir: File, setupCmds: List[Array[String]], teardownCmds: List[Array[String]])
Create a new
PipeDoFn
instance.Create a new
PipeDoFn
instance.The setup and teardown commands will be executed once per
PipeDoFn
instance, i.e. on a 4-core Dataflow worker, an instance will be cloned 4 times, one for each CPU core but setup and teardown commands will be executed only once.- cmdArray
array containing the command to call and its arguments.
- environment
environment variables, or null if the subprocess should inherit the environment from the current process.
- dir
the working directory of the sub process, or null if the subprocess should inherit the working directly of the current process.
- setupCmds
setup commands to be run before processing.
- teardownCmds
tear down commands to be run after processing.
- new PipeDoFn(command: String, environment: Map[String, String], dir: File, setupCmds: List[String], teardownCmds: List[String])
Create a new
PipeDoFn
instance.Create a new
PipeDoFn
instance.The setup and teardown commands will be executed once per
PipeDoFn
instance, i.e. on a 4-core Dataflow worker, an instance will be cloned 4 times, one for each CPU core but setup and teardown commands will be executed only once.- command
the command to call.
- environment
environment variables, or null if the subprocess should inherit the environment from the current process.
- dir
the working directory of the sub process, or null if the subprocess should inherit the working directly of the current process.
- setupCmds
setup commands to be run before processing.
- teardownCmds
tear down commands to be run after processing.
- new PipeDoFn(cmdArray: Array[String])
Create a new
PipeDoFn
instance.Create a new
PipeDoFn
instance.- cmdArray
array containing the command to call and its arguments.
- new PipeDoFn(command: String)
Type Members
- abstract class FinishBundleContext extends AnyRef
- Definition Classes
- DoFn
- abstract class OnTimerContext extends WindowedContext
- Definition Classes
- DoFn
- abstract class OnWindowExpirationContext extends WindowedContext
- Definition Classes
- DoFn
- abstract class ProcessContext extends WindowedContext
- Definition Classes
- DoFn
- abstract class StartBundleContext extends AnyRef
- Definition Classes
- DoFn
- abstract class WindowedContext extends AnyRef
- Definition Classes
- DoFn
Abstract Value Members
Concrete 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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def finishBundle(context: FinishBundleContext): Unit
- Annotations
- @FinishBundle()
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getInputTypeDescriptor(): TypeDescriptor[String]
- Definition Classes
- DoFn
- def getOutputTypeDescriptor(): TypeDescriptor[String]
- Definition Classes
- DoFn
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def populateDisplayData(builder: Builder): Unit
- Definition Classes
- PipeDoFn → DoFn → HasDisplayData
- Annotations
- @Override()
- def processElement(element: String, out: OutputReceiver[String]): Unit
- Annotations
- @ProcessElement()
- def setup(): Unit
- Annotations
- @Setup()
- def startBundle(context: StartBundleContext): Unit
- Annotations
- @StartBundle()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def teardown(): Unit
- Annotations
- @Teardown()
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- 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()