IN
- Any given java objectpublic class AdapterMap<IN> extends Object implements MapFunction<IN,org.python.core.PyObject>
Constructor and Description |
---|
AdapterMap() |
Modifier and Type | Method and Description |
---|---|
static org.python.core.PyObject |
adapt(Object o)
Convert java object to its corresponding PyObject representation.
|
org.python.core.PyObject |
map(IN value)
The mapping method.
|
public static org.python.core.PyObject adapt(Object o)
o
- Java objectpublic org.python.core.PyObject map(IN value) throws Exception
MapFunction
map
in interface MapFunction<IN,org.python.core.PyObject>
value
- The input value.Exception
- This method may throw exceptions. Throwing an exception will cause the operation
to fail and may trigger recovery.Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.