class_docstr: Lightweight configuration object which stores key/value pairs.
class_docstr_tok: ["Lightweight","configuration","object","which","stores","key\/value","pairs","."]
docstr: Creates a new configuration.
  
  :param other: Optional, if this parameter exists, creates a new configuration with a
                copy of the given configuration.
  :param j_configuration: Optional, the py4j java configuration object, if this parameter
                          exists, creates a wrapper for it.
docstr_tok: ["Creates","a","new","configuration",".",":","param","other",":","Optional",",","if","this","parameter","exists",",","creates","a","new","configuration","with","a","copy","of","the","given","configuration",".",":","param","j_configuration",":","Optional",",","the","py4j","java","configuration","object",",","if","this","parameter","exists",",","creates","a","wrapper","for","it","."]
code: def __init__(
      self,
      other: "Configuration" = None,
      j_configuration: JavaObject = None,
  ):
      """
      Creates a new configuration.
  
      :param other: Optional, if this parameter exists, creates a new configuration with a
                    copy of the given configuration.
      :param j_configuration: Optional, the py4j java configuration object, if this parameter
                              exists, creates a wrapper for it.
      """
      if j_configuration is not None:
          self._j_configuration = j_configuration
      else:
          gateway = get_gateway()
          JConfiguration = (
              gateway.jvm.org.apache.flink.configuration.Configuration
          )
          if other is not None:
              self._j_configuration = JConfiguration(
                  other._j_configuration
              )
          else:
              self._j_configuration = JConfiguration()
  
imports: from typing import Set, Dict
  from py4j.java_gateway import JavaObject
  from pyflink.java_gateway import get_gateway
  from pyflink.util.java_utils import add_jars_to_context_class_loader
label_desc: Use image node_id 1 to create a new Configuration object  with example: obj = Configuration(other, j_configuration)