Class EnvironmentAccess

java.lang.Object
co.decodable.sdk.pipeline.EnvironmentAccess

public class EnvironmentAccess extends Object
Provides access to the environment from within a custom Flink job. By default, the system environment is exposed. For testing purposes, a custom environment can be set.
  • Method Details

    • setEnvironment

      public static void setEnvironment(EnvironmentAccess.Environment environment)
      Sets the given environment as the active one.
    • resetEnvironment

      public static void resetEnvironment()
      Resets active the environment to the system environment.
    • getEnvironment

      public static EnvironmentAccess.Environment getEnvironment()
      Returns the current environment.