Package org.jpmml.python
Class PythonObject
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<String,Object>
-
- net.razorvine.pickle.objects.ClassDict
-
- org.jpmml.python.PythonObject
-
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,Object>
- Direct Known Subclasses:
BSpline,CategoricalDtype,CSRMatrix,CythonObject,DataFrame,ExtensionDtype,Function,Function,Index.Data,MaskedArray,NamedTuple,NDArrayWrapper,Node,NumpyArrayWrapper,PythonEnum,RVGeneric,Series,Tree,Type
public abstract class PythonObject extends net.razorvine.pickle.objects.ClassDict- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Constructor Summary
Constructors Constructor Description PythonObject(String module, String name)
-
Method Summary
-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsValue, entrySet, forEach, getOrDefault, isEmpty, keySet, merge, putIfAbsent, remove, replace, replace, replaceAll, size, values
-
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
-
-
-
Method Detail
-
getPythonModule
public String getPythonModule()
-
getPythonName
public String getPythonName()
-
getClassName
public String getClassName()
- Overrides:
getClassNamein classnet.razorvine.pickle.objects.ClassDict
-
setClassName
public PythonObject setClassName(String className)
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKeyin interfaceMap<String,Object>- Overrides:
containsKeyin classHashMap<String,Object>
-
hasattr
public boolean hasattr(String name)
-
delattr
public void delattr(String name)
-
getIdentifiable
public Identifiable getIdentifiable(String name)
-
getOptionalIdentifiable
public Identifiable getOptionalIdentifiable(String name)
-
getEnum
public <E> E getEnum(String name, com.google.common.base.Function<String,E> function, Collection<E> enumValues)
-
getOptionalEnum
public <E> E getOptionalEnum(String name, com.google.common.base.Function<String,E> function, Collection<E> enumValues)
-
getArrayShape
public int[] getArrayShape(String name)
-
getArrayShape
public int[] getArrayShape(String name, int length)
-
getEnumList
public <E> List<E> getEnumList(String name, com.google.common.base.Function<String,List<E>> function, Collection<E> enumValues)
-
-