public class JDBCRelation extends BaseRelation implements PrunedFilteredScan, scala.Product, scala.Serializable
Constructor and Description |
---|
JDBCRelation(String url,
String table,
Partition[] parts,
java.util.Properties properties,
SQLContext sqlContext) |
Modifier and Type | Method and Description |
---|---|
RDD<Row> |
buildScan(String[] requiredColumns,
Filter[] filters) |
static Partition[] |
columnPartition(JDBCPartitioningInfo partitioning)
Given a partitioning schematic (a column of integral type, a number of
partitions, and upper and lower bounds on the column's value), generate
WHERE clauses for each partition so that each row in the table appears
exactly once.
|
Partition[] |
parts() |
java.util.Properties |
properties() |
StructType |
schema() |
SQLContext |
sqlContext() |
String |
table() |
String |
url() |
sizeInBytes
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public JDBCRelation(String url, String table, Partition[] parts, java.util.Properties properties, SQLContext sqlContext)
public static Partition[] columnPartition(JDBCPartitioningInfo partitioning)
public String url()
public String table()
public Partition[] parts()
public java.util.Properties properties()
public SQLContext sqlContext()
sqlContext
in class BaseRelation
public StructType schema()
schema
in class BaseRelation
public RDD<Row> buildScan(String[] requiredColumns, Filter[] filters)
buildScan
in interface PrunedFilteredScan