public abstract class StreamingTLinkImpl<T1,T0> extends BaseTLinkWithSchema<T1,T0> implements StreamingTLink<T1,T0>
Modifier and Type | Method and Description |
---|---|
<P> SComputeTSet<P,T1> |
compute(ComputeCollectorFunc<P,T1> computeFunction)
Creates a Compute
TSet based on the ComputeCollectorFunc provided. |
<P> SComputeTSet<P,T1> |
compute(ComputeFunc<P,T1> computeFunction)
Creates a Compute
TSet based on the ComputeFunc provided. |
<P> SComputeTSet<P,T1> |
compute(java.lang.String n,
ComputeCollectorFunc<P,T1> computeFunction) |
<P> SComputeTSet<P,T1> |
compute(java.lang.String n,
ComputeFunc<P,T1> computeFunction) |
<P> WindowComputeTSet<P,java.util.Iterator<T1>> |
countWindow(long windowLen) |
<P> WindowComputeTSet<P,java.util.Iterator<T1>> |
countWindow(long windowLen,
long slidingLen) |
StreamingEnvironment |
getTSetEnv()
tset env
|
SSinkTSet<T1> |
sink(SinkFunc<T1> sinkFunction)
Creates a Sink TSet based on the
SinkFunc . |
<P> WindowComputeTSet<P,java.util.Iterator<T1>> |
timeWindow(long windowLen,
java.util.concurrent.TimeUnit windowLenTimeUnit) |
<P> WindowComputeTSet<P,java.util.Iterator<T1>> |
timeWindow(long windowLen,
java.util.concurrent.TimeUnit windowLenTimeUnit,
long slidingLen,
java.util.concurrent.TimeUnit slidingWindowTimeUnit) |
getSchema
addChildToGraph, equals, getId, getName, getSourceParallelism, getTargetParallelism, hashCode, rename, setTSetEnv, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
flatmap, forEach, map, mapToTuple, setName
build, getEdge
generateID, getTBaseGraph
public StreamingEnvironment getTSetEnv()
Buildable
getTSetEnv
in interface Buildable
getTSetEnv
in class BaseTLink<T1,T0>
public <P> SComputeTSet<P,T1> compute(java.lang.String n, ComputeFunc<P,T1> computeFunction)
public <P> SComputeTSet<P,T1> compute(java.lang.String n, ComputeCollectorFunc<P,T1> computeFunction)
public <P> SComputeTSet<P,T1> compute(ComputeFunc<P,T1> computeFunction)
TLink
TSet
based on the ComputeFunc
provided.public <P> SComputeTSet<P,T1> compute(ComputeCollectorFunc<P,T1> computeFunction)
TLink
TSet
based on the ComputeCollectorFunc
provided.compute
in interface StreamingTLink<T1,T0>
compute
in interface TLink<T1,T0>
P
- output type (for the RecordCollector
)computeFunction
- compute function with collectorpublic SSinkTSet<T1> sink(SinkFunc<T1> sinkFunction)
TLink
SinkFunc
.sink
in interface StreamingTLink<T1,T0>
sink
in interface TLink<T1,T0>
sinkFunction
- sink function which takes in <T1>. Similar to a compute, but would not
return any TSetpublic <P> WindowComputeTSet<P,java.util.Iterator<T1>> countWindow(long windowLen)
public <P> WindowComputeTSet<P,java.util.Iterator<T1>> countWindow(long windowLen, long slidingLen)
public <P> WindowComputeTSet<P,java.util.Iterator<T1>> timeWindow(long windowLen, java.util.concurrent.TimeUnit windowLenTimeUnit)
public <P> WindowComputeTSet<P,java.util.Iterator<T1>> timeWindow(long windowLen, java.util.concurrent.TimeUnit windowLenTimeUnit, long slidingLen, java.util.concurrent.TimeUnit slidingWindowTimeUnit)