Others¶
Author: panyunhong(bigflow-opensource@baidu.com)
-
bigflow.util.utils.
construct
(pipeline, node, type, nested_level=None, inner_most_type=None, key_serdes=None)¶ Construct a PType from a LogicalPlan node
参数: - pipeline (Pipeline) -- the Pipeline constructed PType belongs to
- node (LogicalPlan.Node) -- node
- type (class) -- class of PType to construct
- Kwargs:
- nested_leve: specify PTable's nested level if PType is a PTable inner_most_type: specify PTable's inner-most type if PType is a PTable
返回: PType 返回类型: PType
-
bigflow.util.utils.
detect_ptype
(runtime_value)¶ Detect the default PType type for a runtime value
参数: runtime_value (object) -- a runtime value, cannot be PType 返回: detected PType class 返回类型: class
-
bigflow.util.utils.
flatten_runtime_value
(runtime_value)¶ Flatten a Python dict to tuple
参数: runtime_value (object) -- value to flatten 返回: flatten result 返回类型: object