MappingSpec - AWS Glue

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

MappingSpec

パッケージ: com.amazonaws.services.glue

MappingSpec ケースクラス

case class MappingSpec( sourcePath: SchemaPath, sourceType: DataType, targetPath: SchemaPath, targetType: DataTyp ) extends Product4[String, String, String, String] { override def _1: String = sourcePath.toString override def _2: String = ExtendedTypeName.fromDataType(sourceType) override def _3: String = targetPath.toString override def _4: String = ExtendedTypeName.fromDataType(targetType) }
  • sourcePath - ソースフィールドの SchemaPath

  • sourceType - ソースフィールドの DataType

  • targetPath - ターゲットフィールドの SchemaPath

  • targetType - ターゲットフィールドの DataType

MappingSpec は、ソースパスとソースデータ型から、ターゲットパスとターゲットデータ型へのマッピングを指定します。ソーフフレームのソースパスの値は、ターゲットフレームのターゲットパスに表示されます。ソースデータ型はターゲットデータ型にキャストされます。

Product4 からの拡張であるため、applyMapping インターフェイスで Product4 をすべて処理できます。

MappingSpec オブジェクト

object MappingSpec

MappingSpec オブジェクトには以下のメンバーがあります。

Val orderingByTarget

val orderingByTarget: Ordering[MappingSpec]

Def apply

def apply( sourcePath : String, sourceType : DataType, targetPath : String, targetType : DataType ) : MappingSpec

MappingSpec を作成します。

  • sourcePath - ソースパスの文字列表現。

  • sourceType - ソース DataType

  • targetPath - ターゲットパスの文字列表現。

  • targetType - ターゲット DataType

戻り値は MappingSpec

Def apply

def apply( sourcePath : String, sourceTypeString : String, targetPath : String, targetTypeString : String ) : MappingSpec

MappingSpec を作成します。

  • sourcePath - ソースパスの文字列表現。

  • sourceType - ソースデータ型の文字列表現。

  • targetPath - ターゲットパスの文字列表現。

  • targetType - ターゲットデータ型の文字列表現。

MappingSpec を返します。

Def apply

def apply( product : Product4[String, String, String, String] ) : MappingSpec

MappingSpec を作成します。

  • product - ソースパス、ソースデータ型、ターゲットパス、およびターゲットデータ型の Product4

戻り値は MappingSpec