toRuntimeEnvironment method

RuntimeEnvironment toRuntimeEnvironment()

Implementation

RuntimeEnvironment toRuntimeEnvironment() {
  switch (this) {
    case 'SQL-1_0':
      return RuntimeEnvironment.sql_1_0;
    case 'FLINK-1_6':
      return RuntimeEnvironment.flink_1_6;
    case 'FLINK-1_8':
      return RuntimeEnvironment.flink_1_8;
    case 'FLINK-1_11':
      return RuntimeEnvironment.flink_1_11;
  }
  throw Exception('$this is not known in enum RuntimeEnvironment');
}