Les traductions sont fournies par des outils de traduction automatique. En cas de conflit entre le contenu d'une traduction et celui de la version originale en anglais, la version anglaise prévaudra.
MappingSpec
Package : com.amazonaws.services.glue
Classe MappingSpec Case
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—SchemaPathdu champ source.sourceType—DataTypedu champ source.targetPath—SchemaPathdu champ cible.targetType—DataTypedu champ cible.
Un MappingSpec spécifie un mappage entre un chemin d'accès source et un type de données source, et un chemin cible et un type de données cible. La valeur du chemin d'accès source de l'image source s'affiche dans l'image cible du chemin cible. Le type de données source est converti dans le type de données cible.
Il s'étend depuis Product4 afin que vous puissiez manipuler n'importe quel Product4 dans votre interface applyMapping.
Objet MappingSpec
object MappingSpec
L'objet MappingSpec coontient les membres suivants :
val orderingByTarget
val orderingByTarget: Ordering[MappingSpec]
def apply
def apply( sourcePath : String,
sourceType : DataType,
targetPath : String,
targetType : DataType
) : MappingSpec
Crée un MappingSpec.
sourcePath— Représentation sous forme de chaîne du chemin d'accès source.sourceType– sourceDataType.targetPath— Représentation sous forme de chaîne du chemin d'accès cible.targetType– cibleDataType.
Retourne un MappingSpec.
def apply
def apply( sourcePath : String,
sourceTypeString : String,
targetPath : String,
targetTypeString : String
) : MappingSpec
Crée un MappingSpec.
sourcePath— Représentation sous forme de chaîne du chemin d'accès source.sourceType— Représentation sous forme de chaîne du type de données source.targetPath— Représentation sous forme de chaîne du chemin d'accès cible.targetType— Représentation sous forme de chaîne du type de données cible.
Renvoie un MappingSpec.
def apply
def apply( product : Product4[String, String, String, String] ) : MappingSpec
Crée un MappingSpec.
product—Product4du chemin d'accès source, type de données source, chemin d'accès cible et type de données cible.
Retourne un MappingSpec.