Пример #1
0
    def get_configuration(self) -> Configuration:
        """
        Gives direct access to the underlying key-value map for advanced configuration.

        :return: Entire key-value configuration.
        """
        return Configuration(j_configuration=self._j_table_config.getConfiguration())
Пример #2
0
 def _get_kafka_source_configuration(source: KafkaSource):
     jvm = get_gateway().jvm
     j_source = source.get_java_function()
     j_to_configuration = j_source.getClass().getDeclaredMethod(
         'getConfiguration', to_jarray(jvm.java.lang.Class, []))
     j_to_configuration.setAccessible(True)
     j_configuration = j_to_configuration.invoke(
         j_source, to_jarray(jvm.java.lang.Object, []))
     return Configuration(j_configuration=j_configuration)