All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.alibaba.hologres.spark3.sink.copy.HoloDataCopyWriter.scala Maven / Gradle / Ivy

package com.alibaba.hologres.spark3.sink.copy

import com.alibaba.hologres.client.model.TableSchema
import com.alibaba.hologres.spark.config.HologresConfigs
import com.alibaba.hologres.spark.sink.copy.BaseHoloDataCopyWriter
import org.apache.spark.sql.catalyst.InternalRow
import org.apache.spark.sql.connector.write.DataWriter
import org.apache.spark.sql.types._

/** HoloDataCopyWriter. */
class HoloDataCopyWriter(
                          hologresConfigs: HologresConfigs,
                          sparkSchema: StructType,
                          holoSchema: TableSchema,
                          targetShardList: String = "")
  extends BaseHoloDataCopyWriter(hologresConfigs, sparkSchema, holoSchema, targetShardList)
    with DataWriter[InternalRow]




© 2015 - 2024 Weber Informatics LLC | Privacy Policy