io.prophecy.libs.sources.jdbc.JdbcRelation.scala Maven / Gradle / Ivy
/*
* =========================================================================================
*
* PROPHECY CONFIDENTIAL
*
* Prophecy Inc
* All Rights Reserved.
*
* NOTICE: All information contained herein is, and remains
* the property of Prophecy Inc, the intellectual and technical concepts contained
* herein are proprietary to Prophecy Inc and may be covered by U.S. and Foreign Patents,
* patents in process, and are protected by trade secret or copyright law.
* Dissemination of this information or reproduction of this material
* is strictly forbidden unless prior written permission is obtained
* from Prophecy Inc.
*
* ===========================================================================================
*/
package io.prophecy.libs.sources.jdbc
import org.apache.spark.sql.SQLContext
import org.apache.spark.sql.sources.BaseRelation
import org.apache.spark.sql.types.StructType
/**
* Represents a collection of tuples with a known schema.
*/
class JdbcRelation(_sqlContext: SQLContext, _schema: StructType) extends BaseRelation {
override def sqlContext: SQLContext = _sqlContext
override def schema: StructType = _schema
}