Created
September 18, 2019 14:43
-
-
Save KKcorps/698675f48246efc4adc7c67df4a8e600 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BootstrapTransformation<TestConfig> getConfigTransformation(ExecutionEnvironment executionEnvironment){ | |
TestConfig testConfig = new TestConfig(); | |
testConfig.setKey("global"); | |
testConfig.setThresholdValue(10); | |
DataSet<TestConfig> configDataSet = executionEnvironment.fromElements(testConfig); | |
BootstrapTransformation<TestConfig> transformation = OperatorTransformation | |
.bootstrapWith(configDataSet) | |
.keyBy(TestConfig::getKey) | |
.transform(new ConfigBootstrapper()); | |
return transformation; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment