com.microsoft.sqlserver.jdbc.spark.connectors.DataIOStrategy.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spark-mssql-connector Show documentation
Show all versions of spark-mssql-connector Show documentation
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.
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