Type: Package
Title: R Driver for Apache Drill
Version: 0.1
Date: 2016-06-28
Author: Hanbing Yang
Depends: R (≥ 3.0.2)
Imports: httr,methods
Maintainer: Hanbing Yang <hanbingflying@sina.com>
Description: Provides a R driver for Apache Drillhttps://drill.apache.org, which could connect to the Apache Drill clusterhttps://drill.apache.org/docs/installing-drill-on-the-cluster or drillbithttps://drill.apache.org/docs/embedded-mode-prerequisites and get result(in data frame) from the SQL query and check the current configuration status. This link https://drill.apache.org/docs contains more information about Apache Drill.
License: GPL-2 | GPL-3 [expanded from: GPL]
RoxygenNote: 5.0.1
NeedsCompilation: no
Packaged: 2016-06-29 13:18:25 UTC; Jirachi
Repository: CRAN
Date/Publication: 2016-06-29 15:57:26

Class drill defines a Apache Drill driver class.

Description

Class drill defines a Apache Drill driver class.

Slots

host

A string denoting the Apache Drill cluster/node host

port

A numeric denoting the Apache Drill cluster/node port


To show whether the connection is active.

Description

To show whether the connection is active.

Usage

rd_active(object)

## S4 method for signature 'drill'
rd_active(object)

Arguments

object

the RDrill object

Examples

#rd_active(R_DRILL_OBJECT) #please replace 'R_DRILL_OBJECT' with your RDrill object.

Show the information of the memory metrics.

Description

Show the information of the memory metrics.

Usage

rd_metrics(object)

## S4 method for signature 'drill'
rd_metrics(object)

Arguments

object

the RDrill object

Examples

#rd_metrics(R_DRILL_OBJECT) #please replace 'R_DRILL_OBJECT' with your RDrill object.

Show the information of the system and session options such as name and data type and so forth.

Description

Show the information of the system and session options such as name and data type and so forth.

Usage

rd_options(object)

## S4 method for signature 'drill'
rd_options(object)

Arguments

object

the RDrill object

Examples

#rd_options(R_DRILL_OBJECT) #please replace 'R_DRILL_OBJECT' with your RDrill object.

Show the information about the running and completed queries.

Description

Show the information about the running and completed queries.

Usage

rd_profiles(object)

## S4 method for signature 'drill'
rd_profiles(object)

Arguments

object

the RDrill object

Examples

#rd_profiles(R_DRILL_OBJECT) #please replace 'R_DRILL_OBJECT' with your RDrill object.

Submit a SQL query and return results as a data frame.

Description

Submit a SQL query and return results as a data frame.

Usage

rd_query(object, sql)

## S4 method for signature 'drill'
rd_query(object, sql)

Arguments

object

the RDrill object

sql

the query submitted

Examples

#rd_query(R_DRILL_OBJECT,SQL_QUERY) #please replace 'R_DRILL_OBJECT' with your RDrill object.

Show the information of Drillbits, their ports and hosts.

Description

Show the information of Drillbits, their ports and hosts.

Usage

rd_stats(object)

## S4 method for signature 'drill'
rd_stats(object)

Arguments

object

the RDrill object

Examples

#rd_stats(R_DRILL_OBJECT) #please replace 'R_DRILL_OBJECT' with your RDrill object.

Show the configurations of the storage plugins.

Description

Show the configurations of the storage plugins.

Usage

rd_storages(object)

## S4 method for signature 'drill'
rd_storages(object)

Arguments

object

the RDrill object

Examples

#rd_storages(R_DRILL_OBJECT) #please replace 'R_DRILL_OBJECT' with your RDrill object.

Show the information of the threads status.

Description

Show the information of the threads status.

Usage

rd_threads(object)

## S4 method for signature 'drill'
rd_threads(object)

Arguments

object

the RDrill object

Examples

#rd_threads(R_DRILL_OBJECT) #please replace 'R_DRILL_OBJECT' with your RDrill object.

Get the Apache Drill Connection, return the RDrill object.

Description

Get the Apache Drill Connection, return the RDrill object.

Usage

rdrill(host, port)

## S4 method for signature 'character,numeric'
rdrill(host, port)

Arguments

host

Apache Drill cluster/node host

port

Apache Drill cluster/node port

Examples

rdrill("127.0.0.1",8047)