public static class SyntheticStep.Options extends SyntheticOptions
Options uses jackson annotations which PipelineOptionsFactory can use to parse
and construct an instance.SyntheticOptions.DelayType, SyntheticOptions.Sampler| Modifier and Type | Field and Description |
|---|---|
long |
maxWorkerThroughput
An upper limit on throughput across the worker for this step.
|
double |
outputRecordsPerInputRecord
Amplification/filtering ratio: the number of output records should be emitted on average for
each input record.
|
long |
perBundleDelay
Number of milliseconds to delay for in each bundle.
|
SyntheticOptions.DelayType |
perBundleDelayType
Type of per bundle delay to use ("SLEEP", "CPU", "MIXED").
|
boolean |
preservesInputKeyDistribution
If false, the DoFn generates a different distribution of KV pairs according to the parameters
in
SyntheticOptions, and input records are merely used as a “clock”; If true, the
shape of the input distribution is preserved, and the DoFn only does sleeping and
amplification/filtering. |
boolean |
reportThrottlingMicros
If true, reports time spent sleeping as 'cumulativeThrottlingMicros' metric.
|
bytesPerRecord, cpuUtilizationInMixedDelay, delayType, hotKeyFraction, keySizeBytes, largeKeyFraction, largeKeySizeBytes, numHotKeys, seed, valueSizeBytes| Constructor and Description |
|---|
Options() |
| Modifier and Type | Method and Description |
|---|---|
void |
validate() |
fromIntegerDistribution, fromJsonString, fromRealDistribution, genKvPair, hashFunction, nextDelay, setSeed, toStringpublic double outputRecordsPerInputRecord
public boolean preservesInputKeyDistribution
SyntheticOptions, and input records are merely used as a “clock”; If true, the
shape of the input distribution is preserved, and the DoFn only does sleeping and
amplification/filtering.public long maxWorkerThroughput
public long perBundleDelay
maxWorkerThroughput >= 0.public SyntheticOptions.DelayType perBundleDelayType
public boolean reportThrottlingMicros
public void validate()
validate in class SyntheticOptions