public interface Invoker
Properties.Graph.Config.JAVA_OPS
.Modifier and Type | Method and Description |
---|---|
static <T> TSink |
invokeForEach(TStream<T> stream,
java.lang.String kind,
com.google.gson.JsonObject invokeInfo,
Consumer<T> logic,
TupleSerializer tupleSerializer,
java.util.Map<java.lang.String,java.lang.Object> parameters)
Invoke a functional for each operator consuming a single stream.
|
static <T,R> TStream<?> |
invokePipe(java.lang.String kind,
TStream<T> stream,
com.google.gson.JsonObject invokeInfo,
Consumer<T> logic,
java.lang.reflect.Type tupleType,
TupleSerializer inputSerializer,
TupleSerializer outputSerializer,
java.util.Map<java.lang.String,java.lang.Object> parameters)
Invoke a functional map operator consuming a single
input stream and producing a single output stream.
|
static java.util.List<TStream<?>> |
invokePrimitive(TopologyElement te,
java.lang.String kind,
java.util.List<TStream<?>> streams,
com.google.gson.JsonObject invokeInfo,
ObjIntConsumer<java.lang.Object> logic,
java.util.List<java.lang.reflect.Type> tupleTypes,
java.util.List<TupleSerializer> inputSerializers,
java.util.List<TupleSerializer> outputSerializers,
java.util.Map<java.lang.String,java.lang.Object> parameters)
Invoke a functional operator consuming an arbitrary number of
input streams and producing an arbitrary number of output streams.
|
static <T> TStream<T> |
invokeSource(Topology topology,
java.lang.String kind,
com.google.gson.JsonObject invokeInfo,
Supplier<java.lang.Iterable<T>> logic,
java.lang.reflect.Type tupleType,
TupleSerializer outputSerializer,
java.util.Map<java.lang.String,java.lang.Object> parameters)
Invoke a functional source operator that generates a single stream.
|
static void |
setBuildConfig(Topology topology,
com.google.gson.JsonObject buildConfig)
Set the build configuration.
|
static void |
setFunctionalNamespace(Topology topology,
java.lang.String namespace)
Set the functional namespace for Java functional operators
for a topology.
|
static <T> TStream<T> invokeSource(Topology topology, java.lang.String kind, com.google.gson.JsonObject invokeInfo, Supplier<java.lang.Iterable<T>> logic, java.lang.reflect.Type tupleType, TupleSerializer outputSerializer, java.util.Map<java.lang.String,java.lang.Object> parameters)
topology
- Topology the operator will be invoked in.kind
- Java functional operator kind.invokeInfo
- Operator invocation information.logic
- Functional logic.tupleType
- Type of tuples for the returned stream.outputSerializer
- How output tuples are serialized.parameters
- Additional SPL operator parameters.static <T> TSink invokeForEach(TStream<T> stream, java.lang.String kind, com.google.gson.JsonObject invokeInfo, Consumer<T> logic, TupleSerializer tupleSerializer, java.util.Map<java.lang.String,java.lang.Object> parameters)
stream
- Stream to be consumed.kind
- Java functional operator kind.invokeInfo
- Operator invocation information.logic
- Functional logic.tupleSerializer
- How tuples are serialized.parameters
- Additional SPL operator parameters.static <T,R> TStream<?> invokePipe(java.lang.String kind, TStream<T> stream, com.google.gson.JsonObject invokeInfo, Consumer<T> logic, java.lang.reflect.Type tupleType, TupleSerializer inputSerializer, TupleSerializer outputSerializer, java.util.Map<java.lang.String,java.lang.Object> parameters)
kind
- Java functional operator kind.stream
- Single input stream.invokeInfo
- Operator invocation information.logic
- Logic performed against each tuple.tupleType
- Type of tuples for the returned stream.inputSerializer
- How input tuples are serialized.outputSerializer
- How output tuples are serialized.static java.util.List<TStream<?>> invokePrimitive(TopologyElement te, java.lang.String kind, java.util.List<TStream<?>> streams, com.google.gson.JsonObject invokeInfo, ObjIntConsumer<java.lang.Object> logic, java.util.List<java.lang.reflect.Type> tupleTypes, java.util.List<TupleSerializer> inputSerializers, java.util.List<TupleSerializer> outputSerializers, java.util.Map<java.lang.String,java.lang.Object> parameters)
te
- Topology element.kind
- Java functional operator kind.streams
- Input streams.invokeInfo
- Operator invocation information.logic
- Logic to invoke for each input tuple.tupleTypes
- Tuple types for the output stream.inputSerializers
- How input tuples are serialized.outputSerializers
- How output tuples are serialized.parameters
- Parameters for the operator invocation.static void setFunctionalNamespace(Topology topology, java.lang.String namespace)
static void setBuildConfig(Topology topology, com.google.gson.JsonObject buildConfig)
originator
is the build service
originator. It provides tracking information in Streaming Analytics
build service on IBM Cloud. it is ignored for other submission contexts.
The format is tool[-version:language[-version
so that version information is optional. An example is topology-1.11.8:java-1.8.0
.topology
- Topology to set build configuration.buildConfig
- JSON build configuration.