deephaven.jcompat¶
This module provides Java compatibility support including convenience functions to create some widely used Java data structures from corresponding Python ones in order to be able to call Java methods.
- j_binary_operator(func, dtype)[source]¶
- Constructs a Java ‘Function<PyObject, PyObject, Object>’ implementation from a Python callable or an object with an
‘apply’ method that accepts a single argument.
- j_function(func, dtype)[source]¶
- Constructs a Java ‘Function<PyObject, Object>’ implementation from a Python callable or an object with an
‘apply’ method that accepts a single argument.
- j_unary_operator(func, dtype)[source]¶
- Constructs a Java ‘Function<PyObject, Object>’ implementation from a Python callable or an object with an
‘apply’ method that accepts a single argument.
- to_sequence(v=None)[source]¶
A convenience function to create a sequence of unwrapped object from either one or a sequence of input values to help JPY find the matching Java overloaded method to call.
This also enables a function to provide parameters that can accept both singular and plural values of the same type for the convenience of the users, e.g. both x= “abc” and x = [“abc”] are valid arguments.
- Return type
Sequence
[Union
[TypeVar
(T
),JType
]]