SparkResourceConnector | R Documentation |
Apache Spark DBI resource connector
Apache Spark DBI resource connector
A R6 object of class SparkResourceConnector
Makes a Apache Spark connection object, that is also a DBI connection object, from a resource description.
resourcer::DBIResourceConnector
-> SparkResourceConnector
new()
Create a SparkResourceConnector instance.
SparkResourceConnector$new()
A SparkResourceConnector object.
isFor()
Check if the provided resource applies to a Apache Spark server. The resource URL scheme must be one of "spark", "spark+http" or "spark+https".
SparkResourceConnector$isFor(resource)
resource
The resource object to validate.
A logical.
createDBIConnection()
Creates a DBI connection object from a Apache Spark resource.
SparkResourceConnector$createDBIConnection(resource)
resource
A valid resource object.
A DBI connection object.
closeDBIConnection()
Close the DBI connection to Apache Spark.
SparkResourceConnector$closeDBIConnection(conn)
conn
A DBI connection object.
clone()
The objects of this class are cloneable with this method.
SparkResourceConnector$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.