Package io.deephaven.integrations.python
Class PythonFunction.PythonUnaryOperator<T>
java.lang.Object
io.deephaven.integrations.python.PythonFunction<T,T>
io.deephaven.integrations.python.PythonFunction.PythonUnaryOperator<T>
- All Implemented Interfaces:
Function<T,
,T> UnaryOperator<T>
- Enclosing class:
- PythonFunction<T,
R>
public static class PythonFunction.PythonUnaryOperator<T>
extends PythonFunction<T,T>
implements UnaryOperator<T>
-
Nested Class Summary
Nested classes/interfaces inherited from class io.deephaven.integrations.python.PythonFunction
PythonFunction.PythonUnaryOperator<T>
-
Constructor Summary
ConstructorDescriptionPythonUnaryOperator
(org.jpy.PyObject pyCallable, Class<T> classOut) Creates aUnaryOperator
which calls a Python function. -
Method Summary
Methods inherited from class io.deephaven.integrations.python.PythonFunction
apply
-
Constructor Details
-
PythonUnaryOperator
Creates aUnaryOperator
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 thePythonFunction.apply(Object)
method. This should be the result of converting or unwrapping the output ofpyCallable
.
-