GlueTransform 基本クラス - AWS Glue

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

GlueTransform 基本クラス

すべての awsglue.transforms クラスが継承する基本クラス。

クラスはすべて __call__ メソッドを定義します。次のセクションにリストされている GlueTransform クラスのメソッドを上書きするか、デフォルトでクラス名を使用して呼び出されます。

方法

apply(cls, *args, **kwargs)

変換クラスを呼び出して変換を適用し、結果を返します。

  • cls - self クラスオブジェクト。

name(cls)

派生変換クラスの名前を返します。

  • cls - self クラスオブジェクト。

describeArgs(cls)

  • cls - self クラスオブジェクト。

名前付き引数にそれぞれ対応する辞書のリストを次の形式で返します。

[ { "name": "(name of argument)", "type": "(type of argument)", "description": "(description of argument)", "optional": "(Boolean, True if the argument is optional)", "defaultValue": "(Default value string, or None)(String; the default value, or None)" }, ... ]

実装されていない派生変換で呼び出されたときに NotImplementedError 例外が発生します。

describeReturn(cls)

  • cls - self クラスオブジェクト。

戻り型に関する情報を含む辞書を次の形式で返します。

{ "type": "(return type)", "description": "(description of output)" }

実装されていない派生変換で呼び出されたときに NotImplementedError 例外が発生します。

describeTransform(cls)

変換について説明する文字列を返します。

  • cls - self クラスオブジェクト。

実装されていない派生変換で呼び出されたときに NotImplementedError 例外が発生します。

describeErrors(cls)

  • cls - self クラスオブジェクト。

この変換によってスローされる可能性のある例外をそれぞれ説明する辞書のリストを、次の形式で返します。

[ { "type": "(type of error)", "description": "(description of error)" }, ... ]

describe(cls)

  • cls - self クラスオブジェクト。

次の形式のオブジェクトを返します。

{ "transform" : { "name" : cls.name( ), "args" : cls.describeArgs( ), "returns" : cls.describeReturn( ), "raises" : cls.describeErrors( ), "location" : "internal" } }