Package io.deephaven.integrations.python
Class PythonFunction<T,R>
java.lang.Object
io.deephaven.integrations.python.PythonFunction<T,R>
- Type Parameters:
T
- input argument class
- All Implemented Interfaces:
Function<T,
R>
- Direct Known Subclasses:
PythonFunction.PythonUnaryOperator
A
Function
implementation which calls a Python callable.-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionPythonFunction
(org.jpy.PyObject pyCallable, Class<R> classOut) Creates aFunction
which calls a Python function. -
Method Summary
-
Constructor Details
-
PythonFunction
Creates aFunction
which calls a Python function.- Parameters:
pyCallable
- The python object providing the function - must either be callable or have anapply
attribute which is callable.classOut
- The specific Java class expected to be returned by theapply(Object)
method. This should be the result of converting or unwrapping the output ofpyCallable
.
-
-
Method Details