

# GlueTransform 基本クラス
<a name="aws-glue-api-crawler-pyspark-transforms-GlueTransform"></a>

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

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

## 方法
<a name="aws-glue-api-crawler-pyspark-transforms-GlueTransform-_methods"></a>
+ [apply(cls, \$1args, \$1\$1kwargs)](#aws-glue-api-crawler-pyspark-transforms-GlueTransform-apply)
+ [name(cls)](#aws-glue-api-crawler-pyspark-transforms-GlueTransform-name)
+ [describeArgs(cls)](#aws-glue-api-crawler-pyspark-transforms-GlueTransform-describeArgs)
+ [describeReturn(cls)](#aws-glue-api-crawler-pyspark-transforms-GlueTransform-describeReturn)
+ [describeTransform(cls)](#aws-glue-api-crawler-pyspark-transforms-GlueTransform-describeTransform)
+ [describeErrors(cls)](#aws-glue-api-crawler-pyspark-transforms-GlueTransform-describeErrors)
+ [describe(cls)](#aws-glue-api-crawler-pyspark-transforms-GlueTransform-describe)

## apply(cls, \$1args, \$1\$1kwargs)
<a name="aws-glue-api-crawler-pyspark-transforms-GlueTransform-apply"></a>

変換クラスを呼び出して変換を適用し、結果を返します。
+ `cls` - `self` クラスオブジェクト。

## name(cls)
<a name="aws-glue-api-crawler-pyspark-transforms-GlueTransform-name"></a>

派生変換クラスの名前を返します。
+ `cls` - `self` クラスオブジェクト。

## describeArgs(cls)
<a name="aws-glue-api-crawler-pyspark-transforms-GlueTransform-describeArgs"></a>
+ `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)
<a name="aws-glue-api-crawler-pyspark-transforms-GlueTransform-describeReturn"></a>
+ `cls` - `self` クラスオブジェクト。

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

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

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

## describeTransform(cls)
<a name="aws-glue-api-crawler-pyspark-transforms-GlueTransform-describeTransform"></a>

変換について説明する文字列を返します。
+ `cls` - `self` クラスオブジェクト。

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

## describeErrors(cls)
<a name="aws-glue-api-crawler-pyspark-transforms-GlueTransform-describeErrors"></a>
+ `cls` - `self` クラスオブジェクト。

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

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

## describe(cls)
<a name="aws-glue-api-crawler-pyspark-transforms-GlueTransform-describe"></a>
+ `cls` - `self` クラスオブジェクト。

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

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