BlobConverter 类
- 继承
-
BlobConverterBlobConverter
构造函数
BlobConverter()
方法
| check_input_type_annotation | |
| check_output_type_annotation | |
| decode | |
| encode | |
| has_implicit_output |
check_input_type_annotation
check_input_type_annotation(pytype: type) -> bool
参数
| 名称 | 说明 |
|---|---|
|
pytype
必需
|
|
check_output_type_annotation
check_output_type_annotation(pytype: type) -> bool
参数
| 名称 | 说明 |
|---|---|
|
pytype
必需
|
|
decode
decode(data: Datum, *, trigger_metadata) -> Any
参数
| 名称 | 说明 |
|---|---|
|
data
必需
|
|
仅限关键字的参数
| 名称 | 说明 |
|---|---|
|
trigger_metadata
必需
|
|
encode
encode(obj: Any, *, expected_type: type | None) -> Datum
参数
| 名称 | 说明 |
|---|---|
|
obj
必需
|
|
仅限关键字的参数
| 名称 | 说明 |
|---|---|
|
expected_type
必需
|
|
has_implicit_output
abstract classmethod has_implicit_output() -> bool