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

com.microsoft.sqlserver.jdbc.spark.connectors.DataIOStrategy.scala Maven / Gradle / Ivy

Go to download

The Apache Spark Connector for SQL Server and Azure SQL is a high-performance connector that enables you to use transactional data in big data analytics and persists results for ad-hoc queries or reporting.

There is a newer version: 1.0.2
Show newest version
package com.microsoft.sqlserver.jdbc.spark

import java.sql.ResultSetMetaData

import org.apache.spark.sql.{DataFrame, Row}

/**
 * Interface to define a read/write strategy.
 * Override write to define a write strategy for the connector.
 * Note Read functionality is re-used from default JDBC connector.
 * Read interface can be defined here in the future if required.
 * */
abstract class DataIOStrategy {
  def write(
        df: DataFrame,
        colMetaData: Array[ColumnMetadata],
        options: SQLServerBulkJdbcOptions,
        appId: String): Unit
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy