Adapter type: randomtuplegen_in. The Random Tuples Generator adapter generates random tuples according to the given schema and sends the rows to the stream.
A tuple is an ordered list of elements, or in other words, a row of data. A row that has two column values is a 2-tuple, and generally, a row that has n column values is an n-tuple. The adapter is primarily used for prototyping and basic testing of Event Stream Processor. You can edit both the schema and configuration file.
If you use the CCL ATTACH ADAPTER statement to attach an adapter, you must supply the adapter type.
The data this adapter generates is not evenly distributed across the range of possible values for each datatype. This table shows the value range generated for each datatype:
Datatype |
Range of values |
---|---|
bigdatetime |
Current time with microseconds |
binary |
2 bytes each with range 0 to 255 |
boolean |
true/false |
date |
Current time with seconds |
decimal |
0.0 to 10.0 exclusive (should never get 10.0) |
float |
0.0 to 10.0 exclusive (should never get 10.0) |
integer |
0 to 99 inclusive |
interval |
0 to 9 inclusive |
long |
0 to 99 inclusive |
money |
0.0000 to 3.2767 |
money1 |
0.0 to 3276.7 |
money2 |
0.00 to 327.67 |
money3 |
0.000 to 32.767 |
money4 |
0.0000 to 3.2767 |
money5 |
0.00000 to 0.32767 |
money6 |
0.000000 to 0.032767 |
money7 |
0.0000000 to 0.0032767 |
money8 |
0.00000000 to 0.00032767 |
money9 |
0.000000000 to 0.000032767 |
money10 |
0.0000000000 to 0.0000032767 |
money11 |
0.00000000000 to 0.00000032767 |
money12 |
0.000000000000 to 0.000000032767 |
money13 |
0.0000000000000 to 0.0000000032767 |
money14 |
0.00000000000000 to 0.00000000032767 |
money15 |
0.000000000000000 to 0.000000000032767 |
string |
2 characters from the following ranges a..z, A..Z, 0..9 |
time | Current time with seconds |
timestamp | Current time with milliseconds |