public class BeaconStreams
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
BeaconStreams.BeaconFunction |
Constructor and Description |
---|
BeaconStreams() |
Modifier and Type | Method and Description |
---|---|
static TStream<BeaconTuple> |
beacon(TopologyElement te,
long count)
Creates a source stream of
count tuples with no delay between each
tuple. |
static TStream<BeaconTuple> |
beacon(TopologyElement te)
Creates an infinite source stream of tuples with no delay between each tuple.
|
static TStream<java.lang.Long> |
longBeacon(TopologyElement te,
long count)
Creates a source stream of
count tuples with no delay between each
tuple. |
static TStream<java.lang.Long> |
longBeacon(TopologyElement te)
Creates an infinite source stream of
count tuples with no delay between each
tuple. |
static TStream<java.lang.Long> |
single(TopologyElement te)
Produce a source stream declaring a single tuple, with the value 0.
|
public static TStream<BeaconTuple> beacon(TopologyElement te)
sequence
of zero, each subsequent tuple has
a sequence one higher than the previous tuple. The time
of each tuple
is the time the tuple (object) was created.te
- Topology element representing the topology the source stream will be contained in.BeaconTuple
instances.public static TStream<BeaconTuple> beacon(TopologyElement te, long count)
count
tuples with no delay between each
tuple.te
- Topology element representing the topology the source stream will be contained in.count
BeaconTuple
instances.public static TStream<java.lang.Long> longBeacon(TopologyElement te)
count
tuples with no delay between each
tuple. The first tuple has the value zero, each subsequent tuple has
a value one higher than the previous tuple.te
- Topology element representing the topology the source stream will be contained in.Long
tuples.public static TStream<java.lang.Long> longBeacon(TopologyElement te, long count)
count
tuples with no delay between each
tuple. The first tuple has the value zero, each subsequent tuple has
a value one higher than the previous tuple.te
- Topology element representing the topology the source stream will be contained in.count
- Number of tuples on the stream.count
tuples.public static TStream<java.lang.Long> single(TopologyElement te)
te
- Topology element representing the topology the source stream will be contained in.