yunfengzhou-hub opened a new pull request #76:
URL: https://github.com/apache/flink-ml/pull/76


   ## What is the purpose of the change
   This PR mainly updates the static `load` method of all Stage `subclasses` to 
use `StreamTableEnvironment`.
   
   ## Brief change log
   
   - Add helper method `TableUtils::getExecutionEnvironment` to get the 
corresponding `StreamExecutionEnvironment` from a `StreamTableEnvironment`.
   - Changes the signature of the static `load` method of all `Stage` subclasses
     - from `public static T load(StreamExecutionEnvironment env, String path)`
     - to public `static T load(StreamTableEnvironment tEnv, String path)`
   - Changes the signature of the static `ReadWriteUtils::loadModelData` method
     - from `public static <T> DataStream<T> 
loadModelData(StreamExecutionEnvironment env, String path, 
SimpleStreamFormat<T> modelDecoder)`
     - to `public static <T> Table loadModelData(StreamTableEnvironment tEnv, 
String path, SimpleStreamFormat<T> modelDecoder)`
   
   - Changes the signature of the static 
`KMeansModelData::generateRandomModelData` method
     - from `public static DataStream<KMeansModelData> 
generateRandomModelData(StreamExecutionEnvironment env, int k, int dim, double 
weight, long seed)`
     - to `public static Table generateRandomModelData(StreamTableEnvironment 
tEnv, int k, int dim, double weight, long seed)`
   
   
   ## Does this pull request potentially affect one of the following parts:
   - Dependencies (does it add or upgrade a dependency): (no)
   - The public API, i.e., is any changed class annotated with 
@public(Evolving): (yes)
   - Does this pull request introduce a new feature? (No)
   - If yes, how is the feature documented? (N/A)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to