Class PythonTools

java.lang.Object
io.deephaven.integrations.python.PythonTools

public class PythonTools extends Object
Functions to support interfacing to python from java
  • Constructor Details

    • PythonTools

      public PythonTools()
  • Method Details

    • functionFromMapWithDefault

      public static Function<String,String> functionFromMapWithDefault(Map<String,String> map, String defaultValue)
      Convert a map to a function.
      Parameters:
      map - the map to convert to function; the caller gives up ownership to the returned object
      defaultValue - the value to map to any keys not in the map; may be null
      Returns:
      the resulting function
    • functionFromMapWithIdentityDefaults

      public static Function<String,String> functionFromMapWithIdentityDefaults(Map<String,String> map)
      Convert a map to a function, mapping any nonexistent keys in the map to themselves.
      Parameters:
      map - the map to convert to function; the caller gives up ownership to the returned object
      Returns:
      the resulting function