Browse Source

docs

pull/36/head
boB Rudis 6 years ago
parent
commit
e8a6172bc0
No known key found for this signature in database GPG Key ID: 1D7529BE14E2BBA9
  1. 134
      docs/CONDUCT.html
  2. 128
      docs/LICENSE-text.html
  3. 49
      docs/authors.html
  4. 148
      docs/docsearch.css
  5. 85
      docs/docsearch.js
  6. 842
      docs/index.html
  7. 146
      docs/news/index.html
  8. 88
      docs/pkgdown.css
  9. 114
      docs/pkgdown.js
  10. 5
      docs/pkgdown.yml
  11. 59
      docs/reference/DrilDriver-class.html
  12. 72
      docs/reference/Drill.html
  13. 86
      docs/reference/DrillConnection-class.html
  14. 57
      docs/reference/DrillDriver-class.html
  15. 79
      docs/reference/DrillResult-class.html
  16. 59
      docs/reference/dbDataType-DrillConnection-method.html
  17. 143
      docs/reference/dbDisconnect-DrillConnection-method.html
  18. 80
      docs/reference/drill_active.html
  19. 70
      docs/reference/drill_cancel.html
  20. 79
      docs/reference/drill_connection.html
  21. 142
      docs/reference/drill_custom_functions.html
  22. 77
      docs/reference/drill_metrics.html
  23. 77
      docs/reference/drill_options.html
  24. 70
      docs/reference/drill_profile.html
  25. 76
      docs/reference/drill_profiles.html
  26. 87
      docs/reference/drill_query.html
  27. 81
      docs/reference/drill_set.html
  28. 76
      docs/reference/drill_settings_reset.html
  29. 77
      docs/reference/drill_show_files.html
  30. 70
      docs/reference/drill_show_schemas.html
  31. 76
      docs/reference/drill_stats.html
  32. 74
      docs/reference/drill_status.html
  33. 139
      docs/reference/drill_storage.html
  34. 75
      docs/reference/drill_system_reset.html
  35. 74
      docs/reference/drill_threads.html
  36. 54
      docs/reference/drill_uplift.html
  37. 70
      docs/reference/drill_use.html
  38. 76
      docs/reference/drill_version.html
  39. 409
      docs/reference/index.html
  40. 48
      docs/reference/sergeant-exports.html
  41. 53
      docs/reference/sergeant.html
  42. 140
      docs/reference/src_drill.html
  43. 57
      docs/reference/src_tbls.html

134
docs/CONDUCT.html

@ -0,0 +1,134 @@
<!-- Generated by pkgdown: do not edit by hand -->
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Contributor Code of Conduct • sergeant</title>
<!-- jquery -->
<script src="https://code.jquery.com/jquery-3.1.0.min.js" integrity="sha384-nrOSfDHtoPMzJHjVTdCopGqIqeYETSXhZDFyniQ8ZHcVy08QesyHcnOUpMpqnmWq" crossorigin="anonymous"></script>
<!-- Bootstrap -->
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<!-- Font Awesome icons -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-T8Gy5hrqNKT+hzMclPo118YTQO6cYprQmhrYwIiQ/3axmI1hQomh7Ud2hPOy8SP1" crossorigin="anonymous">
<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.7.1/clipboard.min.js" integrity="sha384-cV+rhyOuRHc9Ub/91rihWcGmMmCXDeksTtCihMupQHSsi8GIIRDG0ThDc3HGQFJ3" crossorigin="anonymous"></script>
<!-- sticky kit -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/sticky-kit/1.1.3/sticky-kit.min.js" integrity="sha256-c4Rlo1ZozqTPE2RLuvbusY3+SU1pQaJC0TjuhygMipw=" crossorigin="anonymous"></script>
<!-- pkgdown -->
<link href="pkgdown.css" rel="stylesheet">
<script src="pkgdown.js"></script>
<meta property="og:title" content="Contributor Code of Conduct" />
<!-- mathjax -->
<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container template-title-body">
<header>
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<span class="navbar-brand">
<a class="navbar-link" href="index.html">sergeant</a>
<span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="Released package">0.7.0</span>
</span>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="reference/index.html">Reference</a>
</li>
<li>
<a href="news/index.html">Changelog</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="https://github.com/hrbrmstr/sergeant">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->
</header>
<div class="row">
<div class="contents col-md-9">
<div class="page-header">
<h1>Contributor Code of Conduct</h1>
</div>
<div id="contributor-code-of-conduct" class="section level1">
<p>As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.</p>
<p>We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.</p>
<p>Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.</p>
<p>Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.</p>
<p>Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.</p>
<p>This Code of Conduct is adapted from the Contributor Covenant (<a href="http:contributor-covenant.org" class="uri">http:contributor-covenant.org</a>), version 1.0.0, available at <a href="http://contributor-covenant.org/version/1/0/0/" class="uri">http://contributor-covenant.org/version/1/0/0/</a></p>
</div>
</div>
</div>
<footer>
<div class="copyright">
<p>Developed by Bob Rudis.</p>
</div>
<div class="pkgdown">
<p>Site built with <a href="http://pkgdown.r-lib.org/">pkgdown</a>.</p>
</div>
</footer>
</div>
</body>
</html>

128
docs/LICENSE-text.html

@ -0,0 +1,128 @@
<!-- Generated by pkgdown: do not edit by hand -->
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>License • sergeant</title>
<!-- jquery -->
<script src="https://code.jquery.com/jquery-3.1.0.min.js" integrity="sha384-nrOSfDHtoPMzJHjVTdCopGqIqeYETSXhZDFyniQ8ZHcVy08QesyHcnOUpMpqnmWq" crossorigin="anonymous"></script>
<!-- Bootstrap -->
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<!-- Font Awesome icons -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-T8Gy5hrqNKT+hzMclPo118YTQO6cYprQmhrYwIiQ/3axmI1hQomh7Ud2hPOy8SP1" crossorigin="anonymous">
<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.7.1/clipboard.min.js" integrity="sha384-cV+rhyOuRHc9Ub/91rihWcGmMmCXDeksTtCihMupQHSsi8GIIRDG0ThDc3HGQFJ3" crossorigin="anonymous"></script>
<!-- sticky kit -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/sticky-kit/1.1.3/sticky-kit.min.js" integrity="sha256-c4Rlo1ZozqTPE2RLuvbusY3+SU1pQaJC0TjuhygMipw=" crossorigin="anonymous"></script>
<!-- pkgdown -->
<link href="pkgdown.css" rel="stylesheet">
<script src="pkgdown.js"></script>
<meta property="og:title" content="License" />
<!-- mathjax -->
<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container template-title-body">
<header>
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<span class="navbar-brand">
<a class="navbar-link" href="index.html">sergeant</a>
<span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="Released package">0.7.0</span>
</span>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="reference/index.html">Reference</a>
</li>
<li>
<a href="news/index.html">Changelog</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="https://github.com/hrbrmstr/sergeant">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->
</header>
<div class="row">
<div class="contents col-md-9">
<div class="page-header">
<h1>License</h1>
</div>
<pre>YEAR: 2016
COPYRIGHT HOLDER: Bob Rudis
</pre>
</div>
</div>
<footer>
<div class="copyright">
<p>Developed by Bob Rudis.</p>
</div>
<div class="pkgdown">
<p>Site built with <a href="http://pkgdown.r-lib.org/">pkgdown</a>.</p>
</div>
</footer>
</div>
</body>
</html>

49
docs/authors.html

@ -18,13 +18,22 @@
<!-- Font Awesome icons -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-T8Gy5hrqNKT+hzMclPo118YTQO6cYprQmhrYwIiQ/3axmI1hQomh7Ud2hPOy8SP1" crossorigin="anonymous">
<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.7.1/clipboard.min.js" integrity="sha384-cV+rhyOuRHc9Ub/91rihWcGmMmCXDeksTtCihMupQHSsi8GIIRDG0ThDc3HGQFJ3" crossorigin="anonymous"></script>
<!-- sticky kit -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/sticky-kit/1.1.3/sticky-kit.min.js" integrity="sha256-c4Rlo1ZozqTPE2RLuvbusY3+SU1pQaJC0TjuhygMipw=" crossorigin="anonymous"></script>
<!-- pkgdown -->
<link href="pkgdown.css" rel="stylesheet">
<script src="jquery.sticky-kit.min.js"></script>
<script src="pkgdown.js"></script>
<meta property="og:title" content="Authors" />
<!-- mathjax -->
<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
@ -47,26 +56,37 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.html">sergeant</a>
<span class="navbar-brand">
<a class="navbar-link" href="index.html">sergeant</a>
<span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="Released package">0.7.0</span>
</span>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="reference/index.html">Reference</a>
</li>
<li>
<a href="news/index.html">News</a>
<a href="news/index.html">Changelog</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="http://github.com/hrbrmstr/sergeant">
<a href="https://github.com/hrbrmstr/sergeant">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->
@ -74,19 +94,23 @@
</header>
<div class="row">
<div class="contents col-md-12">
<div class="row">
<div class="contents col-md-9">
<div class="page-header">
<h1>Authors</h1>
</div>
<ul class="list-unstyled">
<li>
<p><strong>Bob Rudis</strong>. Author, maintainer.
<p><strong>Bob Rudis</strong>. Author, maintainer. <a href='https://orcid.org/0000-0001-5670-2640' target='orcid.widget'><img src='https://members.orcid.org/sites/default/files/vector_iD_icon.svg' class='orcid' height='16'></a>
</p>
</li>
<li>
<p><strong>Edward Visel</strong>. Contributor.
</p>
</li>
<li>
<p><strong>Edward Visel</strong>. Contributor.
<p><strong>Andy Hine</strong>. Contributor.
</p>
</li>
</ul>
@ -102,11 +126,14 @@
</div>
<div class="pkgdown">
<p>Site built with <a href="http://hadley.github.io/pkgdown/">pkgdown</a>.</p>
<p>Site built with <a href="http://pkgdown.r-lib.org/">pkgdown</a>.</p>
</div>
</footer>
</div>
</body>
</html>

148
docs/docsearch.css

File diff suppressed because one or more lines are too long

85
docs/docsearch.js

@ -0,0 +1,85 @@
$(function() {
// register a handler to move the focus to the search bar
// upon pressing shift + "/" (i.e. "?")
$(document).on('keydown', function(e) {
if (e.shiftKey && e.keyCode == 191) {
e.preventDefault();
$("#search-input").focus();
}
});
$(document).ready(function() {
// do keyword highlighting
/* modified from https://jsfiddle.net/julmot/bL6bb5oo/ */
var mark = function() {
var referrer = document.URL ;
var paramKey = "q" ;
if (referrer.indexOf("?") !== -1) {
var qs = referrer.substr(referrer.indexOf('?') + 1);
var qs_noanchor = qs.split('#')[0];
var qsa = qs_noanchor.split('&');
var keyword = "";
for (var i = 0; i < qsa.length; i++) {
var currentParam = qsa[i].split('=');
if (currentParam.length !== 2) {
continue;
}
if (currentParam[0] == paramKey) {
keyword = decodeURIComponent(currentParam[1].replace(/\+/g, "%20"));
}
}
if (keyword !== "") {
$(".contents").unmark({
done: function() {
$(".contents").mark(keyword);
}
});
}
}
};
mark();
});
});
/* Search term highlighting ------------------------------*/
function matchedWords(hit) {
var words = [];
var hierarchy = hit._highlightResult.hierarchy;
// loop to fetch from lvl0, lvl1, etc.
for (var idx in hierarchy) {
words = words.concat(hierarchy[idx].matchedWords);
}
var content = hit._highlightResult.content;
if (content) {
words = words.concat(content.matchedWords);
}
// return unique words
var words_uniq = [...new Set(words)];
return words_uniq;
}
function updateHitURL(hit) {
var words = matchedWords(hit);
var url = "";
if (hit.anchor) {
url = hit.url_without_anchor + '?q=' + escape(words.join(" ")) + '#' + hit.anchor;
} else {
url = hit.url + '?q=' + escape(words.join(" "));
}
return url;
}

842
docs/index.html

@ -8,14 +8,21 @@
<title>Tools to Transform and Query Data with 'Apache' 'Drill' • sergeant</title>
<!-- jquery --><script src="https://code.jquery.com/jquery-3.1.0.min.js" integrity="sha384-nrOSfDHtoPMzJHjVTdCopGqIqeYETSXhZDFyniQ8ZHcVy08QesyHcnOUpMpqnmWq" crossorigin="anonymous"></script><!-- Bootstrap --><link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script><!-- Font Awesome icons --><link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-T8Gy5hrqNKT+hzMclPo118YTQO6cYprQmhrYwIiQ/3axmI1hQomh7Ud2hPOy8SP1" crossorigin="anonymous">
<!-- pkgdown --><link href="pkgdown.css" rel="stylesheet">
<script src="jquery.sticky-kit.min.js"></script><script src="pkgdown.js"></script><!-- mathjax --><script src="https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script><!--[if lt IE 9]>
<!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.7.1/clipboard.min.js" integrity="sha384-cV+rhyOuRHc9Ub/91rihWcGmMmCXDeksTtCihMupQHSsi8GIIRDG0ThDc3HGQFJ3" crossorigin="anonymous"></script><!-- sticky kit --><script src="https://cdnjs.cloudflare.com/ajax/libs/sticky-kit/1.1.3/sticky-kit.min.js" integrity="sha256-c4Rlo1ZozqTPE2RLuvbusY3+SU1pQaJC0TjuhygMipw=" crossorigin="anonymous"></script><!-- pkgdown --><link href="pkgdown.css" rel="stylesheet">
<script src="pkgdown.js"></script><meta property="og:title" content="Tools to Transform and Query Data with 'Apache' 'Drill'">
<meta property="og:description" content="'Apache Drill' is a low-latency distributed query engine designed to enable
data exploration and 'analytics' on both relational and non-relational 'datastores',
scaling to petabytes of data. Methods are provided that enable working with 'Apache'
'Drill' instances via the 'REST' 'API', 'JDBC' interface (optional), 'DBI' 'methods'
and using 'dplyr'/'dbplyr' idioms.">
<meta name="twitter:card" content="summary">
<!-- mathjax --><script src="https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script><!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container template-vignette">
<div class="container template-article">
<header><div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
@ -24,20 +31,30 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.html">sergeant</a>
<span class="navbar-brand">
<a class="navbar-link" href="index.html">sergeant</a>
<span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="Released package">0.7.0</span>
</span>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="reference/index.html">Reference</a>
</li>
<li>
<a href="news/index.html">News</a>
<a href="news/index.html">Changelog</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="http://github.com/hrbrmstr/sergeant">
<a href="https://github.com/hrbrmstr/sergeant">
<span class="fa fa-github fa-lg"></span>
</a>
@ -52,42 +69,43 @@
</header><div class="row">
<div class="col-md-9">
<div class="col-md-9 contents">
<div class="contents">
<!-- README.md is generated from README.Rmd. Please edit that file -->
<p><img src="sergeant.png" width="33" align="left" style="padding-right:20px"></p>
<p><code>sergeant</code> : Tools to Transform and Query Data with ‘Apache’ ‘Drill’</p>
<p>Drill + <code>sergeant</code> is (IMO) a nice alternative to Spark + <code>sparklyr</code> if you don’t need the ML components of Spark (i.e. just need to query “big data” sources, need to interface with parquet, need to combine disparate data source types — json, csv, parquet, rdbms - for aggregation, etc). Drill also has support for spatial queries.</p>
<p>I find writing SQL queries to parquet files with Drill on a local linux or macOS workstation to be more performant than doing the data ingestion work with R (for large or disperate data sets). I also work with many tiny JSON files on a daily basis and Drill makes it much easier to do so. YMMV.</p>
<p>You can download Drill from <a href="https://drill.apache.org/download/" class="uri">https://drill.apache.org/download/</a> (use “Direct File Download”). I use <code>/usr/local/drill</code> as the install directory. <code>drill-embedded</code> is a super-easy way to get started playing with Drill on a single workstation and most of my workflows can get by using Drill this way. If there is sufficient desire for an automated downloader and a way to start the <code>drill-embedded</code> server from within R, please file an issue.</p>
<div id="sergeant" class="section level1">
<div class="page-header"><h1 class="hasAnchor">
<a href="#sergeant" class="anchor"></a>💂 sergeant</h1></div>
<p>Tools to Transform and Query Data with ‘Apache’ ‘Drill’</p>
<div id="note" class="section level2">
<h2 class="hasAnchor">
<a href="#note" class="anchor"></a>NOTE</h2>
<p>Version 0.7.0 splits off the JDBC interface into a separate package <code>sergeant.caffeinated</code> (<a href="https://gitlab.com/hrbrmstr/sergeant-caffeinated">GitLab</a>; <a href="https://github.com/hrbrmstr/sergeant-caffeinated">GitHub</a>).</p>
</div>
<div id="description" class="section level2">
<h2 class="hasAnchor">
<a href="#description" class="anchor"></a>Description</h2>
<p>Drill + <code>sergeant</code> is (IMO) a streamlined alternative to Spark + <code>sparklyr</code> if you don’t need the ML components of Spark (i.e. just need to query “big data” sources, need to interface with parquet, need to combine disparate data source types — json, csv, parquet, rdbms - for aggregation, etc). Drill also has support for spatial queries.</p>
<p>Using Drill SQL queries that reference parquet files on a local linux or macOS workstation can often be more performant than doing the same data ingestion &amp; wrangling work with R (especially for large or disperate data sets). Drill can often help further streaming workflows that infolve wrangling many tiny JSON files on a daily basis.</p>
<p>Drill can be obtained from <a href="https://drill.apache.org/download/" class="uri">https://drill.apache.org/download/</a> (use “Direct File Download”). Drill can also be installed via <a href="https://drill.apache.org/docs/running-drill-on-docker/">Docker</a>. For local installs on Unix-like systems, a common/suggestion location for the Drill directory is <code>/usr/local/drill</code> as the install directory.</p>
<p>Drill embedded (started using the <code>$DRILL_BASE_DIR/bin/drill-embedded</code> script) is a super-easy way to get started playing with Drill on a single workstation and most of many workflows can “get by” using Drill this way.</p>
<p>There are a few convenience wrappers for various informational SQL queries (like <code><a href="reference/drill_version.html">drill_version()</a></code>). Please file an PR if you add more.</p>
<p>The package has been written with retrieval of rectangular data sources in mind. If you need/want a version of <code><a href="reference/drill_query.html">drill_query()</a></code> that will enable returning of non-rectangular data (which is possible with Drill) then please file an issue.</p>
<p>Some of the more “controlling vs data ops” REST API functions aren’t implemented. Please file a PR if you need those.</p>
<p>Finally, I run most of this locally and at home, so it’s all been coded with no authentication or encryption in mind. If you want/need support for that, please file an issue. If there is demand for this, it will change the R API a bit (I’ve already thought out what to do but have no need for it right now).</p>
<p>The following functions are implemented:</p>
<p><strong><code>DBI</code></strong></p>
<p><strong><code>DBI</code></strong> (REST)</p>
<ul>
<li>As complete of an R <code>DBI</code> driver has been implemented using the Drill REST API, mostly to facilitate the <code>dplyr</code> interface. Use the <code>RJDBC</code> driver interface if you need more <code>DBI</code> functionality.</li>
<li>This also means that SQL functions unique to Drill have also been “implemented” (i.e. made accessible to the <code>dplyr</code> interface). If you have custom Drill SQL functions that need to be implemented please file an issue on GitHub.</li>
<li>A “just enough” feature complete R <code>DBI</code> driver has been implemented using the Drill REST API, mostly to facilitate the <code>dplyr</code> interface. Use the <code>RJDBC</code> driver interface if you need more <code>DBI</code> functionality.</li>
<li>This also means that SQL functions unique to Drill have also been “implemented” (i.e. made accessible to the <code>dplyr</code> interface). If you have custom Drill SQL functions that need to be implemented please file an issue on GitHub. Many should work without it, but some may require a custom interface.</li>
</ul>
<p><strong><code>RJDBC</code></strong></p>
<p><strong><code>dplyr</code></strong>: (REST)</p>
<ul>
<li>
<code>drill_jdbc</code>: Connect to Drill using JDBC, enabling use of said idioms. See <code>RJDBC</code> for more info.</li>
<li>NOTE: The DRILL JDBC driver fully-qualified path must be placed in the <code>DRILL_JDBC_JAR</code> environment variable. This is best done via <code>~/.Renviron</code> for interactive work. i.e. <code>DRILL_JDBC_JAR=/usr/local/drill/jars/drill-jdbc-all-1.9.0.jar</code>
</li>
</ul>
<p><strong><code>dplyr</code></strong>:</p>
<ul>
<li>
<code>src_drill</code>: Connect to Drill (using dplyr) + supporting functions</li>
<code>src_drill</code>: Connect to Drill (using <code>dplyr</code>) + supporting functions</li>
</ul>
<p>See <code>dplyr</code> for the <code>dplyr</code> operations (light testing shows they work in basic SQL use-cases but Drill’s SQL engine has issues with more complex queries).</p>
<p>Note that a number of Drill SQL functions have been mapped to R functions (e.g. <code>grepl</code>) to make it easier to transition from non-database-backed SQL ops to Drill. See the help on <code>drill_custom_functions</code> for more info on these helper Drill custom function mappings.</p>
<p><strong>Drill APIs</strong>:</p>
<ul>
<li>
@ -133,425 +151,427 @@
<li>
<code>drill_version</code>: Identify the version of Drill running</li>
</ul>
<div id="installation" class="section level3">
<h3 class="hasAnchor">
<a href="#installation" class="anchor"></a>Installation</h3>
<div class="sourceCode"><pre class="sourceCode r"><code class="sourceCode r">devtools<span class="op">::</span><span class="kw">install_github</span>(<span class="st">"hrbrmstr/sergeant"</span>)</code></pre></div>
</div>
<div id="experimental-dplyr-interface" class="section level3">
<div id="installation" class="section level2">
<h2 class="hasAnchor">
<a href="#installation" class="anchor"></a>Installation</h2>
<div class="sourceCode" id="cb1"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb1-1" data-line-number="1">devtools<span class="op">::</span><span class="kw"><a href="http://www.rdocumentation.org/packages/devtools/topics/install_github">install_github</a></span>(<span class="st">"hrbrmstr/sergeant"</span>)</a></code></pre></div>
</div>
<div id="usage" class="section level2">
<h2 class="hasAnchor">
<a href="#usage" class="anchor"></a>Usage</h2>
<div id="dplyr-interface" class="section level3">
<h3 class="hasAnchor">
<a href="#experimental-dplyr-interface" class="anchor"></a>Experimental <code>dplyr</code> interface</h3>
<div class="sourceCode"><pre class="sourceCode r"><code class="sourceCode r"><span class="kw">library</span>(sergeant)
ds &lt;-<span class="st"> </span><span class="kw"><a href="reference/src_drill.html">src_drill</a></span>(<span class="st">"localhost"</span>) <span class="co"># use localhost if running standalone on same system otherwise the host or IP of your Drill server</span>
ds
<span class="co">#&gt; src: DrillConnection</span>
<span class="co">#&gt; tbls: INFORMATION_SCHEMA, cp.default, dfs.default, dfs.root, dfs.tmp, sys</span>
db &lt;-<span class="st"> </span><span class="kw">tbl</span>(ds, <span class="st">"cp.`employee.json`"</span>)
<span class="co"># without `collect()`:</span>
<span class="kw">count</span>(db, gender, marital_status)
<span class="co">#&gt; # Source: lazy query [?? x 3]</span>
<span class="co">#&gt; # Database: DrillConnection</span>
<span class="co">#&gt; # Groups: gender</span>
<span class="co">#&gt; marital_status gender n</span>
<span class="co">#&gt; &lt;chr&gt; &lt;chr&gt; &lt;int&gt;</span>
<span class="co">#&gt; 1 S F 297</span>
<span class="co">#&gt; 2 M M 278</span>
<span class="co">#&gt; 3 S M 276</span>
<span class="co">#&gt; 4 M F 304</span>
<span class="co"># ^^ gets translated to:</span>
<span class="co"># </span>
<span class="co"># SELECT *</span>
<span class="co"># FROM (SELECT gender , marital_status , COUNT(*) AS n </span>
<span class="co"># FROM cp.`employee.json` </span>
<span class="co"># GROUP BY gender , marital_status ) govketbhqb </span>
<span class="co"># LIMIT 1000</span>
<span class="kw">count</span>(db, gender, marital_status) <span class="op">%&gt;%</span><span class="st"> </span><span class="kw">collect</span>()
<span class="co">#&gt; # A tibble: 4 x 3</span>
<span class="co">#&gt; # Groups: gender [2]</span>
<span class="co">#&gt; marital_status gender n</span>
<span class="co">#&gt; * &lt;chr&gt; &lt;chr&gt; &lt;int&gt;</span>
<span class="co">#&gt; 1 S F 297</span>
<span class="co">#&gt; 2 M M 278</span>
<span class="co">#&gt; 3 S M 276</span>
<span class="co">#&gt; 4 M F 304</span>
<span class="co"># ^^ gets translated to:</span>
<span class="co"># </span>
<span class="co"># SELECT gender , marital_status , COUNT(*) AS n </span>
<span class="co"># FROM cp.`employee.json` </span>
<span class="co"># GROUP BY gender , marital_status </span>
<span class="kw">group_by</span>(db, position_title) <span class="op">%&gt;%</span><span class="st"> </span>
<span class="st"> </span><span class="kw">count</span>(gender) -&gt;<span class="st"> </span>tmp2
<span class="kw">group_by</span>(db, position_title) <span class="op">%&gt;%</span><span class="st"> </span>
<span class="st"> </span><span class="kw">count</span>(gender) <span class="op">%&gt;%</span><span class="st"> </span>
<span class="st"> </span><span class="kw">ungroup</span>() <span class="op">%&gt;%</span><span class="st"> </span>
<span class="st"> </span><span class="kw">mutate</span>(<span class="dt">full_desc=</span><span class="kw">ifelse</span>(gender<span class="op">==</span><span class="st">"F"</span>, <span class="st">"Female"</span>, <span class="st">"Male"</span>)) <span class="op">%&gt;%</span><span class="st"> </span>
<span class="st"> </span><span class="kw">collect</span>() <span class="op">%&gt;%</span><span class="st"> </span>
<span class="st"> </span><span class="kw">select</span>(<span class="dt">Title=</span>position_title, <span class="dt">Gender=</span>full_desc, <span class="dt">Count=</span>n)
<span class="co">#&gt; # A tibble: 30 x 3</span>
<span class="co">#&gt; Title Gender Count</span>
<span class="co">#&gt; * &lt;chr&gt; &lt;chr&gt; &lt;int&gt;</span>
<span class="co">#&gt; 1 President Female 1</span>
<span class="co">#&gt; 2 VP Country Manager Male 3</span>
<span class="co">#&gt; 3 VP Country Manager Female 3</span>
<span class="co">#&gt; 4 VP Information Systems Female 1</span>
<span class="co">#&gt; 5 VP Human Resources Female 1</span>
<span class="co">#&gt; 6 Store Manager Female 13</span>
<span class="co">#&gt; 7 VP Finance Male 1</span>
<span class="co">#&gt; 8 Store Manager Male 11</span>
<span class="co">#&gt; 9 HQ Marketing Female 2</span>
<span class="co">#&gt; 10 HQ Information Systems Female 4</span>
<span class="co">#&gt; # ... with 20 more rows</span>
<span class="co"># ^^ gets translated to:</span>
<span class="co"># </span>
<span class="co"># SELECT position_title , gender , n ,</span>
<span class="co"># CASE WHEN ( gender = 'F') THEN ('Female') ELSE ('Male') </span><span class="re">END</span><span class="co"> AS full_desc </span>
<span class="co"># FROM (SELECT position_title , gender , COUNT(*) AS n </span>
<span class="co"># FROM cp.`employee.json` </span>
<span class="co"># GROUP BY position_title , gender ) dcyuypuypb </span>
<span class="kw">arrange</span>(db, <span class="kw">desc</span>(employee_id)) <span class="op">%&gt;%</span><span class="st"> </span><span class="kw">print</span>(<span class="dt">n=</span><span class="dv">20</span>)
<span class="co">#&gt; # Source: table&lt;cp.`employee.json`&gt; [?? x 16]</span>
<span class="co">#&gt; # Database: DrillConnection</span>
<span class="co">#&gt; # Ordered by: desc(employee_id)</span>
<span class="co">#&gt; store_id gender department_id birth_date supervisor_id last_name position_title hire_date</span>
<span class="co">#&gt; &lt;int&gt; &lt;chr&gt; &lt;int&gt; &lt;date&gt; &lt;int&gt; &lt;chr&gt; &lt;chr&gt; &lt;dttm&gt;</span>
<span class="co">#&gt; 1 18 F 18 1914-02-02 1140 Stand Store Temporary Stocker 1998-01-01</span>
<span class="co">#&gt; 2 18 M 18 1914-02-02 1140 Burnham Store Temporary Stocker 1998-01-01</span>
<span class="co">#&gt; 3 18 F 18 1914-02-02 1139 Doolittle Store Temporary Stocker 1998-01-01</span>
<span class="co">#&gt; 4 18 M 18 1914-02-02 1139 Pirnie Store Temporary Stocker 1998-01-01</span>
<span class="co">#&gt; 5 18 M 17 1914-02-02 1140 Younce Store Permanent Stocker 1998-01-01</span>
<span class="co">#&gt; 6 18 F 17 1914-02-02 1140 Biltoft Store Permanent Stocker 1998-01-01</span>
<span class="co">#&gt; 7 18 M 17 1914-02-02 1139 Detwiler Store Permanent Stocker 1998-01-01</span>
<span class="co">#&gt; 8 18 F 17 1914-02-02 1139 Ciruli Store Permanent Stocker 1998-01-01</span>
<span class="co">#&gt; 9 18 F 16 1914-02-02 1140 Bishop Store Temporary Checker 1998-01-01</span>
<span class="co">#&gt; 10 18 F 16 1914-02-02 1140 Cutwright Store Temporary Checker 1998-01-01</span>
<span class="co">#&gt; 11 18 F 16 1914-02-02 1139 Anderson Store Temporary Checker 1998-01-01</span>
<span class="co">#&gt; 12 18 F 16 1914-02-02 1139 Swartwood Store Temporary Checker 1998-01-01</span>
<span class="co">#&gt; 13 18 M 15 1914-02-02 1140 Curtsinger Store Permanent Checker 1998-01-01</span>
<span class="co">#&gt; 14 18 F 15 1914-02-02 1140 Quick Store Permanent Checker 1998-01-01</span>
<span class="co">#&gt; 15 18 M 15 1914-02-02 1139 Souza Store Permanent Checker 1998-01-01</span>
<span class="co">#&gt; 16 18 M 15 1914-02-02 1139 Compagno Store Permanent Checker 1998-01-01</span>
<span class="co">#&gt; 17 18 M 11 1961-09-24 1139 Jaramillo Store Shift Supervisor 1998-01-01</span>
<span class="co">#&gt; 18 18 M 11 1972-05-12 17 Belsey Store Assistant Manager 1998-01-01</span>
<span class="co">#&gt; 19 12 M 18 1914-02-02 1069 Eichorn Store Temporary Stocker 1998-01-01</span>
<span class="co">#&gt; 20 12 F 18 1914-02-02 1069 Geiermann Store Temporary Stocker 1998-01-01</span>
<span class="co">#&gt; # ... with more rows, and 8 more variables: management_role &lt;chr&gt;, salary &lt;dbl&gt;, marital_status &lt;chr&gt;, full_name &lt;chr&gt;,</span>
<span class="co">#&gt; # employee_id &lt;int&gt;, education_level &lt;chr&gt;, first_name &lt;chr&gt;, position_id &lt;int&gt;</span>
<span class="co"># ^^ gets translated to:</span>
<span class="co"># </span>
<span class="co"># SELECT *</span>
<span class="co"># FROM (SELECT *</span>
<span class="co"># FROM cp.`employee.json` </span>
<span class="co"># ORDER BY employee_id DESC) lvpxoaejbc </span>
<span class="co"># LIMIT 5</span>
<span class="kw">mutate</span>(db, <span class="dt">position_title=</span><span class="kw">tolower</span>(position_title)) <span class="op">%&gt;%</span>
<span class="st"> </span><span class="kw">mutate</span>(<span class="dt">salary=</span><span class="kw">as.numeric</span>(salary)) <span class="op">%&gt;%</span><span class="st"> </span>
<span class="st"> </span><span class="kw">mutate</span>(<span class="dt">gender=</span><span class="kw">ifelse</span>(gender<span class="op">==</span><span class="st">"F"</span>, <span class="st">"Female"</span>, <span class="st">"Male"</span>)) <span class="op">%&gt;%</span>
<span class="st"> </span><span class="kw">mutate</span>(<span class="dt">marital_status=</span><span class="kw">ifelse</span>(marital_status<span class="op">==</span><span class="st">"S"</span>, <span class="st">"Single"</span>, <span class="st">"Married"</span>)) <span class="op">%&gt;%</span><span class="st"> </span>
<span class="st"> </span><span class="kw">group_by</span>(supervisor_id) <span class="op">%&gt;%</span><span class="st"> </span>
<span class="st"> </span><span class="kw">summarise</span>(<span class="dt">underlings_count=</span><span class="kw">n</span>()) <span class="op">%&gt;%</span><span class="st"> </span>
<span class="st"> </span><span class="kw">collect</span>()
<span class="co">#&gt; # A tibble: 112 x 2</span>
<span class="co">#&gt; supervisor_id underlings_count</span>
<span class="co">#&gt; * &lt;int&gt; &lt;int&gt;</span>
<span class="co">#&gt; 1 0 1</span>
<span class="co">#&gt; 2 1 7</span>
<span class="co">#&gt; 3 5 9</span>
<span class="co">#&gt; 4 4 2</span>
<span class="co">#&gt; 5 2 3</span>
<span class="co">#&gt; 6 20 2</span>
<span class="co">#&gt; 7 21 4</span>
<span class="co">#&gt; 8 22 7</span>
<span class="co">#&gt; 9 6 4</span>
<span class="co">#&gt; 10 36 2</span>
<span class="co">#&gt; # ... with 102 more rows</span>
<span class="co"># ^^ gets translated to:</span>
<span class="co"># </span>
<span class="co"># SELECT supervisor_id , COUNT(*) AS underlings_count </span>
<span class="co"># FROM (SELECT employee_id , full_name , first_name , last_name , position_id , position_title , store_id , department_id , birth_date , hire_date , salary , supervisor_id , education_level , gender , management_role , CASE WHEN ( marital_status = 'S') THEN ('Single') ELSE ('Married') </span><span class="re">END</span><span class="co"> AS marital_status </span>
<span class="co"># FROM (SELECT employee_id , full_name , first_name , last_name , position_id , position_title , store_id , department_id , birth_date , hire_date , salary , supervisor_id , education_level , marital_status , management_role , CASE WHEN ( gender = 'F') THEN ('Female') ELSE ('Male') </span><span class="re">END</span><span class="co"> AS gender </span>
<span class="co"># FROM (SELECT employee_id , full_name , first_name , last_name , position_id , position_title , store_id , department_id , birth_date , hire_date , supervisor_id , education_level , marital_status , gender , management_role , CAST( salary AS DOUBLE) AS salary </span>
<span class="co"># FROM (SELECT employee_id , full_name , first_name , last_name , position_id , store_id , department_id , birth_date , hire_date , salary , supervisor_id , education_level , marital_status , gender , management_role , LOWER( position_title ) AS position_title </span>
<span class="co"># FROM cp.`employee.json` ) cnjsqxeick ) bnbnjrubna ) wavfmhkczv ) zaxeyyicxo </span>
<span class="co"># GROUP BY supervisor_id </span></code></pre></div>
<a href="#dplyr-interface" class="anchor"></a><code>dplyr</code> interface</h3>
<div class="sourceCode" id="cb2"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb2-1" data-line-number="1"><span class="kw">library</span>(sergeant)</a>
<a class="sourceLine" id="cb2-2" data-line-number="2"><span class="kw">library</span>(tidyverse)</a>
<a class="sourceLine" id="cb2-3" data-line-number="3"></a>
<a class="sourceLine" id="cb2-4" data-line-number="4"><span class="co"># use localhost if running standalone on same system otherwise the host or IP of your Drill server</span></a>
<a class="sourceLine" id="cb2-5" data-line-number="5">ds &lt;-<span class="st"> </span><span class="kw"><a href="reference/src_drill.html">src_drill</a></span>(<span class="st">"localhost"</span>) <span class="co">#ds</span></a>
<a class="sourceLine" id="cb2-6" data-line-number="6">db &lt;-<span class="st"> </span><span class="kw"><a href="reference/sergeant-exports.html">tbl</a></span>(ds, <span class="st">"cp.`employee.json`"</span>) </a>
<a class="sourceLine" id="cb2-7" data-line-number="7"></a>
<a class="sourceLine" id="cb2-8" data-line-number="8"><span class="co"># without `collect()`:</span></a>
<a class="sourceLine" id="cb2-9" data-line-number="9"><span class="kw">count</span>(db, gender, marital_status)</a>
<a class="sourceLine" id="cb2-10" data-line-number="10"><span class="co">## # Source: lazy query [?? x 3]</span></a>
<a class="sourceLine" id="cb2-11" data-line-number="11"><span class="co">## # Database: DrillConnection</span></a>
<a class="sourceLine" id="cb2-12" data-line-number="12"><span class="co">## # Groups: gender</span></a>
<a class="sourceLine" id="cb2-13" data-line-number="13"><span class="co">## marital_status gender n</span></a>
<a class="sourceLine" id="cb2-14" data-line-number="14"><span class="co">## &lt;chr&gt; &lt;chr&gt; &lt;int&gt;</span></a>
<a class="sourceLine" id="cb2-15" data-line-number="15"><span class="co">## 1 S F 297</span></a>
<a class="sourceLine" id="cb2-16" data-line-number="16"><span class="co">## 2 M M 278</span></a>
<a class="sourceLine" id="cb2-17" data-line-number="17"><span class="co">## 3 S M 276</span></a>
<a class="sourceLine" id="cb2-18" data-line-number="18"><span class="co">## 4 M F 304</span></a>
<a class="sourceLine" id="cb2-19" data-line-number="19"></a>
<a class="sourceLine" id="cb2-20" data-line-number="20"><span class="kw">count</span>(db, gender, marital_status) <span class="op">%&gt;%</span><span class="st"> </span><span class="kw">collect</span>()</a>
<a class="sourceLine" id="cb2-21" data-line-number="21"><span class="co">## # A tibble: 4 x 3</span></a>
<a class="sourceLine" id="cb2-22" data-line-number="22"><span class="co">## # Groups: gender [2]</span></a>
<a class="sourceLine" id="cb2-23" data-line-number="23"><span class="co">## marital_status gender n</span></a>
<a class="sourceLine" id="cb2-24" data-line-number="24"><span class="co">## * &lt;chr&gt; &lt;chr&gt; &lt;int&gt;</span></a>
<a class="sourceLine" id="cb2-25" data-line-number="25"><span class="co">## 1 S F 297</span></a>
<a class="sourceLine" id="cb2-26" data-line-number="26"><span class="co">## 2 M M 278</span></a>
<a class="sourceLine" id="cb2-27" data-line-number="27"><span class="co">## 3 S M 276</span></a>
<a class="sourceLine" id="cb2-28" data-line-number="28"><span class="co">## 4 M F 304</span></a>
<a class="sourceLine" id="cb2-29" data-line-number="29"></a>
<a class="sourceLine" id="cb2-30" data-line-number="30"><span class="kw">group_by</span>(db, position_title) <span class="op">%&gt;%</span><span class="st"> </span></a>
<a class="sourceLine" id="cb2-31" data-line-number="31"><span class="st"> </span><span class="kw">count</span>(gender) -&gt;<span class="st"> </span>tmp2</a>
<a class="sourceLine" id="cb2-32" data-line-number="32"></a>
<a class="sourceLine" id="cb2-33" data-line-number="33"><span class="kw">group_by</span>(db, position_title) <span class="op">%&gt;%</span><span class="st"> </span></a>
<a class="sourceLine" id="cb2-34" data-line-number="34"><span class="st"> </span><span class="kw">count</span>(gender) <span class="op">%&gt;%</span><span class="st"> </span></a>
<a class="sourceLine" id="cb2-35" data-line-number="35"><span class="st"> </span><span class="kw">ungroup</span>() <span class="op">%&gt;%</span><span class="st"> </span></a>
<a class="sourceLine" id="cb2-36" data-line-number="36"><span class="st"> </span><span class="kw">mutate</span>(<span class="dt">full_desc=</span><span class="kw">ifelse</span>(gender<span class="op">==</span><span class="st">"F"</span>, <span class="st">"Female"</span>, <span class="st">"Male"</span>)) <span class="op">%&gt;%</span><span class="st"> </span></a>
<a class="sourceLine" id="cb2-37" data-line-number="37"><span class="st"> </span><span class="kw">collect</span>() <span class="op">%&gt;%</span><span class="st"> </span></a>
<a class="sourceLine" id="cb2-38" data-line-number="38"><span class="st"> </span><span class="kw">select</span>(<span class="dt">Title=</span>position_title, <span class="dt">Gender=</span>full_desc, <span class="dt">Count=</span>n)</a>
<a class="sourceLine" id="cb2-39" data-line-number="39"><span class="co">## # A tibble: 30 x 3</span></a>
<a class="sourceLine" id="cb2-40" data-line-number="40"><span class="co">## Title Gender Count</span></a>
<a class="sourceLine" id="cb2-41" data-line-number="41"><span class="co">## * &lt;chr&gt; &lt;chr&gt; &lt;int&gt;</span></a>
<a class="sourceLine" id="cb2-42" data-line-number="42"><span class="co">## 1 President Female 1</span></a>
<a class="sourceLine" id="cb2-43" data-line-number="43"><span class="co">## 2 VP Country Manager Male 3</span></a>
<a class="sourceLine" id="cb2-44" data-line-number="44"><span class="co">## 3 VP Country Manager Female 3</span></a>
<a class="sourceLine" id="cb2-45" data-line-number="45"><span class="co">## 4 VP Information Systems Female 1</span></a>
<a class="sourceLine" id="cb2-46" data-line-number="46"><span class="co">## 5 VP Human Resources Female 1</span></a>
<a class="sourceLine" id="cb2-47" data-line-number="47"><span class="co">## 6 Store Manager Female 13</span></a>
<a class="sourceLine" id="cb2-48" data-line-number="48"><span class="co">## 7 VP Finance Male 1</span></a>
<a class="sourceLine" id="cb2-49" data-line-number="49"><span class="co">## 8 Store Manager Male 11</span></a>
<a class="sourceLine" id="cb2-50" data-line-number="50"><span class="co">## 9 HQ Marketing Female 2</span></a>
<a class="sourceLine" id="cb2-51" data-line-number="51"><span class="co">## 10 HQ Information Systems Female 4</span></a>
<a class="sourceLine" id="cb2-52" data-line-number="52"><span class="co">## # ... with 20 more rows</span></a>
<a class="sourceLine" id="cb2-53" data-line-number="53"></a>
<a class="sourceLine" id="cb2-54" data-line-number="54"><span class="kw">arrange</span>(db, <span class="kw">desc</span>(employee_id)) <span class="op">%&gt;%</span><span class="st"> </span><span class="kw">print</span>(<span class="dt">n=</span><span class="dv">20</span>)</a>
<a class="sourceLine" id="cb2-55" data-line-number="55"><span class="co">## # Source: table&lt;cp.`employee.json`&gt; [?? x 20]</span></a>
<a class="sourceLine" id="cb2-56" data-line-number="56"><span class="co">## # Database: DrillConnection</span></a>
<a class="sourceLine" id="cb2-57" data-line-number="57"><span class="co">## # Ordered by: desc(employee_id)</span></a>
<a class="sourceLine" id="cb2-58" data-line-number="58"><span class="co">## store_id gender department_id birth_date supervisor_id last_name position_title hire_date management_role</span></a>
<a class="sourceLine" id="cb2-59" data-line-number="59"><span class="co">## &lt;int&gt; &lt;chr&gt; &lt;int&gt; &lt;date&gt; &lt;int&gt; &lt;chr&gt; &lt;chr&gt; &lt;dttm&gt; &lt;chr&gt; </span></a>
<a class="sourceLine" id="cb2-60" data-line-number="60"><span class="co">## 1 18 F 18 1914-02-02 1140 Stand Store Tempora… 1998-01-01 00:00:00 Store Temp Sta…</span></a>
<a class="sourceLine" id="cb2-61" data-line-number="61"><span class="co">## 2 18 M 18 1914-02-02 1140 Burnham Store Tempora… 1998-01-01 00:00:00 Store Temp Sta…</span></a>
<a class="sourceLine" id="cb2-62" data-line-number="62"><span class="co">## 3 18 F 18 1914-02-02 1139 Doolittle Store Tempora… 1998-01-01 00:00:00 Store Temp Sta…</span></a>
<a class="sourceLine" id="cb2-63" data-line-number="63"><span class="co">## 4 18 M 18 1914-02-02 1139 Pirnie Store Tempora… 1998-01-01 00:00:00 Store Temp Sta…</span></a>
<a class="sourceLine" id="cb2-64" data-line-number="64"><span class="co">## 5 18 M 17 1914-02-02 1140 Younce Store Permane… 1998-01-01 00:00:00 Store Full Tim…</span></a>
<a class="sourceLine" id="cb2-65" data-line-number="65"><span class="co">## 6 18 F 17 1914-02-02 1140 Biltoft Store Permane… 1998-01-01 00:00:00 Store Full Tim…</span></a>
<a class="sourceLine" id="cb2-66" data-line-number="66"><span class="co">## 7 18 M 17 1914-02-02 1139 Detwiler Store Permane… 1998-01-01 00:00:00 Store Full Tim…</span></a>
<a class="sourceLine" id="cb2-67" data-line-number="67"><span class="co">## 8 18 F 17 1914-02-02 1139 Ciruli Store Permane… 1998-01-01 00:00:00 Store Full Tim…</span></a>
<a class="sourceLine" id="cb2-68" data-line-number="68"><span class="co">## 9 18 F 16 1914-02-02 1140 Bishop Store Tempora… 1998-01-01 00:00:00 Store Full Tim…</span></a>
<a class="sourceLine" id="cb2-69" data-line-number="69"><span class="co">## 10 18 F 16 1914-02-02 1140 Cutwright Store Tempora… 1998-01-01 00:00:00 Store Full Tim…</span></a>
<a class="sourceLine" id="cb2-70" data-line-number="70"><span class="co">## 11 18 F 16 1914-02-02 1139 Anderson Store Tempora… 1998-01-01 00:00:00 Store Full Tim…</span></a>
<a class="sourceLine" id="cb2-71" data-line-number="71"><span class="co">## 12 18 F 16 1914-02-02 1139 Swartwood Store Tempora… 1998-01-01 00:00:00 Store Full Tim…</span></a>
<a class="sourceLine" id="cb2-72" data-line-number="72"><span class="co">## 13 18 M 15 1914-02-02 1140 Curtsinger Store Permane… 1998-01-01 00:00:00 Store Full Tim…</span></a>
<a class="sourceLine" id="cb2-73" data-line-number="73"><span class="co">## 14 18 F 15 1914-02-02 1140 Quick Store Permane… 1998-01-01 00:00:00 Store Full Tim…</span></a>
<a class="sourceLine" id="cb2-74" data-line-number="74"><span class="co">## 15 18 M 15 1914-02-02 1139 Souza Store Permane… 1998-01-01 00:00:00 Store Full Tim…</span></a>
<a class="sourceLine" id="cb2-75" data-line-number="75"><span class="co">## 16 18 M 15 1914-02-02 1139 Compagno Store Permane… 1998-01-01 00:00:00 Store Full Tim…</span></a>
<a class="sourceLine" id="cb2-76" data-line-number="76"><span class="co">## 17 18 M 11 1961-09-24 1139 Jaramillo Store Shift S… 1998-01-01 00:00:00 Store Manageme…</span></a>
<a class="sourceLine" id="cb2-77" data-line-number="77"><span class="co">## 18 18 M 11 1972-05-12 17 Belsey Store Assista… 1998-01-01 00:00:00 Store Manageme…</span></a>
<a class="sourceLine" id="cb2-78" data-line-number="78"><span class="co">## 19 12 M 18 1914-02-02 1069 Eichorn Store Tempora… 1998-01-01 00:00:00 Store Temp Sta…</span></a>
<a class="sourceLine" id="cb2-79" data-line-number="79"><span class="co">## 20 12 F 18 1914-02-02 1069 Geiermann Store Tempora… 1998-01-01 00:00:00 Store Temp Sta…</span></a>
<a class="sourceLine" id="cb2-80" data-line-number="80"><span class="co">## # ... with more rows, and 7 more variables: salary &lt;dbl&gt;, marital_status &lt;chr&gt;, full_name &lt;chr&gt;, employee_id &lt;int&gt;,</span></a>
<a class="sourceLine" id="cb2-81" data-line-number="81"><span class="co">## # education_level &lt;chr&gt;, first_name &lt;chr&gt;, position_id &lt;int&gt;</span></a>
<a class="sourceLine" id="cb2-82" data-line-number="82"></a>
<a class="sourceLine" id="cb2-83" data-line-number="83"><span class="kw">mutate</span>(db, <span class="dt">position_title=</span><span class="kw">tolower</span>(position_title)) <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb2-84" data-line-number="84"><span class="st"> </span><span class="kw">mutate</span>(<span class="dt">salary=</span><span class="kw">as.numeric</span>(salary)) <span class="op">%&gt;%</span><span class="st"> </span></a>
<a class="sourceLine" id="cb2-85" data-line-number="85"><span class="st"> </span><span class="kw">mutate</span>(<span class="dt">gender=</span><span class="kw">ifelse</span>(gender<span class="op">==</span><span class="st">"F"</span>, <span class="st">"Female"</span>, <span class="st">"Male"</span>)) <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb2-86" data-line-number="86"><span class="st"> </span><span class="kw">mutate</span>(<span class="dt">marital_status=</span><span class="kw">ifelse</span>(marital_status<span class="op">==</span><span class="st">"S"</span>, <span class="st">"Single"</span>, <span class="st">"Married"</span>)) <span class="op">%&gt;%</span><span class="st"> </span></a>
<a class="sourceLine" id="cb2-87" data-line-number="87"><span class="st"> </span><span class="kw">group_by</span>(supervisor_id) <span class="op">%&gt;%</span><span class="st"> </span></a>
<a class="sourceLine" id="cb2-88" data-line-number="88"><span class="st"> </span><span class="kw">summarise</span>(<span class="dt">underlings_count=</span><span class="kw">n</span>()) <span class="op">%&gt;%</span><span class="st"> </span></a>
<a class="sourceLine" id="cb2-89" data-line-number="89"><span class="st"> </span><span class="kw">collect</span>()</a>
<a class="sourceLine" id="cb2-90" data-line-number="90"><span class="co">## # A tibble: 112 x 2</span></a>
<a class="sourceLine" id="cb2-91" data-line-number="91"><span class="co">## supervisor_id underlings_count</span></a>
<a class="sourceLine" id="cb2-92" data-line-number="92"><span class="co">## * &lt;int&gt; &lt;int&gt;</span></a>
<a class="sourceLine" id="cb2-93" data-line-number="93"><span class="co">## 1 0 1</span></a>
<a class="sourceLine" id="cb2-94" data-line-number="94"><span class="co">## 2 1 7</span></a>
<a class="sourceLine" id="cb2-95" data-line-number="95"><span class="co">## 3 5 9</span></a>
<a class="sourceLine" id="cb2-96" data-line-number="96"><span class="co">## 4 4 2</span></a>
<a class="sourceLine" id="cb2-97" data-line-number="97"><span class="co">## 5 2 3</span></a>
<a class="sourceLine" id="cb2-98" data-line-number="98"><span class="co">## 6 20 2</span></a>
<a class="sourceLine" id="cb2-99" data-line-number="99"><span class="co">## 7 21 4</span></a>
<a class="sourceLine" id="cb2-100" data-line-number="100"><span class="co">## 8 22 7</span></a>
<a class="sourceLine" id="cb2-101" data-line-number="101"><span class="co">## 9 6 4</span></a>
<a class="sourceLine" id="cb2-102" data-line-number="102"><span class="co">## 10 36 2</span></a>
<a class="sourceLine" id="cb2-103" data-line-number="103"><span class="co">## # ... with 102 more rows</span></a></code></pre></div>
</div>
<div id="usage" class="section level3">
<div id="rest-api" class="section level3">
<h3 class="hasAnchor">
<a href="#usage" class="anchor"></a>Usage</h3>
<div class="sourceCode"><pre class="sourceCode r"><code class="sourceCode r"><span class="kw">library</span>(sergeant)
<span class="co"># current verison</span>
<span class="kw">packageVersion</span>(<span class="st">"sergeant"</span>)
<span class="co">#&gt; [1] '0.5.0'</span>
dc &lt;-<span class="st"> </span><span class="kw"><a href="reference/drill_connection.html">drill_connection</a></span>(<span class="st">"localhost"</span>)
<span class="kw"><a href="reference/drill_active.html">drill_active</a></span>(dc)
<span class="co">#&gt; [1] TRUE</span>
<span class="kw"><a href="reference/drill_version.html">drill_version</a></span>(dc)
<span class="co">#&gt; [1] "1.10.0"</span>
<span class="kw"><a href="reference/drill_storage.html">drill_storage</a></span>(dc)<span class="op">$</span>name
<span class="co">#&gt; [1] "cp" "dfs" "hbase" "hive" "kudu" "mongo" "s3"</span></code></pre></div>
<p>Working with the built-in JSON data sets:</p>
<div class="sourceCode"><pre class="sourceCode r"><code class="sourceCode r"><span class="kw"><a href="reference/drill_query.html">drill_query</a></span>(dc, <span class="st">"SELECT * FROM cp.`employee.json` limit 100"</span>)
<span class="co">#&gt; Parsed with column specification:</span>
<span class="co">#&gt; cols(</span>
<span class="co">#&gt; store_id = col_integer(),</span>
<span class="co">#&gt; gender = col_character(),</span>
<span class="co">#&gt; department_id = col_integer(),</span>
<span class="co">#&gt; birth_date = col_date(format = ""),</span>
<span class="co">#&gt; supervisor_id = col_integer(),</span>
<span class="co">#&gt; last_name = col_character(),</span>
<span class="co">#&gt; position_title = col_character(),</span>
<span class="co">#&gt; hire_date = col_datetime(format = ""),</span>
<span class="co">#&gt; management_role = col_character(),</span>
<span class="co">#&gt; salary = col_double(),</span>
<span class="co">#&gt; marital_status = col_character(),</span>
<span class="co">#&gt; full_name = col_character(),</span>
<span class="co">#&gt; employee_id = col_integer(),</span>
<span class="co">#&gt; education_level = col_character(),</span>
<span class="co">#&gt; first_name = col_character(),</span>
<span class="co">#&gt; position_id = col_integer()</span>
<span class="co">#&gt; )</span>
<span class="co">#&gt; # A tibble: 100 x 16</span>
<span class="co">#&gt; store_id gender department_id birth_date supervisor_id last_name position_title hire_date management_role</span>
<span class="co">#&gt; * &lt;int&gt; &lt;chr&gt; &lt;int&gt; &lt;date&gt; &lt;int&gt; &lt;chr&gt; &lt;chr&gt; &lt;dttm&gt; &lt;chr&gt;</span>
<span class="co">#&gt; 1 0 F 1 1961-08-26 0 Nowmer President 1994-12-01 Senior Management</span>
<span class="co">#&gt; 2 0 M 1 1915-07-03 1 Whelply VP Country Manager 1994-12-01 Senior Management</span>
<span class="co">#&gt; 3 0 M 1 1969-06-20 1 Spence VP Country Manager 1998-01-01 Senior Management</span>
<span class="co">#&gt; 4 0 F 1 1951-05-10 1 Gutierrez VP Country Manager 1998-01-01 Senior Management</span>
<span class="co">#&gt; 5 0 F 2 1942-10-08 1 Damstra VP Information Systems 1994-12-01 Senior Management</span>
<span class="co">#&gt; 6 0 F 3 1949-03-27 1 Kanagaki VP Human Resources 1994-12-01 Senior Management</span>
<span class="co">#&gt; 7 9 F 11 1922-08-10 5 Brunner Store Manager 1998-01-01 Store Management</span>
<span class="co">#&gt; 8 21 F 11 1979-06-23 5 Blumberg Store Manager 1998-01-01 Store Management</span>
<span class="co">#&gt; 9 0 M 5 1949-08-26 1 Stanz VP Finance 1994-12-01 Senior Management</span>
<span class="co">#&gt; 10 1 M 11 1967-06-20 5 Murraiin Store Manager 1998-01-01 Store Management</span>
<span class="co">#&gt; # ... with 90 more rows, and 7 more variables: salary &lt;dbl&gt;, marital_status &lt;chr&gt;, full_name &lt;chr&gt;, employee_id &lt;int&gt;,</span>
<span class="co">#&gt; # education_level &lt;chr&gt;, first_name &lt;chr&gt;, position_id &lt;int&gt;</span>
<span class="kw"><a href="reference/drill_query.html">drill_query</a></span>(dc, <span class="st">"SELECT COUNT(gender) AS gender FROM cp.`employee.json` GROUP BY gender"</span>)
<span class="co">#&gt; Parsed with column specification:</span>
<span class="co">#&gt; cols(</span>
<span class="co">#&gt; gender = col_integer()</span>
<span class="co">#&gt; )</span>
<span class="co">#&gt; # A tibble: 2 x 1</span>
<span class="co">#&gt; gender</span>
<span class="co">#&gt; * &lt;int&gt;</span>
<span class="co">#&gt; 1 601</span>
<span class="co">#&gt; 2 554</span>
<span class="kw"><a href="reference/drill_options.html">drill_options</a></span>(dc)
<span class="co">#&gt; # A tibble: 113 x 4</span>
<span class="co">#&gt; name value type kind</span>
<span class="co">#&gt; * &lt;chr&gt; &lt;chr&gt; &lt;chr&gt; &lt;chr&gt;</span>
<span class="co">#&gt; 1 planner.enable_hash_single_key TRUE SYSTEM BOOLEAN</span>
<span class="co">#&gt; 2 store.parquet.reader.pagereader.queuesize 2 SYSTEM LONG</span>
<span class="co">#&gt; 3 planner.enable_limit0_optimization FALSE SYSTEM BOOLEAN</span>
<span class="co">#&gt; 4 store.json.read_numbers_as_double FALSE SYSTEM BOOLEAN</span>
<span class="co">#&gt; 5 planner.enable_constant_folding TRUE SYSTEM BOOLEAN</span>
<span class="co">#&gt; 6 store.json.extended_types FALSE SYSTEM BOOLEAN</span>
<span class="co">#&gt; 7 planner.memory.non_blocking_operators_memory 64 SYSTEM LONG</span>
<span class="co">#&gt; 8 planner.enable_multiphase_agg TRUE SYSTEM BOOLEAN</span>
<span class="co">#&gt; 9 exec.query_profile.debug_mode FALSE SYSTEM BOOLEAN</span>
<span class="co">#&gt; 10 planner.filter.max_selectivity_estimate_factor 1 SYSTEM DOUBLE</span>
<span class="co">#&gt; # ... with 103 more rows</span>
<span class="kw"><a href="reference/drill_options.html">drill_options</a></span>(dc, <span class="st">"json"</span>)
<span class="co">#&gt; # A tibble: 7 x 4</span>
<span class="co">#&gt; name value type kind</span>
<span class="co">#&gt; &lt;chr&gt; &lt;chr&gt; &lt;chr&gt; &lt;chr&gt;</span>
<span class="co">#&gt; 1 store.json.read_numbers_as_double FALSE SYSTEM BOOLEAN</span>
<span class="co">#&gt; 2 store.json.extended_types FALSE SYSTEM BOOLEAN</span>
<span class="co">#&gt; 3 store.json.writer.uglify FALSE SYSTEM BOOLEAN</span>
<span class="co">#&gt; 4 store.json.reader.skip_invalid_records FALSE SYSTEM BOOLEAN</span>
<span class="co">#&gt; 5 store.json.reader.print_skipped_invalid_record_number FALSE SYSTEM BOOLEAN</span>
<span class="co">#&gt; 6 store.json.all_text_mode FALSE SYSTEM BOOLEAN</span>
<span class="co">#&gt; 7 store.json.writer.skip_null_fields TRUE SYSTEM BOOLEAN</span></code></pre></div>
<a href="#rest-api" class="anchor"></a>REST API</h3>
<div class="sourceCode" id="cb3"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb3-1" data-line-number="1">dc &lt;-<span class="st"> </span><span class="kw"><a href="reference/drill_connection.html">drill_connection</a></span>(<span class="st">"localhost"</span>) </a>
<a class="sourceLine" id="cb3-2" data-line-number="2"></a>
<a class="sourceLine" id="cb3-3" data-line-number="3"><span class="kw"><a href="reference/drill_active.html">drill_active</a></span>(dc)</a>
<a class="sourceLine" id="cb3-4" data-line-number="4"><span class="co">## [1] TRUE</span></a>
<a class="sourceLine" id="cb3-5" data-line-number="5"></a>
<a class="sourceLine" id="cb3-6" data-line-number="6"><span class="kw"><a href="reference/drill_version.html">drill_version</a></span>(dc)</a>
<a class="sourceLine" id="cb3-7" data-line-number="7"><span class="co">## [1] "1.13.0"</span></a>
<a class="sourceLine" id="cb3-8" data-line-number="8"></a>
<a class="sourceLine" id="cb3-9" data-line-number="9"><span class="kw"><a href="reference/drill_storage.html">drill_storage</a></span>(dc)<span class="op">$</span>name</a>
<a class="sourceLine" id="cb3-10" data-line-number="10"><span class="co">## [1] "cp" "dfs" "hbase" "hive" "kudu" "mongo" "s3"</span></a>
<a class="sourceLine" id="cb3-11" data-line-number="11"></a>
<a class="sourceLine" id="cb3-12" data-line-number="12"><span class="kw"><a href="reference/drill_query.html">drill_query</a></span>(dc, <span class="st">"SELECT * FROM cp.`employee.json` limit 100"</span>)</a>
<a class="sourceLine" id="cb3-13" data-line-number="13"><span class="co">## Parsed with column specification:</span></a>
<a class="sourceLine" id="cb3-14" data-line-number="14"><span class="co">## cols(</span></a>
<a class="sourceLine" id="cb3-15" data-line-number="15"><span class="co">## store_id = col_integer(),</span></a>
<a class="sourceLine" id="cb3-16" data-line-number="16"><span class="co">## gender = col_character(),</span></a>
<a class="sourceLine" id="cb3-17" data-line-number="17"><span class="co">## department_id = col_integer(),</span></a>
<a class="sourceLine" id="cb3-18" data-line-number="18"><span class="co">## birth_date = col_date(format = ""),</span></a>
<a class="sourceLine" id="cb3-19" data-line-number="19"><span class="co">## supervisor_id = col_integer(),</span></a>
<a class="sourceLine" id="cb3-20" data-line-number="20"><span class="co">## last_name = col_character(),</span></a>
<a class="sourceLine" id="cb3-21" data-line-number="21"><span class="co">## position_title = col_character(),</span></a>
<a class="sourceLine" id="cb3-22" data-line-number="22"><span class="co">## hire_date = col_datetime(format = ""),</span></a>
<a class="sourceLine" id="cb3-23" data-line-number="23"><span class="co">## management_role = col_character(),</span></a>
<a class="sourceLine" id="cb3-24" data-line-number="24"><span class="co">## salary = col_double(),</span></a>
<a class="sourceLine" id="cb3-25" data-line-number="25"><span class="co">## marital_status = col_character(),</span></a>
<a class="sourceLine" id="cb3-26" data-line-number="26"><span class="co">## full_name = col_character(),</span></a>
<a class="sourceLine" id="cb3-27" data-line-number="27"><span class="co">## employee_id = col_integer(),</span></a>
<a class="sourceLine" id="cb3-28" data-line-number="28"><span class="co">## education_level = col_character(),</span></a>
<a class="sourceLine" id="cb3-29" data-line-number="29"><span class="co">## first_name = col_character(),</span></a>
<a class="sourceLine" id="cb3-30" data-line-number="30"><span class="co">## position_id = col_integer()</span></a>
<a class="sourceLine" id="cb3-31" data-line-number="31"><span class="co">## )</span></a>
<a class="sourceLine" id="cb3-32" data-line-number="32"><span class="co">## # A tibble: 100 x 16</span></a>
<a class="sourceLine" id="cb3-33" data-line-number="33"><span class="co">## store_id gender department_id birth_date supervisor_id last_name position_title hire_date management_role</span></a>
<a class="sourceLine" id="cb3-34" data-line-number="34"><span class="co">## * &lt;int&gt; &lt;chr&gt; &lt;int&gt; &lt;date&gt; &lt;int&gt; &lt;chr&gt; &lt;chr&gt; &lt;dttm&gt; &lt;chr&gt; </span></a>
<a class="sourceLine" id="cb3-35" data-line-number="35"><span class="co">## 1 0 F 1 1961-08-26 0 Nowmer President 1994-12-01 00:00:00 Senior Managem…</span></a>
<a class="sourceLine" id="cb3-36" data-line-number="36"><span class="co">## 2 0 M 1 1915-07-03 1 Whelply VP Country Man… 1994-12-01 00:00:00 Senior Managem…</span></a>
<a class="sourceLine" id="cb3-37" data-line-number="37"><span class="co">## 3 0 M 1 1969-06-20 1 Spence VP Country Man… 1998-01-01 00:00:00 Senior Managem…</span></a>
<a class="sourceLine" id="cb3-38" data-line-number="38"><span class="co">## 4 0 F 1 1951-05-10 1 Gutierrez VP Country Man… 1998-01-01 00:00:00 Senior Managem…</span></a>
<a class="sourceLine" id="cb3-39" data-line-number="39"><span class="co">## 5 0 F 2 1942-10-08 1 Damstra VP Information… 1994-12-01 00:00:00 Senior Managem…</span></a>
<a class="sourceLine" id="cb3-40" data-line-number="40"><span class="co">## 6 0 F 3 1949-03-27 1 Kanagaki VP Human Resou… 1994-12-01 00:00:00 Senior Managem…</span></a>
<a class="sourceLine" id="cb3-41" data-line-number="41"><span class="co">## 7 9 F 11 1922-08-10 5 Brunner Store Manager 1998-01-01 00:00:00 Store Manageme…</span></a>
<a class="sourceLine" id="cb3-42" data-line-number="42"><span class="co">## 8 21 F 11 1979-06-23 5 Blumberg Store Manager 1998-01-01 00:00:00 Store Manageme…</span></a>
<a class="sourceLine" id="cb3-43" data-line-number="43"><span class="co">## 9 0 M 5 1949-08-26 1 Stanz VP Finance 1994-12-01 00:00:00 Senior Managem…</span></a>
<a class="sourceLine" id="cb3-44" data-line-number="44"><span class="co">## 10 1 M 11 1967-06-20 5 Murraiin Store Manager 1998-01-01 00:00:00 Store Manageme…</span></a>
<a class="sourceLine" id="cb3-45" data-line-number="45"><span class="co">## # ... with 90 more rows, and 7 more variables: salary &lt;dbl&gt;, marital_status &lt;chr&gt;, full_name &lt;chr&gt;, employee_id &lt;int&gt;,</span></a>
<a class="sourceLine" id="cb3-46" data-line-number="46"><span class="co">## # education_level &lt;chr&gt;, first_name &lt;chr&gt;, position_id &lt;int&gt;</span></a>
<a class="sourceLine" id="cb3-47" data-line-number="47"></a>
<a class="sourceLine" id="cb3-48" data-line-number="48"><span class="kw"><a href="reference/drill_query.html">drill_query</a></span>(dc, <span class="st">"SELECT COUNT(gender) AS gender FROM cp.`employee.json` GROUP BY gender"</span>)</a>
<a class="sourceLine" id="cb3-49" data-line-number="49"><span class="co">## Parsed with column specification:</span></a>
<a class="sourceLine" id="cb3-50" data-line-number="50"><span class="co">## cols(</span></a>
<a class="sourceLine" id="cb3-51" data-line-number="51"><span class="co">## gender = col_integer()</span></a>
<a class="sourceLine" id="cb3-52" data-line-number="52"><span class="co">## )</span></a>
<a class="sourceLine" id="cb3-53" data-line-number="53"><span class="co">## # A tibble: 2 x 1</span></a>
<a class="sourceLine" id="cb3-54" data-line-number="54"><span class="co">## gender</span></a>
<a class="sourceLine" id="cb3-55" data-line-number="55"><span class="co">## * &lt;int&gt;</span></a>
<a class="sourceLine" id="cb3-56" data-line-number="56"><span class="co">## 1 601</span></a>
<a class="sourceLine" id="cb3-57" data-line-number="57"><span class="co">## 2 554</span></a>
<a class="sourceLine" id="cb3-58" data-line-number="58"></a>
<a class="sourceLine" id="cb3-59" data-line-number="59"><span class="kw"><a href="reference/drill_options.html">drill_options</a></span>(dc)</a>
<a class="sourceLine" id="cb3-60" data-line-number="60"><span class="co">## # A tibble: 138 x 5</span></a>
<a class="sourceLine" id="cb3-61" data-line-number="61"><span class="co">## name value accessibleScopes kind optionScope</span></a>
<a class="sourceLine" id="cb3-62" data-line-number="62"><span class="co">## * &lt;chr&gt; &lt;chr&gt; &lt;chr&gt; &lt;chr&gt; &lt;chr&gt; </span></a>
<a class="sourceLine" id="cb3-63" data-line-number="63"><span class="co">## 1 debug.validate_iterators FALSE ALL BOOLEAN BOOT </span></a>
<a class="sourceLine" id="cb3-64" data-line-number="64"><span class="co">## 2 debug.validate_vectors FALSE ALL BOOLEAN BOOT </span></a>
<a class="sourceLine" id="cb3-65" data-line-number="65"><span class="co">## 3 drill.exec.functions.cast_empty_string_to_null FALSE ALL BOOLEAN BOOT </span></a>
<a class="sourceLine" id="cb3-66" data-line-number="66"><span class="co">## 4 drill.exec.hashagg.fallback.enabled FALSE ALL BOOLEAN BOOT </span></a>
<a class="sourceLine" id="cb3-67" data-line-number="67"><span class="co">## 5 drill.exec.memory.operator.output_batch_size 16777216 SYSTEM LONG BOOT </span></a>
<a class="sourceLine" id="cb3-68" data-line-number="68"><span class="co">## 6 drill.exec.storage.file.partition.column.label dir ALL STRING BOOT </span></a>
<a class="sourceLine" id="cb3-69" data-line-number="69"><span class="co">## 7 drill.exec.storage.implicit.filename.column.label filename ALL STRING BOOT </span></a>
<a class="sourceLine" id="cb3-70" data-line-number="70"><span class="co">## 8 drill.exec.storage.implicit.filepath.column.label filepath ALL STRING BOOT </span></a>
<a class="sourceLine" id="cb3-71" data-line-number="71"><span class="co">## 9 drill.exec.storage.implicit.fqn.column.label fqn ALL STRING BOOT </span></a>
<a class="sourceLine" id="cb3-72" data-line-number="72"><span class="co">## 10 drill.exec.storage.implicit.suffix.column.label suffix ALL STRING BOOT </span></a>
<a class="sourceLine" id="cb3-73" data-line-number="73"><span class="co">## # ... with 128 more rows</span></a>
<a class="sourceLine" id="cb3-74" data-line-number="74"></a>
<a class="sourceLine" id="cb3-75" data-line-number="75"><span class="kw"><a href="reference/drill_options.html">drill_options</a></span>(dc, <span class="st">"json"</span>)</a>
<a class="sourceLine" id="cb3-76" data-line-number="76"><span class="co">## # A tibble: 9 x 5</span></a>
<a class="sourceLine" id="cb3-77" data-line-number="77"><span class="co">## name value accessibleScopes kind optionScope</span></a>
<a class="sourceLine" id="cb3-78" data-line-number="78"><span class="co">## &lt;chr&gt; &lt;chr&gt; &lt;chr&gt; &lt;chr&gt; &lt;chr&gt; </span></a>
<a class="sourceLine" id="cb3-79" data-line-number="79"><span class="co">## 1 store.json.all_text_mode FALSE ALL BOOLEAN BOOT </span></a>
<a class="sourceLine" id="cb3-80" data-line-number="80"><span class="co">## 2 store.json.extended_types FALSE ALL BOOLEAN BOOT </span></a>
<a class="sourceLine" id="cb3-81" data-line-number="81"><span class="co">## 3 store.json.read_numbers_as_double FALSE ALL BOOLEAN BOOT </span></a>
<a class="sourceLine" id="cb3-82" data-line-number="82"><span class="co">## 4 store.json.reader.allow_nan_inf TRUE ALL BOOLEAN BOOT </span></a>
<a class="sourceLine" id="cb3-83" data-line-number="83"><span class="co">## 5 store.json.reader.print_skipped_invalid_record_number FALSE ALL BOOLEAN BOOT </span></a>
<a class="sourceLine" id="cb3-84" data-line-number="84"><span class="co">## 6 store.json.reader.skip_invalid_records FALSE ALL BOOLEAN BOOT </span></a>
<a class="sourceLine" id="cb3-85" data-line-number="85"><span class="co">## 7 store.json.writer.allow_nan_inf TRUE ALL BOOLEAN BOOT </span></a>
<a class="sourceLine" id="cb3-86" data-line-number="86"><span class="co">## 8 store.json.writer.skip_null_fields TRUE ALL BOOLEAN BOOT </span></a>
<a class="sourceLine" id="cb3-87" data-line-number="87"><span class="co">## 9 store.json.writer.uglify FALSE ALL BOOLEAN BOOT</span></a></code></pre></div>
</div>
</div>
<div id="working-with-parquet-files" class="section level2">
<h2 class="hasAnchor">
<a href="#working-with-parquet-files" class="anchor"></a>Working with parquet files</h2>
<div class="sourceCode"><pre class="sourceCode r"><code class="sourceCode r"><span class="kw"><a href="reference/drill_query.html">drill_query</a></span>(dc, <span class="st">"SELECT * FROM dfs.`/usr/local/drill/sample-data/nation.parquet` LIMIT 5"</span>)
<span class="co">#&gt; Parsed with column specification:</span>
<span class="co">#&gt; cols(</span>
<span class="co">#&gt; N_COMMENT = col_character(),</span>
<span class="co">#&gt; N_NAME = col_character(),</span>
<span class="co">#&gt; N_NATIONKEY = col_integer(),</span>
<span class="co">#&gt; N_REGIONKEY = col_integer()</span>
<span class="co">#&gt; )</span>
<span class="co">#&gt; # A tibble: 5 x 4</span>
<span class="co">#&gt; N_COMMENT N_NAME N_NATIONKEY N_REGIONKEY</span>
<span class="co">#&gt; * &lt;chr&gt; &lt;chr&gt; &lt;int&gt; &lt;int&gt;</span>
<span class="co">#&gt; 1 haggle. carefully f ALGERIA 0 0</span>
<span class="co">#&gt; 2 al foxes promise sly ARGENTINA 1 1</span>
<span class="co">#&gt; 3 y alongside of the p BRAZIL 2 1</span>
<span class="co">#&gt; 4 eas hang ironic, sil CANADA 3 1</span>
<span class="co">#&gt; 5 y above the carefull EGYPT 4 4</span></code></pre></div>
<div class="sourceCode" id="cb4"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb4-1" data-line-number="1"><span class="kw"><a href="reference/drill_query.html">drill_query</a></span>(dc, <span class="st">"SELECT * FROM dfs.`/usr/local/drill/sample-data/nation.parquet` LIMIT 5"</span>)</a>
<a class="sourceLine" id="cb4-2" data-line-number="2"><span class="co">## Parsed with column specification:</span></a>
<a class="sourceLine" id="cb4-3" data-line-number="3"><span class="co">## cols(</span></a>
<a class="sourceLine" id="cb4-4" data-line-number="4"><span class="co">## N_COMMENT = col_character(),</span></a>
<a class="sourceLine" id="cb4-5" data-line-number="5"><span class="co">## N_NAME = col_character(),</span></a>
<a class="sourceLine" id="cb4-6" data-line-number="6"><span class="co">## N_NATIONKEY = col_integer(),</span></a>
<a class="sourceLine" id="cb4-7" data-line-number="7"><span class="co">## N_REGIONKEY = col_integer()</span></a>
<a class="sourceLine" id="cb4-8" data-line-number="8"><span class="co">## )</span></a>
<a class="sourceLine" id="cb4-9" data-line-number="9"><span class="co">## # A tibble: 5 x 4</span></a>
<a class="sourceLine" id="cb4-10" data-line-number="10"><span class="co">## N_COMMENT N_NAME N_NATIONKEY N_REGIONKEY</span></a>
<a class="sourceLine" id="cb4-11" data-line-number="11"><span class="co">## * &lt;chr&gt; &lt;chr&gt; &lt;int&gt; &lt;int&gt;</span></a>
<a class="sourceLine" id="cb4-12" data-line-number="12"><span class="co">## 1 haggle. carefully f ALGERIA 0 0</span></a>
<a class="sourceLine" id="cb4-13" data-line-number="13"><span class="co">## 2 al foxes promise sly ARGENTINA 1 1</span></a>
<a class="sourceLine" id="cb4-14" data-line-number="14"><span class="co">## 3 y alongside of the p BRAZIL 2 1</span></a>
<a class="sourceLine" id="cb4-15" data-line-number="15"><span class="co">## 4 eas hang ironic, sil CANADA 3 1</span></a>
<a class="sourceLine" id="cb4-16" data-line-number="16"><span class="co">## 5 y above the carefull EGYPT 4 4</span></a></code></pre></div>
<p>Including multiple parquet files in different directories (note the wildcard support):</p>
<div class="sourceCode"><pre class="sourceCode r"><code class="sourceCode r"><span class="kw"><a href="reference/drill_query.html">drill_query</a></span>(dc, <span class="st">"SELECT * FROM dfs.`/usr/local/drill/sample-data/nations*/nations*.parquet` LIMIT 5"</span>)
<span class="co">#&gt; Parsed with column specification:</span>
<span class="co">#&gt; cols(</span>
<span class="co">#&gt; N_COMMENT = col_character(),</span>
<span class="co">#&gt; N_NAME = col_character(),</span>
<span class="co">#&gt; N_NATIONKEY = col_integer(),</span>
<span class="co">#&gt; N_REGIONKEY = col_integer(),</span>
<span class="co">#&gt; dir0 = col_character()</span>
<span class="co">#&gt; )</span>
<span class="co">#&gt; # A tibble: 5 x 5</span>
<span class="co">#&gt; N_COMMENT N_NAME N_NATIONKEY N_REGIONKEY dir0</span>
<span class="co">#&gt; * &lt;chr&gt; &lt;chr&gt; &lt;int&gt; &lt;int&gt; &lt;chr&gt;</span>
<span class="co">#&gt; 1 haggle. carefully f ALGERIA 0 0 nationsMF</span>
<span class="co">#&gt; 2 al foxes promise sly ARGENTINA 1 1 nationsMF</span>
<span class="co">#&gt; 3 y alongside of the p BRAZIL 2 1 nationsMF</span>
<span class="co">#&gt; 4 eas hang ironic, sil CANADA 3 1 nationsMF</span>
<span class="co">#&gt; 5 y above the carefull EGYPT 4 4 nationsMF</span></code></pre></div>
<div id="a-preview-of-the-built-in-support-for-spatial-ops" class="section level3">
<div class="sourceCode" id="cb5"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb5-1" data-line-number="1"><span class="kw"><a href="reference/drill_query.html">drill_query</a></span>(dc, <span class="st">"SELECT * FROM dfs.`/usr/local/drill/sample-data/nations*/nations*.parquet` LIMIT 5"</span>)</a>
<a class="sourceLine" id="cb5-2" data-line-number="2"><span class="co">## Parsed with column specification:</span></a>
<a class="sourceLine" id="cb5-3" data-line-number="3"><span class="co">## cols(</span></a>
<a class="sourceLine" id="cb5-4" data-line-number="4"><span class="co">## N_COMMENT = col_character(),</span></a>
<a class="sourceLine" id="cb5-5" data-line-number="5"><span class="co">## N_NAME = col_character(),</span></a>
<a class="sourceLine" id="cb5-6" data-line-number="6"><span class="co">## N_NATIONKEY = col_integer(),</span></a>
<a class="sourceLine" id="cb5-7" data-line-number="7"><span class="co">## dir0 = col_character(),</span></a>
<a class="sourceLine" id="cb5-8" data-line-number="8"><span class="co">## N_REGIONKEY = col_integer()</span></a>
<a class="sourceLine" id="cb5-9" data-line-number="9"><span class="co">## )</span></a>
<a class="sourceLine" id="cb5-10" data-line-number="10"><span class="co">## # A tibble: 5 x 5</span></a>
<a class="sourceLine" id="cb5-11" data-line-number="11"><span class="co">## N_COMMENT N_NAME N_NATIONKEY dir0 N_REGIONKEY</span></a>
<a class="sourceLine" id="cb5-12" data-line-number="12"><span class="co">## * &lt;chr&gt; &lt;chr&gt; &lt;int&gt; &lt;chr&gt; &lt;int&gt;</span></a>
<a class="sourceLine" id="cb5-13" data-line-number="13"><span class="co">## 1 haggle. carefully f ALGERIA 0 nationsSF 0</span></a>
<a class="sourceLine" id="cb5-14" data-line-number="14"><span class="co">## 2 al foxes promise sly ARGENTINA 1 nationsSF 1</span></a>
<a class="sourceLine" id="cb5-15" data-line-number="15"><span class="co">## 3 y alongside of the p BRAZIL 2 nationsSF 1</span></a>
<a class="sourceLine" id="cb5-16" data-line-number="16"><span class="co">## 4 eas hang ironic, sil CANADA 3 nationsSF 1</span></a>
<a class="sourceLine" id="cb5-17" data-line-number="17"><span class="co">## 5 y above the carefull EGYPT 4 nationsSF 4</span></a></code></pre></div>
<div id="drill-has-built-in-support-for-spatial-ops" class="section level3">
<h3 class="hasAnchor">
<a href="#a-preview-of-the-built-in-support-for-spatial-ops" class="anchor"></a>A preview of the built-in support for spatial ops</h3>
<a href="#drill-has-built-in-support-for-spatial-ops" class="anchor"></a>Drill has built-in support for spatial ops</h3>
<p>Via: <a href="https://github.com/k255/drill-gis" class="uri">https://github.com/k255/drill-gis</a></p>
<p>A common use case is to select data within boundary of given polygon:</p>
<div class="sourceCode"><pre class="sourceCode r"><code class="sourceCode r"><span class="kw"><a href="reference/drill_query.html">drill_query</a></span>(dc, <span class="st">"</span>
<span class="st">select columns[2] as city, columns[4] as lon, columns[3] as lat</span>
<span class="st"> from cp.`sample-data/CA-cities.csv`</span>
<span class="st"> where</span>
<span class="st"> ST_Within(</span>
<span class="st"> ST_Point(columns[4], columns[3]),</span>
<span class="st"> ST_GeomFromText(</span>
<span class="st"> 'POLYGON((-121.95 37.28, -121.94 37.35, -121.84 37.35, -121.84 37.28, -121.95 37.28))'</span>
<span class="st"> )</span>
<span class="st"> )</span>
<span class="st">"</span>)
<span class="co">#&gt; Parsed with column specification:</span>
<span class="co">#&gt; cols(</span>
<span class="co">#&gt; city = col_character(),</span>
<span class="co">#&gt; lon = col_double(),</span>
<span class="co">#&gt; lat = col_double()</span>
<span class="co">#&gt; )</span>
<span class="co">#&gt; # A tibble: 7 x 3</span>
<span class="co">#&gt; city lon lat</span>
<span class="co">#&gt; * &lt;chr&gt; &lt;dbl&gt; &lt;dbl&gt;</span>
<span class="co">#&gt; 1 Burbank -121.9316 37.32328</span>
<span class="co">#&gt; 2 San Jose -121.8950 37.33939</span>
<span class="co">#&gt; 3 Lick -121.8458 37.28716</span>
<span class="co">#&gt; 4 Willow Glen -121.8897 37.30855</span>
<span class="co">#&gt; 5 Buena Vista -121.9166 37.32133</span>
<span class="co">#&gt; 6 Parkmoor -121.9308 37.32105</span>
<span class="co">#&gt; 7 Fruitdale -121.9327 37.31086</span></code></pre></div>
</div>
<div id="jdbc" class="section level3">
<h3 class="hasAnchor">
<a href="#jdbc" class="anchor"></a>JDBC</h3>
<div class="sourceCode"><pre class="sourceCode r"><code class="sourceCode r"><span class="kw">library</span>(RJDBC)
<span class="co">#&gt; Loading required package: rJava</span>
<span class="co"># Use this if connecting to a cluster with zookeeper</span>
<span class="co"># con &lt;- drill_jdbc("drill-node:2181", "drillbits1") </span>
<span class="co"># Use the following if running drill-embedded</span>
con &lt;-<span class="st"> </span><span class="kw"><a href="reference/drill_jdbc.html">drill_jdbc</a></span>(<span class="st">"localhost:31010"</span>, <span class="dt">use_zk=</span><span class="ot">FALSE</span>)
<span class="co">#&gt; Using [jdbc:drill:drillbit=localhost:31010]...</span>
<span class="kw"><a href="reference/drill_query.html">drill_query</a></span>(con, <span class="st">"SELECT * FROM cp.`employee.json`"</span>)
<span class="co">#&gt; # A tibble: 1,155 x 16</span>
<span class="co">#&gt; employee_id full_name first_name last_name position_id position_title store_id department_id</span>
<span class="co">#&gt; * &lt;dbl&gt; &lt;chr&gt; &lt;chr&gt; &lt;chr&gt; &lt;dbl&gt; &lt;chr&gt; &lt;dbl&gt; &lt;dbl&gt;</span>
<span class="co">#&gt; 1 1 Sheri Nowmer Sheri Nowmer 1 President 0 1</span>
<span class="co">#&gt; 2 2 Derrick Whelply Derrick Whelply 2 VP Country Manager 0 1</span>
<span class="co">#&gt; 3 4 Michael Spence Michael Spence 2 VP Country Manager 0 1</span>
<span class="co">#&gt; 4 5 Maya Gutierrez Maya Gutierrez 2 VP Country Manager 0 1</span>
<span class="co">#&gt; 5 6 Roberta Damstra Roberta Damstra 3 VP Information Systems 0 2</span>
<span class="co">#&gt; 6 7 Rebecca Kanagaki Rebecca Kanagaki 4 VP Human Resources 0 3</span>
<span class="co">#&gt; 7 8 Kim Brunner Kim Brunner 11 Store Manager 9 11</span>
<span class="co">#&gt; 8 9 Brenda Blumberg Brenda Blumberg 11 Store Manager 21 11</span>
<span class="co">#&gt; 9 10 Darren Stanz Darren Stanz 5 VP Finance 0 5</span>
<span class="co">#&gt; 10 11 Jonathan Murraiin Jonathan Murraiin 11 Store Manager 1 11</span>
<span class="co">#&gt; # ... with 1,145 more rows, and 8 more variables: birth_date &lt;chr&gt;, hire_date &lt;chr&gt;, salary &lt;dbl&gt;, supervisor_id &lt;dbl&gt;,</span>
<span class="co">#&gt; # education_level &lt;chr&gt;, marital_status &lt;chr&gt;, gender &lt;chr&gt;, management_role &lt;chr&gt;</span>
<span class="co"># but it can work via JDBC function calls, too</span>
<span class="kw">dbGetQuery</span>(con, <span class="st">"SELECT * FROM cp.`employee.json`"</span>) <span class="op">%&gt;%</span><span class="st"> </span>
<span class="st"> </span>tibble<span class="op">::</span><span class="kw">as_tibble</span>()
<span class="co">#&gt; # A tibble: 1,155 x 16</span>
<span class="co">#&gt; employee_id full_name first_name last_name position_id position_title store_id department_id</span>
<span class="co">#&gt; * &lt;dbl&gt; &lt;chr&gt; &lt;chr&gt; &lt;chr&gt; &lt;dbl&gt; &lt;chr&gt; &lt;dbl&gt; &lt;dbl&gt;</span>
<span class="co">#&gt; 1 1 Sheri Nowmer Sheri Nowmer 1 President 0 1</span>
<span class="co">#&gt; 2 2 Derrick Whelply Derrick Whelply 2 VP Country Manager 0 1</span>
<span class="co">#&gt; 3 4 Michael Spence Michael Spence 2 VP Country Manager 0 1</span>
<span class="co">#&gt; 4 5 Maya Gutierrez Maya Gutierrez 2 VP Country Manager 0 1</span>
<span class="co">#&gt; 5 6 Roberta Damstra Roberta Damstra 3 VP Information Systems 0 2</span>
<span class="co">#&gt; 6 7 Rebecca Kanagaki Rebecca Kanagaki 4 VP Human Resources 0 3</span>
<span class="co">#&gt; 7 8 Kim Brunner Kim Brunner 11 Store Manager 9 11</span>
<span class="co">#&gt; 8 9 Brenda Blumberg Brenda Blumberg 11 Store Manager 21 11</span>
<span class="co">#&gt; 9 10 Darren Stanz Darren Stanz 5 VP Finance 0 5</span>
<span class="co">#&gt; 10 11 Jonathan Murraiin Jonathan Murraiin 11 Store Manager 1 11</span>
<span class="co">#&gt; # ... with 1,145 more rows, and 8 more variables: birth_date &lt;chr&gt;, hire_date &lt;chr&gt;, salary &lt;dbl&gt;, supervisor_id &lt;dbl&gt;,</span>
<span class="co">#&gt; # education_level &lt;chr&gt;, marital_status &lt;chr&gt;, gender &lt;chr&gt;, management_role &lt;chr&gt;</span></code></pre></div>
<div class="sourceCode" id="cb6"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb6-1" data-line-number="1"><span class="kw"><a href="reference/drill_query.html">drill_query</a></span>(dc, <span class="st">"</span></a>
<a class="sourceLine" id="cb6-2" data-line-number="2"><span class="st">select columns[2] as city, columns[4] as lon, columns[3] as lat</span></a>
<a class="sourceLine" id="cb6-3" data-line-number="3"><span class="st"> from cp.`sample-data/CA-cities.csv`</span></a>
<a class="sourceLine" id="cb6-4" data-line-number="4"><span class="st"> where</span></a>
<a class="sourceLine" id="cb6-5" data-line-number="5"><span class="st"> ST_Within(</span></a>
<a class="sourceLine" id="cb6-6" data-line-number="6"><span class="st"> ST_Point(columns[4], columns[3]),</span></a>
<a class="sourceLine" id="cb6-7" data-line-number="7"><span class="st"> ST_GeomFromText(</span></a>
<a class="sourceLine" id="cb6-8" data-line-number="8"><span class="st"> 'POLYGON((-121.95 37.28, -121.94 37.35, -121.84 37.35, -121.84 37.28, -121.95 37.28))'</span></a>
<a class="sourceLine" id="cb6-9" data-line-number="9"><span class="st"> )</span></a>
<a class="sourceLine" id="cb6-10" data-line-number="10"><span class="st"> )</span></a>
<a class="sourceLine" id="cb6-11" data-line-number="11"><span class="st">"</span>)</a>
<a class="sourceLine" id="cb6-12" data-line-number="12"><span class="co">## Parsed with column specification:</span></a>
<a class="sourceLine" id="cb6-13" data-line-number="13"><span class="co">## cols(</span></a>
<a class="sourceLine" id="cb6-14" data-line-number="14"><span class="co">## city = col_character(),</span></a>
<a class="sourceLine" id="cb6-15" data-line-number="15"><span class="co">## lon = col_double(),</span></a>
<a class="sourceLine" id="cb6-16" data-line-number="16"><span class="co">## lat = col_double()</span></a>
<a class="sourceLine" id="cb6-17" data-line-number="17"><span class="co">## )</span></a>
<a class="sourceLine" id="cb6-18" data-line-number="18"><span class="co">## # A tibble: 7 x 3</span></a>
<a class="sourceLine" id="cb6-19" data-line-number="19"><span class="co">## city lon lat</span></a>
<a class="sourceLine" id="cb6-20" data-line-number="20"><span class="co">## * &lt;chr&gt; &lt;dbl&gt; &lt;dbl&gt;</span></a>
<a class="sourceLine" id="cb6-21" data-line-number="21"><span class="co">## 1 Burbank -122. 37.3</span></a>
<a class="sourceLine" id="cb6-22" data-line-number="22"><span class="co">## 2 San Jose -122. 37.3</span></a>
<a class="sourceLine" id="cb6-23" data-line-number="23"><span class="co">## 3 Lick -122. 37.3</span></a>
<a class="sourceLine" id="cb6-24" data-line-number="24"><span class="co">## 4 Willow Glen -122. 37.3</span></a>
<a class="sourceLine" id="cb6-25" data-line-number="25"><span class="co">## 5 Buena Vista -122. 37.3</span></a>
<a class="sourceLine" id="cb6-26" data-line-number="26"><span class="co">## 6 Parkmoor -122. 37.3</span></a>
<a class="sourceLine" id="cb6-27" data-line-number="27"><span class="co">## 7 Fruitdale -122. 37.3</span></a></code></pre></div>
</div>
<div id="test-results" class="section level3">
<h3 class="hasAnchor">
<a href="#test-results" class="anchor"></a>Test Results</h3>
<div class="sourceCode"><pre class="sourceCode r"><code class="sourceCode r"><span class="kw">library</span>(sergeant)
<span class="kw">library</span>(testthat)
<span class="co">#&gt; </span>
<span class="co">#&gt; Attaching package: 'testthat'</span>
<span class="co">#&gt; The following object is masked from 'package:dplyr':</span>
<span class="co">#&gt; </span>
<span class="co">#&gt; matches</span>
<span class="kw">date</span>()
<span class="co">#&gt; [1] "Sat Jun 17 20:47:11 2017"</span>
devtools<span class="op">::</span><span class="kw">test</span>()
<span class="co">#&gt; Loading sergeant</span>
<span class="co">#&gt; Testing sergeant</span>
<span class="co">#&gt; basic functionality: ..</span>
<span class="co">#&gt; </span>
<span class="co">#&gt; DONE ===================================================================================================================</span></code></pre></div>
<div class="sourceCode" id="cb7"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb7-1" data-line-number="1"><span class="kw">library</span>(sergeant)</a>
<a class="sourceLine" id="cb7-2" data-line-number="2"><span class="kw">library</span>(testthat)</a>
<a class="sourceLine" id="cb7-3" data-line-number="3"><span class="co">## </span></a>
<a class="sourceLine" id="cb7-4" data-line-number="4"><span class="co">## Attaching package: 'testthat'</span></a>
<a class="sourceLine" id="cb7-5" data-line-number="5"><span class="co">## The following object is masked from 'package:dplyr':</span></a>
<a class="sourceLine" id="cb7-6" data-line-number="6"><span class="co">## </span></a>
<a class="sourceLine" id="cb7-7" data-line-number="7"><span class="co">## matches</span></a>
<a class="sourceLine" id="cb7-8" data-line-number="8"><span class="co">## The following object is masked from 'package:purrr':</span></a>
<a class="sourceLine" id="cb7-9" data-line-number="9"><span class="co">## </span></a>
<a class="sourceLine" id="cb7-10" data-line-number="10"><span class="co">## is_null</span></a>
<a class="sourceLine" id="cb7-11" data-line-number="11"></a>
<a class="sourceLine" id="cb7-12" data-line-number="12"><span class="kw">date</span>()</a>
<a class="sourceLine" id="cb7-13" data-line-number="13"><span class="co">## [1] "Sun Oct 14 09:30:28 2018"</span></a>
<a class="sourceLine" id="cb7-14" data-line-number="14"></a>
<a class="sourceLine" id="cb7-15" data-line-number="15">devtools<span class="op">::</span><span class="kw"><a href="http://www.rdocumentation.org/packages/devtools/topics/test">test</a></span>()</a>
<a class="sourceLine" id="cb7-16" data-line-number="16"><span class="co">## Loading sergeant</span></a>
<a class="sourceLine" id="cb7-17" data-line-number="17"><span class="co">## Testing sergeant</span></a>
<a class="sourceLine" id="cb7-18" data-line-number="18"><span class="co">## ✔ | OK F W S | Context</span></a>
<a class="sourceLine" id="cb7-19" data-line-number="19"><span class="co">## </span></a>
<a class="sourceLine" id="cb7-20" data-line-number="20"><span class="op">|</span><span class="st"> </span><span class="dv">0</span> <span class="op">|</span><span class="st"> </span>dplyr API</a>
<a class="sourceLine" id="cb7-21" data-line-number="21"><span class="op">|</span><span class="st"> </span><span class="dv">1</span> <span class="op">|</span><span class="st"> </span>dplyr API</a>
<a class="sourceLine" id="cb7-22" data-line-number="22"><span class="op">|</span><span class="st"> </span><span class="dv">2</span> <span class="op">|</span><span class="st"> </span>dplyr API</a>
<a class="sourceLine" id="cb7-23" data-line-number="23"><span class="op">|</span><span class="st"> </span><span class="dv">3</span> <span class="op">|</span><span class="st"> </span>dplyr API</a>
<a class="sourceLine" id="cb7-24" data-line-number="24"><span class="op">|</span><span class="st"> </span><span class="dv">3</span> <span class="op">|</span><span class="st"> </span>dplyr API [<span class="fl">0.1</span> s]</a>
<a class="sourceLine" id="cb7-25" data-line-number="25"><span class="co">## </span></a>
<a class="sourceLine" id="cb7-26" data-line-number="26"><span class="op">|</span><span class="st"> </span><span class="dv">0</span> <span class="op">|</span><span class="st"> </span>REST API</a>
<a class="sourceLine" id="cb7-27" data-line-number="27"><span class="op">|</span><span class="st"> </span><span class="dv">1</span> <span class="op">|</span><span class="st"> </span>REST API</a>
<a class="sourceLine" id="cb7-28" data-line-number="28"><span class="op">|</span><span class="st"> </span><span class="dv">2</span> <span class="op">|</span><span class="st"> </span>REST API</a>
<a class="sourceLine" id="cb7-29" data-line-number="29"><span class="op">|</span><span class="st"> </span><span class="dv">3</span> <span class="op">|</span><span class="st"> </span>REST API</a>
<a class="sourceLine" id="cb7-30" data-line-number="30"><span class="op">|</span><span class="st"> </span><span class="dv">4</span> <span class="op">|</span><span class="st"> </span>REST API</a>
<a class="sourceLine" id="cb7-31" data-line-number="31"><span class="op">|</span><span class="st"> </span><span class="dv">5</span> <span class="op">|</span><span class="st"> </span>REST API</a>
<a class="sourceLine" id="cb7-32" data-line-number="32"><span class="op">|</span><span class="st"> </span><span class="dv">6</span> <span class="op">|</span><span class="st"> </span>REST API</a>
<a class="sourceLine" id="cb7-33" data-line-number="33"><span class="op">|</span><span class="st"> </span><span class="dv">7</span> <span class="op">|</span><span class="st"> </span>REST API</a>
<a class="sourceLine" id="cb7-34" data-line-number="34"><span class="op">|</span><span class="st"> </span><span class="dv">8</span> <span class="op">|</span><span class="st"> </span>REST API</a>
<a class="sourceLine" id="cb7-35" data-line-number="35"><span class="op">|</span><span class="st"> </span><span class="dv">9</span> <span class="op">|</span><span class="st"> </span>REST API</a>
<a class="sourceLine" id="cb7-36" data-line-number="36"><span class="op">|</span><span class="st"> </span><span class="dv">10</span> <span class="op">|</span><span class="st"> </span>REST API</a>
<a class="sourceLine" id="cb7-37" data-line-number="37"><span class="op">|</span><span class="st"> </span><span class="dv">11</span> <span class="op">|</span><span class="st"> </span>REST API</a>
<a class="sourceLine" id="cb7-38" data-line-number="38"><span class="op">|</span><span class="st"> </span><span class="dv">12</span> <span class="op">|</span><span class="st"> </span>REST API</a>
<a class="sourceLine" id="cb7-39" data-line-number="39"><span class="op">|</span><span class="st"> </span><span class="dv">13</span> <span class="op">|</span><span class="st"> </span>REST API</a>
<a class="sourceLine" id="cb7-40" data-line-number="40"><span class="op">|</span><span class="st"> </span><span class="dv">14</span> <span class="op">|</span><span class="st"> </span>REST API</a>
<a class="sourceLine" id="cb7-41" data-line-number="41"><span class="op">|</span><span class="st"> </span><span class="dv">15</span> <span class="op">|</span><span class="st"> </span>REST API</a>
<a class="sourceLine" id="cb7-42" data-line-number="42"><span class="op">|</span><span class="st"> </span><span class="dv">16</span> <span class="op">|</span><span class="st"> </span>REST API</a>
<a class="sourceLine" id="cb7-43" data-line-number="43"><span class="op">|</span><span class="st"> </span><span class="dv">16</span> <span class="op">|</span><span class="st"> </span>REST API [<span class="fl">1.9</span> s]</a>
<a class="sourceLine" id="cb7-44" data-line-number="44"><span class="co">## </span></a>
<a class="sourceLine" id="cb7-45" data-line-number="45"><span class="co">## ══ Results ═════════════════════════════════════════════════════════</span></a>
<a class="sourceLine" id="cb7-46" data-line-number="46"><span class="co">## Duration: 2.1 s</span></a>
<a class="sourceLine" id="cb7-47" data-line-number="47"><span class="co">## </span></a>
<a class="sourceLine" id="cb7-48" data-line-number="48"><span class="co">## OK: 19</span></a>
<a class="sourceLine" id="cb7-49" data-line-number="49"><span class="co">## Failed: 0</span></a>
<a class="sourceLine" id="cb7-50" data-line-number="50"><span class="co">## Warnings: 0</span></a>
<a class="sourceLine" id="cb7-51" data-line-number="51"><span class="co">## Skipped: 0</span></a></code></pre></div>
</div>
<div id="code-of-conduct" class="section level3">
<h3 class="hasAnchor">
<a href="#code-of-conduct" class="anchor"></a>Code of Conduct</h3>
<p>Please note that this project is released with a <a href="CONDUCT.md">Contributor Code of Conduct</a>. By participating in this project you agree to abide by its terms.</p>
</div>
<div id="sergeant-metrics" class="section level2">
<h2 class="hasAnchor">
<a href="#sergeant-metrics" class="anchor"></a>sergeant Metrics</h2>
<table class="table">
<thead><tr class="header">
<th align="left">Lang</th>
<th align="right"># Files</th>
<th align="right">(%)</th>
<th align="right">LoC</th>
<th align="right">(%)</th>
<th align="right">Blank lines</th>
<th align="right">(%)</th>
<th align="right"># Lines</th>
<th align="right">(%)</th>
</tr></thead>
<tbody>
<tr class="odd">
<td align="left">R</td>
<td align="right">12</td>
<td align="right">0.92</td>
<td align="right">625</td>
<td align="right">0.92</td>
<td align="right">173</td>
<td align="right">0.75</td>
<td align="right">562</td>
<td align="right">0.87</td>
</tr>
<tr class="even">
<td align="left">Rmd</td>
<td align="right">1</td>
<td align="right">0.08</td>
<td align="right">55</td>
<td align="right">0.08</td>
<td align="right">58</td>
<td align="right">0.25</td>
<td align="right">86</td>
<td align="right">0.13</td>
</tr>
</tbody>
</table>
</div>
<div id="code-of-conduct" class="section level2">
<h2 class="hasAnchor">
<a href="#code-of-conduct" class="anchor"></a>Code of Conduct</h2>
<p>Please note that this project is released with a <a href="CONDUCT.html">Contributor Code of Conduct</a>. By participating in this project you agree to abide by its terms.</p>
</div>
</div>
</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<h2 class="hasAnchor">
<a href="#sidebar" class="anchor"></a>Links</h2>
<div class="links">
<h2>Links</h2>
<ul class="list-unstyled">
<li>Browse source code at <br><a href="http://github.com/hrbrmstr/sergeant">http://​github.com/​hrbrmstr/​sergeant</a>
<li>Download from CRAN at <br><a href="https://cloud.r-project.org/package=sergeant">https://​cloud.r-project.org/​package=sergeant</a>
</li>
<li>Browse source code at <br><a href="https://github.com/hrbrmstr/sergeant">https://​github.com/​hrbrmstr/​sergeant</a>
</li>
<li>Report a bug at <br><a href="https://github.com/hrbrmstr/sergeant/issues">https://​github.com/​hrbrmstr/​sergeant/​issues</a>
</li>
</ul>
</div>
<div class="license">
<h2>License</h2>
<p><a href="https://opensource.org/licenses/mit-license.php">MIT</a> + file <a href="LICENSE.html">LICENSE</a></p>
<ul class="list-unstyled">
<li>
<a href="https://opensource.org/licenses/mit-license.php">MIT</a> + file <a href="LICENSE-text.html">LICENSE</a>
</li>
</ul>
</div>
<div class="developers">
<h2>Developers</h2>
<ul class="list-unstyled">
<li>Bob Rudis <br><small class="roles"> Author, maintainer </small> </li>
<li>Bob Rudis <br><small class="roles"> Author, maintainer </small> <a href="https://orcid.org/0000-0001-5670-2640" target="orcid.widget"><img src="https://members.orcid.org/sites/default/files/vector_iD_icon.svg" class="orcid" height="16"></a> </li>
<li><a href="authors.html">All authors...</a></li>
</ul>
</div>
<div class="dev-status">
<h2>Dev status</h2>
<ul class="list-unstyled">
<li><a href="https://doi.org/10.5281/zenodo.1248912"><img src="https://zenodo.org/badge/DOI/10.5281/zenodo.1248912.svg" alt="DOI"></a></li>
<li><a href="https://travis-ci.org/hrbrmstr/sergeant"><img src="https://travis-ci.org/hrbrmstr/sergeant.svg?branch=master" alt="Travis-CI Build Status"></a></li>
<li><a href="https://codecov.io/gh/hrbrmstr/sergeant"><img src="https://codecov.io/gh/hrbrmstr/sergeant/branch/master/graph/badge.svg" alt="Coverage Status"></a></li>
<li><a href="https://cran.r-project.org/package=sergeant"><img src="http://www.r-pkg.org/badges/version/sergeant" alt="CRAN_Status_Badge"></a></li>
</ul>
</div>
</div>
</div>
@ -561,11 +581,13 @@ devtools<span class="op">::</span><span class="kw">test</span>()
</div>
<div class="pkgdown">
<p>Site built with <a href="http://hadley.github.io/pkgdown/">pkgdown</a>.</p>
<p>Site built with <a href="http://pkgdown.r-lib.org/">pkgdown</a>.</p>
</div>
</footer>
</div>
</body>
</html>

146
docs/news/index.html

@ -6,7 +6,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>All news • sergeant</title>
<title>Changelog • sergeant</title>
<!-- jquery -->
<script src="https://code.jquery.com/jquery-3.1.0.min.js" integrity="sha384-nrOSfDHtoPMzJHjVTdCopGqIqeYETSXhZDFyniQ8ZHcVy08QesyHcnOUpMpqnmWq" crossorigin="anonymous"></script>
@ -18,13 +18,22 @@
<!-- Font Awesome icons -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-T8Gy5hrqNKT+hzMclPo118YTQO6cYprQmhrYwIiQ/3axmI1hQomh7Ud2hPOy8SP1" crossorigin="anonymous">
<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.7.1/clipboard.min.js" integrity="sha384-cV+rhyOuRHc9Ub/91rihWcGmMmCXDeksTtCihMupQHSsi8GIIRDG0ThDc3HGQFJ3" crossorigin="anonymous"></script>
<!-- sticky kit -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/sticky-kit/1.1.3/sticky-kit.min.js" integrity="sha256-c4Rlo1ZozqTPE2RLuvbusY3+SU1pQaJC0TjuhygMipw=" crossorigin="anonymous"></script>
<!-- pkgdown -->
<link href="../pkgdown.css" rel="stylesheet">
<script src="../jquery.sticky-kit.min.js"></script>
<script src="../pkgdown.js"></script>
<meta property="og:title" content="Changelog" />
<!-- mathjax -->
<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
@ -47,26 +56,37 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="../index.html">sergeant</a>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">sergeant</a>
<span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="Released package">0.7.0</span>
</span>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="../reference/index.html">Reference</a>
</li>
<li>
<a href="../news/index.html">News</a>
<a href="../news/index.html">Changelog</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="http://github.com/hrbrmstr/sergeant">
<a href="https://github.com/hrbrmstr/sergeant">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->
@ -74,48 +94,81 @@
</header>
<div class="row">
<div class="col-md-9">
<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
<h1>Change log <small>All releases</small></h1>
<h1>Changelog <small></small></h1>
<small>Source: <a href='https://github.com/hrbrmstr/sergeant/blob/master/NEWS.md'><code>NEWS.md</code></a></small>
</div>
<div class="contents">
<div id="sergeant-0-5-0" class="section level1">
<h1 class="hasAnchor">
<a href="#sergeant-0-5-0" class="anchor"></a>sergeant 0.5.0</h1>
<div id="sergeant-0-7-0-beta" class="section level1">
<h1 class="page-header">
<a href="#sergeant-0-7-0-beta" class="anchor"></a>sergeant 0.7.0-BETA<small> Unreleased </small>
</h1>
<ul>
<li>make rJava &amp; RJDBC optional (WIP)</li>
<li>separated out Java-based functions into a sibling package</li>
</ul>
</div>
<div id="sergeant-0-7-0-alpha" class="section level1">
<h1 class="page-header">
<a href="#sergeant-0-7-0-alpha" class="anchor"></a>sergeant 0.7.0-ALPHA<small> Unreleased </small>
</h1>
<ul>
<li>enhanced JDBC connectivity</li>
<li>updated REST API to handle new features in Drill 1.14.0</li>
</ul>
</div>
<div id="sergeant-0-6-0" class="section level1">
<h1 class="page-header">
<a href="#sergeant-0-6-0" class="anchor"></a>sergeant 0.6.0<small> Unreleased </small>
</h1>
<ul>
<li>Authentication support for DBI/dplyr and <code><a href="../reference/drill_connection.html">drill_connection()</a></code> pure REST interface</li>
</ul>
</div>
<div id="sergeant-0-5-2" class="section level1">
<h1 class="page-header">
<a href="#sergeant-0-5-2" class="anchor"></a>sergeant 0.5.2<small> 2017-07-17 </small>
</h1>
<ul>
<li>Make rJava &amp; RJDBC optional (WIP)</li>
<li>Hack to remove “;” at end of queries sent to <code><a href="../reference/drill_query.html">drill_query()</a></code>
</li>
<li>Added <code>dbplyr</code> windows functions to <code>sql_translate_env</code>
</li>
</ul>
</div>
<div id="sergeant-0-4-0" class="section level1">
<h1 class="hasAnchor">
<a href="#sergeant-0-4-0" class="anchor"></a>sergeant 0.4.0</h1>
<h1 class="page-header">
<a href="#sergeant-0-4-0" class="anchor"></a>sergeant 0.4.0<small> Unreleased </small>
</h1>
<ul>
<li>Getting ready for new <code>dplyr</code> (thx to Edward Visel)</li>
<li>Cleaned up roxygen docs so that <code>src_drill</code> is exported now.</li>
</ul>
</div>
<div id="sergeant-0-3-2" class="section level1">
<h1 class="hasAnchor">
<a href="#sergeant-0-3-2" class="anchor"></a>sergeant 0.3.2</h1>
<h1 class="page-header">
<a href="#sergeant-0-3-2" class="anchor"></a>sergeant 0.3.2<small> Unreleased </small>
</h1>
<ul>
<li>Finally got quoting done. I thought I had before but I guess I hadn’t.</li>
<li>Added documnentation for built-in and custom Drill function that are supported.</li>
</ul>
</div>
<div id="sergeant-0-3-1-9000" class="section level1">
<h1 class="hasAnchor">
<a href="#sergeant-0-3-1-9000" class="anchor"></a>sergeant 0.3.1.9000</h1>
<h1 class="page-header">
<a href="#sergeant-0-3-1-9000" class="anchor"></a>sergeant 0.3.1.9000<small> Unreleased </small>
</h1>
<ul>
<li>fixed <code><a href="../reference/src_drill.html">src_drill()</a></code> example</li>
<li>JDBC driver still in github repo but no longer included in pkg builds. See README.md or <code><a href="../reference/drill_jdbc.html">drill_jdbc()</a></code> help for more information on using the JDBC driver with sergeant.</li>
<li>JDBC driver still in github repo but no longer included in pkg builds. See README.md or <code>drill_jdbc()</code> help for more information on using the JDBC driver with sergeant.</li>
</ul>
</div>
<div id="sergeant-0-3-0-9000" class="section level1">
<h1 class="hasAnchor">
<a href="#sergeant-0-3-0-9000" class="anchor"></a>sergeant 0.3.0.9000</h1>
<h1 class="page-header">
<a href="#sergeant-0-3-0-9000" class="anchor"></a>sergeant 0.3.0.9000<small> Unreleased </small>
</h1>
<ul>
<li>New DBI interface (to the REST API)</li>
<li>dplyr interface now uses the DBI interace to the REST API</li>
@ -123,61 +176,69 @@
</ul>
</div>
<div id="sergeant-0-2-1-9000" class="section level1">
<h1 class="hasAnchor">
<a href="#sergeant-0-2-1-9000" class="anchor"></a>sergeant 0.2.1.9000</h1>
<h1 class="page-header">
<a href="#sergeant-0-2-1-9000" class="anchor"></a>sergeant 0.2.1.9000<small> Unreleased </small>
</h1>
<ul>
<li>implemented a large subset of Drill SQL Functions <a href="https://drill.apache.org/docs/about-sql-function-examples/" class="uri">https://drill.apache.org/docs/about-sql-function-examples/</a>
</li>
</ul>
</div>
<div id="sergeant-0-2-0-9000" class="section level1">
<h1 class="hasAnchor">
<a href="#sergeant-0-2-0-9000" class="anchor"></a>sergeant 0.2.0.9000</h1>
<h1 class="page-header">
<a href="#sergeant-0-2-0-9000" class="anchor"></a>sergeant 0.2.0.9000<small> Unreleased </small>
</h1>
<ul>
<li>experimental alpha dplyr driver</li>
</ul>
</div>
<div id="sergeant-0-1-2-9000" class="section level1">
<h1 class="hasAnchor">
<a href="#sergeant-0-1-2-9000" class="anchor"></a>sergeant 0.1.2.9000</h1>
<h1 class="page-header">
<a href="#sergeant-0-1-2-9000" class="anchor"></a>sergeant 0.1.2.9000<small> Unreleased </small>
</h1>
<ul>
<li>can pass RJDBC connections made with <code><a href="../reference/drill_jdbc.html">drill_jdbc()</a></code> to <code><a href="../reference/drill_query.html">drill_query()</a></code>
<li>can pass RJDBC connections made with <code>drill_jdbc()</code> to <code><a href="../reference/drill_query.html">drill_query()</a></code>
</li>
<li>finally enaled <code>nodes</code> parameter to be a multi-element character vector as it said in the function description</li>
</ul>
</div>
<div id="sergeant-0-1-2-9000-1" class="section level1">
<h1 class="hasAnchor">
<a href="#sergeant-0-1-2-9000-1" class="anchor"></a>sergeant 0.1.2.9000</h1>
<h1 class="page-header">
<a href="#sergeant-0-1-2-9000-1" class="anchor"></a>sergeant 0.1.2.9000<small> Unreleased </small>
</h1>
<ul>
<li>support embedded drill JDBC connection</li>
</ul>
</div>
<div id="sergeant-0-1-1-9000" class="section level1">
<h1 class="hasAnchor">
<a href="#sergeant-0-1-1-9000" class="anchor"></a>sergeant 0.1.1.9000</h1>
<h1 class="page-header">
<a href="#sergeant-0-1-1-9000" class="anchor"></a>sergeant 0.1.1.9000<small> Unreleased </small>
</h1>
<ul>
<li>tweaked <code><a href="../reference/drill_query.html">drill_query()</a></code> and <code><a href="../reference/drill_version.html">drill_version()</a></code>
</li>
</ul>
</div>
<div id="sergeant-0-1-0-9000" class="section level1">
<h1 class="hasAnchor">
<a href="#sergeant-0-1-0-9000" class="anchor"></a>sergeant 0.1.0.9000</h1>
<h1 class="page-header">
<a href="#sergeant-0-1-0-9000" class="anchor"></a>sergeant 0.1.0.9000<small> Unreleased </small>
</h1>
<ul>
<li>Added JDBC connector and included JDBC driver in the package (for now)</li>
<li>Changed idiom to piping in a connection object</li>
<li>Added a <code>NEWS.md</code> file to track changes to the package.</li>
</ul>
</div>
</div>
</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<div id="tocnav">
<h2>Contents</h2>
<ul class="nav nav-pills nav-stacked">
<li><a href="#sergeant-0-5-0">0.5.0</a></li>
<li><a href="#sergeant-0-7-0-beta">0.7.0</a></li>
<li><a href="#sergeant-0-7-0-alpha">0.7.0</a></li>
<li><a href="#sergeant-0-6-0">0.6.0</a></li>
<li><a href="#sergeant-0-5-2">0.5.2</a></li>
<li><a href="#sergeant-0-4-0">0.4.0</a></li>
<li><a href="#sergeant-0-3-2">0.3.2</a></li>
<li><a href="#sergeant-0-3-1-9000">0.3.1.9000</a></li>
@ -200,11 +261,14 @@
</div>
<div class="pkgdown">
<p>Site built with <a href="http://hadley.github.io/pkgdown/">pkgdown</a>.</p>
<p>Site built with <a href="http://pkgdown.r-lib.org/">pkgdown</a>.</p>
</div>
</footer>
</div>
</body>
</html>

88
docs/pkgdown.css

@ -1,13 +1,32 @@
/* Sticker footer */
/* Sticky footer */
/**
* Basic idea: https://philipwalton.github.io/solved-by-flexbox/demos/sticky-footer/
* Details: https://github.com/philipwalton/solved-by-flexbox/blob/master/assets/css/components/site.css
*
* .Site -> body > .container
* .Site-content -> body > .container .row
* .footer -> footer
*
* Key idea seems to be to ensure that .container and __all its parents__
* have height set to 100%
*
*/
html, body {
height: 100%;
}
body > .container {
display: flex;
padding-top: 60px;
min-height: calc(100vh);
height: 100%;
flex-direction: column;
padding-top: 60px;
}
body > .container .row {
flex: 1;
flex: 1 0 auto;
}
footer {
@ -16,6 +35,7 @@ footer {
border-top: 1px solid #e5e5e5;
color: #666;
display: flex;
flex-shrink: 0;
}
footer p {
margin-bottom: 0;
@ -38,6 +58,12 @@ img {
max-width: 100%;
}
/* Typographic tweaking ---------------------------------*/
.contents h1.page-header {
margin-top: calc(-60px + 1em);
}
/* Section anchors ---------------------------------*/
a.anchor {
@ -68,7 +94,7 @@ a.anchor {
.contents h1, .contents h2, .contents h3, .contents h4 {
padding-top: 60px;
margin-top: -60px;
margin-top: -40px;
}
/* Static header placement on mobile devices */
@ -100,10 +126,14 @@ a.anchor {
margin-bottom: 0.5em;
}
.orcid {
height: 16px;
vertical-align: middle;
}
/* Reference index & topics ----------------------------------------------- */
.ref-index th {font-weight: normal;}
.ref-index h2 {font-size: 20px;}
.ref-index td {vertical-align: top;}
.ref-index .alias {width: 40%;}
@ -137,15 +167,30 @@ pre, code {
color: #333;
}
pre img {
pre code {
overflow: auto;
word-wrap: normal;
white-space: pre;
}
pre .img {
margin: 5px 0;
}
pre .img img {
background-color: #fff;
display: block;
height: auto;
}
code a, pre a {
color: #375f84;
}
a.sourceLine:hover {
text-decoration: none;
}
.fl {color: #1514b5;}
.fu {color: #000000;} /* function */
.ch,.st {color: #036a07;} /* string */
@ -156,3 +201,32 @@ code a, pre a {
.error { color: orange; font-weight: bolder;}
.warning { color: #6A0366; font-weight: bolder;}
/* Clipboard --------------------------*/
.hasCopyButton {
position: relative;
}
.btn-copy-ex {
position: absolute;
right: 0;
top: 0;
visibility: hidden;
}
.hasCopyButton:hover button.btn-copy-ex {
visibility: visible;
}
/* mark.js ----------------------------*/
mark {
background-color: rgba(255, 255, 51, 0.5);
border-bottom: 2px solid rgba(255, 153, 51, 0.3);
padding: 1px;
}
/* vertical spacing after htmlwidgets */
.html-widget {
margin-bottom: 10px;
}

114
docs/pkgdown.js

@ -1,8 +1,110 @@
$(function() {
$("#sidebar").stick_in_parent({offset_top: 40});
$('body').scrollspy({
target: '#sidebar',
offset: 60
/* http://gregfranko.com/blog/jquery-best-practices/ */
(function($) {
$(function() {
$("#sidebar")
.stick_in_parent({offset_top: 40})
.on('sticky_kit:bottom', function(e) {
$(this).parent().css('position', 'static');
})
.on('sticky_kit:unbottom', function(e) {
$(this).parent().css('position', 'relative');
});
$('body').scrollspy({
target: '#sidebar',
offset: 60
});
$('[data-toggle="tooltip"]').tooltip();
var cur_path = paths(location.pathname);
var links = $("#navbar ul li a");
var max_length = -1;
var pos = -1;
for (var i = 0; i < links.length; i++) {
if (links[i].getAttribute("href") === "#")
continue;
var path = paths(links[i].pathname);
var length = prefix_length(cur_path, path);
if (length > max_length) {
max_length = length;
pos = i;
}
}
// Add class to parent <li>, and enclosing <li> if in dropdown
if (pos >= 0) {
var menu_anchor = $(links[pos]);
menu_anchor.parent().addClass("active");
menu_anchor.closest("li.dropdown").addClass("active");
}
});
});
function paths(pathname) {
var pieces = pathname.split("/");
pieces.shift(); // always starts with /
var end = pieces[pieces.length - 1];
if (end === "index.html" || end === "")
pieces.pop();
return(pieces);
}
function prefix_length(needle, haystack) {
if (needle.length > haystack.length)
return(0);
// Special case for length-0 haystack, since for loop won't run
if (haystack.length === 0) {
return(needle.length === 0 ? 1 : 0);
}
for (var i = 0; i < haystack.length; i++) {
if (needle[i] != haystack[i])
return(i);
}
return(haystack.length);
}
/* Clipboard --------------------------*/
function changeTooltipMessage(element, msg) {
var tooltipOriginalTitle=element.getAttribute('data-original-title');
element.setAttribute('data-original-title', msg);
$(element).tooltip('show');
element.setAttribute('data-original-title', tooltipOriginalTitle);
}
if(Clipboard.isSupported()) {
$(document).ready(function() {
var copyButton = "<button type='button' class='btn btn-primary btn-copy-ex' type = 'submit' title='Copy to clipboard' aria-hidden='true' data-toggle='tooltip' data-placement='left auto' data-trigger='hover' data-clipboard-copy><i class='fa fa-copy' aria-hidden='true'></i></button>";
$(".examples, div.sourceCode").addClass("hasCopyButton");
// Insert copy buttons:
$(copyButton).prependTo(".hasCopyButton");
// Initialize tooltips:
$('.btn-copy-ex').tooltip({container: 'body'});
// Initialize clipboard:
var clipboardBtnCopies = new Clipboard('[data-clipboard-copy]', {
text: function(trigger) {
return trigger.parentNode.textContent;
}
});
clipboardBtnCopies.on('success', function(e) {
changeTooltipMessage(e.trigger, 'Copied!');
e.clearSelection();
});
clipboardBtnCopies.on('error', function() {
changeTooltipMessage(e.trigger,'Press Ctrl+C or Command+C to copy');
});
});
}
})(window.jQuery || window.$)

5
docs/pkgdown.yml

@ -0,0 +1,5 @@
pandoc: 2.2.1
pkgdown: 1.1.0
pkgdown_sha: ~
articles: []

59
docs/reference/DrilDriver-class.html

@ -18,13 +18,25 @@
<!-- Font Awesome icons -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-T8Gy5hrqNKT+hzMclPo118YTQO6cYprQmhrYwIiQ/3axmI1hQomh7Ud2hPOy8SP1" crossorigin="anonymous">
<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.7.1/clipboard.min.js" integrity="sha384-cV+rhyOuRHc9Ub/91rihWcGmMmCXDeksTtCihMupQHSsi8GIIRDG0ThDc3HGQFJ3" crossorigin="anonymous"></script>
<!-- sticky kit -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/sticky-kit/1.1.3/sticky-kit.min.js" integrity="sha256-c4Rlo1ZozqTPE2RLuvbusY3+SU1pQaJC0TjuhygMipw=" crossorigin="anonymous"></script>
<!-- pkgdown -->
<link href="../pkgdown.css" rel="stylesheet">
<script src="../jquery.sticky-kit.min.js"></script>
<script src="../pkgdown.js"></script>
<meta property="og:title" content="Unload driver — dbUnloadDriver,DrillDriver-method" />
<meta property="og:description" content="Unload driver" />
<meta name="twitter:card" content="summary" />
<!-- mathjax -->
<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
@ -47,26 +59,37 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="../index.html">sergeant</a>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">sergeant</a>
<span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="Released package">0.7.0</span>
</span>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="../reference/index.html">Reference</a>
</li>
<li>
<a href="../news/index.html">News</a>
<a href="../news/index.html">Changelog</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="http://github.com/hrbrmstr/sergeant">
<a href="https://github.com/hrbrmstr/sergeant">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->
@ -74,20 +97,24 @@
</header>
<div class="row">
<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
<h1>Unload driver</h1>
<small class="dont-index">Source: <a href='https://github.com/hrbrmstr/sergeant/blob/master/R/dbi.r'><code>R/dbi.r</code></a></small>
<div class="hidden name"><code>DrilDriver-class.Rd</code></div>
</div>
<div class="ref-description">
<p>Unload driver</p>
</div>
<pre class="usage"><span class='co'># S4 method for DrillDriver</span>
<span class='fu'>dbUnloadDriver</span>(<span class='no'>drv</span>, <span class='no'>...</span>)</pre>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a> Arguments</h2>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a>Arguments</h2>
<table class="ref-arguments">
<colgroup><col class="name" /><col class="desc" /></colgroup>
<tr>
@ -100,13 +127,22 @@
</tr>
</table>
<h2 class="hasAnchor" id="see-also"><a class="anchor" href="#see-also"></a>See also</h2>
<div class='dont-index'><p>Other Drill REST DBI API: <code><a href='DrillConnection-class.html'>DrillConnection-class</a></code>,
<code><a href='DrillDriver-class.html'>DrillDriver-class</a></code>,
<code><a href='DrillResult-class.html'>DrillResult-class</a></code>, <code><a href='Drill.html'>Drill</a></code>,
<code><a href='dbDataType-DrillConnection-method.html'>dbDataType,DrillConnection-method</a></code></p></div>
</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<h2>Contents</h2>
<ul class="nav nav-pills nav-stacked">
<li><a href="#arguments">Arguments</a></li>
</ul>
<li><a href="#see-also">See also</a></li>
</ul>
</div>
</div>
@ -117,11 +153,14 @@
</div>
<div class="pkgdown">
<p>Site built with <a href="http://hadley.github.io/pkgdown/">pkgdown</a>.</p>
<p>Site built with <a href="http://pkgdown.r-lib.org/">pkgdown</a>.</p>
</div>
</footer>
</div>
</body>
</html>

72
docs/reference/Drill.html

@ -18,13 +18,26 @@
<!-- Font Awesome icons -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-T8Gy5hrqNKT+hzMclPo118YTQO6cYprQmhrYwIiQ/3axmI1hQomh7Ud2hPOy8SP1" crossorigin="anonymous">
<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.7.1/clipboard.min.js" integrity="sha384-cV+rhyOuRHc9Ub/91rihWcGmMmCXDeksTtCihMupQHSsi8GIIRDG0ThDc3HGQFJ3" crossorigin="anonymous"></script>
<!-- sticky kit -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/sticky-kit/1.1.3/sticky-kit.min.js" integrity="sha256-c4Rlo1ZozqTPE2RLuvbusY3+SU1pQaJC0TjuhygMipw=" crossorigin="anonymous"></script>
<!-- pkgdown -->
<link href="../pkgdown.css" rel="stylesheet">
<script src="../jquery.sticky-kit.min.js"></script>
<script src="../pkgdown.js"></script>
<meta property="og:title" content="Drill — Drill" />
<meta property="og:description" content="Drill
Connect to Drill" />
<meta name="twitter:card" content="summary" />
<!-- mathjax -->
<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
@ -47,26 +60,37 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="../index.html">sergeant</a>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">sergeant</a>
<span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="Released package">0.7.0</span>
</span>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="../reference/index.html">Reference</a>
</li>
<li>
<a href="../news/index.html">News</a>
<a href="../news/index.html">Changelog</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="http://github.com/hrbrmstr/sergeant">
<a href="https://github.com/hrbrmstr/sergeant">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->
@ -74,24 +98,28 @@
</header>
<div class="row">
<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
<h1>Drill</h1>
<small class="dont-index">Source: <a href='https://github.com/hrbrmstr/sergeant/blob/master/R/dbi.r'><code>R/dbi.r</code></a></small>
<div class="hidden name"><code>Drill.Rd</code></div>
</div>
<div class="ref-description">
<p>Drill</p>
<p>Connect to Drill</p>
</div>
<pre class="usage"><span class='fu'>Drill</span>()
<span class='co'># S4 method for DrillDriver</span>
<span class='fu'>dbConnect</span>(<span class='no'>drv</span>, <span class='kw'>host</span> <span class='kw'>=</span> <span class='st'>"localhost"</span>, <span class='kw'>port</span> <span class='kw'>=</span> <span class='fl'>8047L</span>,
<span class='kw'>ssl</span> <span class='kw'>=</span> <span class='fl'>FALSE</span>, <span class='no'>...</span>)</pre>
<span class='kw'>ssl</span> <span class='kw'>=</span> <span class='fl'>FALSE</span>, <span class='kw'>username</span> <span class='kw'>=</span> <span class='kw'>NULL</span>, <span class='kw'>password</span> <span class='kw'>=</span> <span class='kw'>NULL</span>, <span class='no'>...</span>)</pre>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a> Arguments</h2>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a>Arguments</h2>
<table class="ref-arguments">
<colgroup><col class="name" /><col class="desc" /></colgroup>
<tr>
@ -111,18 +139,37 @@
<td><p>use ssl?</p></td>
</tr>
<tr>
<th>username, password</th>
<td><p>credentials</p></td>
</tr>
<tr>
<th>...</th>
<td><p>Extra optional parameters</p></td>
</tr>
</table>
<h2 class="hasAnchor" id="see-also"><a class="anchor" href="#see-also"></a>See also</h2>
<div class='dont-index'><p>Other Drill REST DBI API: <code><a href='DrillConnection-class.html'>DrillConnection-class</a></code>,
<code><a href='DrillDriver-class.html'>DrillDriver-class</a></code>,
<code><a href='DrillResult-class.html'>DrillResult-class</a></code>,
<code><a href='dbDataType-DrillConnection-method.html'>dbDataType,DrillConnection-method</a></code>,
<code><a href='DrilDriver-class.html'>dbUnloadDriver,DrillDriver-method</a></code></p>
<p>Other Drill REST DBI API: <code><a href='DrillConnection-class.html'>DrillConnection-class</a></code>,
<code><a href='DrillDriver-class.html'>DrillDriver-class</a></code>,
<code><a href='DrillResult-class.html'>DrillResult-class</a></code>,
<code><a href='dbDataType-DrillConnection-method.html'>dbDataType,DrillConnection-method</a></code>,
<code><a href='DrilDriver-class.html'>dbUnloadDriver,DrillDriver-method</a></code></p></div>
</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<h2>Contents</h2>
<ul class="nav nav-pills nav-stacked">
<li><a href="#arguments">Arguments</a></li>
</ul>
<li><a href="#see-also">See also</a></li>
</ul>
</div>
</div>
@ -133,11 +180,14 @@
</div>
<div class="pkgdown">
<p>Site built with <a href="http://hadley.github.io/pkgdown/">pkgdown</a>.</p>
<p>Site built with <a href="http://pkgdown.r-lib.org/">pkgdown</a>.</p>
</div>
</footer>
</div>
</body>
</html>

86
docs/reference/DrillConnection-class.html

@ -18,13 +18,26 @@
<!-- Font Awesome icons -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-T8Gy5hrqNKT+hzMclPo118YTQO6cYprQmhrYwIiQ/3axmI1hQomh7Ud2hPOy8SP1" crossorigin="anonymous">
<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.7.1/clipboard.min.js" integrity="sha384-cV+rhyOuRHc9Ub/91rihWcGmMmCXDeksTtCihMupQHSsi8GIIRDG0ThDc3HGQFJ3" crossorigin="anonymous"></script>
<!-- sticky kit -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/sticky-kit/1.1.3/sticky-kit.min.js" integrity="sha256-c4Rlo1ZozqTPE2RLuvbusY3+SU1pQaJC0TjuhygMipw=" crossorigin="anonymous"></script>
<!-- pkgdown -->
<link href="../pkgdown.css" rel="stylesheet">
<script src="../jquery.sticky-kit.min.js"></script>
<script src="../pkgdown.js"></script>
<meta property="og:title" content="Drill connection class. — DrillConnection-class" />
<meta property="og:description" content="Drill connection class.
Send a query to Drill" />
<meta name="twitter:card" content="summary" />
<!-- mathjax -->
<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
@ -47,26 +60,37 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="../index.html">sergeant</a>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">sergeant</a>
<span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="Released package">0.7.0</span>
</span>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="../reference/index.html">Reference</a>
</li>
<li>
<a href="../news/index.html">News</a>
<a href="../news/index.html">Changelog</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="http://github.com/hrbrmstr/sergeant">
<a href="https://github.com/hrbrmstr/sergeant">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->
@ -74,16 +98,20 @@
</header>
<div class="row">
<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
<h1>Drill connection class.</h1>
<small class="dont-index">Source: <a href='https://github.com/hrbrmstr/sergeant/blob/master/R/dbi.r'><code>R/dbi.r</code></a></small>
<div class="hidden name"><code>DrillConnection-class.Rd</code></div>
</div>
<div class="ref-description">
<p>Drill connection class.</p>
<p>Send a query to Drill</p>
</div>
<pre class="usage"><span class='co'># S4 method for DrillConnection</span>
<span class='fu'>dbSendQuery</span>(<span class='no'>conn</span>, <span class='no'>statement</span>, <span class='no'>...</span>)
@ -93,13 +121,48 @@
<span class='co'># S4 method for DrillConnection,character</span>
<span class='fu'>dbListFields</span>(<span class='no'>conn</span>, <span class='no'>name</span>, <span class='no'>...</span>)</pre>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a>Arguments</h2>
<table class="ref-arguments">
<colgroup><col class="name" /><col class="desc" /></colgroup>
<tr>
<th>conn</th>
<td><p>connection</p></td>
</tr>
<tr>
<th>statement</th>
<td><p>SQL statement</p></td>
</tr>
<tr>
<th>...</th>
<td><p>passed on to methods</p></td>
</tr>
</table>
<h2 class="hasAnchor" id="see-also"><a class="anchor" href="#see-also"></a>See also</h2>
<div class='dont-index'><p>Other Drill REST DBI API: <code><a href='DrillDriver-class.html'>DrillDriver-class</a></code>,
<code><a href='DrillResult-class.html'>DrillResult-class</a></code>, <code><a href='Drill.html'>Drill</a></code>,
<code><a href='dbDataType-DrillConnection-method.html'>dbDataType,DrillConnection-method</a></code>,
<code><a href='DrilDriver-class.html'>dbUnloadDriver,DrillDriver-method</a></code></p>
<p>Other Drill REST DBI API: <code><a href='DrillDriver-class.html'>DrillDriver-class</a></code>,
<code><a href='DrillResult-class.html'>DrillResult-class</a></code>, <code><a href='Drill.html'>Drill</a></code>,
<code><a href='dbDataType-DrillConnection-method.html'>dbDataType,DrillConnection-method</a></code>,
<code><a href='DrilDriver-class.html'>dbUnloadDriver,DrillDriver-method</a></code></p>
<p>Other Drill REST DBI API: <code><a href='DrillDriver-class.html'>DrillDriver-class</a></code>,
<code><a href='DrillResult-class.html'>DrillResult-class</a></code>, <code><a href='Drill.html'>Drill</a></code>,
<code><a href='dbDataType-DrillConnection-method.html'>dbDataType,DrillConnection-method</a></code>,
<code><a href='DrilDriver-class.html'>dbUnloadDriver,DrillDriver-method</a></code></p></div>
</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<h2>Contents</h2>
<ul class="nav nav-pills nav-stacked">
</ul>
<li><a href="#arguments">Arguments</a></li>
<li><a href="#see-also">See also</a></li>
</ul>
</div>
</div>
@ -110,11 +173,14 @@
</div>
<div class="pkgdown">
<p>Site built with <a href="http://hadley.github.io/pkgdown/">pkgdown</a>.</p>
<p>Site built with <a href="http://pkgdown.r-lib.org/">pkgdown</a>.</p>
</div>
</footer>
</div>
</body>
</html>

57
docs/reference/DrillDriver-class.html

@ -18,13 +18,25 @@
<!-- Font Awesome icons -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-T8Gy5hrqNKT+hzMclPo118YTQO6cYprQmhrYwIiQ/3axmI1hQomh7Ud2hPOy8SP1" crossorigin="anonymous">
<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.7.1/clipboard.min.js" integrity="sha384-cV+rhyOuRHc9Ub/91rihWcGmMmCXDeksTtCihMupQHSsi8GIIRDG0ThDc3HGQFJ3" crossorigin="anonymous"></script>
<!-- sticky kit -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/sticky-kit/1.1.3/sticky-kit.min.js" integrity="sha256-c4Rlo1ZozqTPE2RLuvbusY3+SU1pQaJC0TjuhygMipw=" crossorigin="anonymous"></script>
<!-- pkgdown -->
<link href="../pkgdown.css" rel="stylesheet">
<script src="../jquery.sticky-kit.min.js"></script>
<script src="../pkgdown.js"></script>
<meta property="og:title" content="Driver for Drill database. — DrillDriver-class" />
<meta property="og:description" content="Driver for Drill database." />
<meta name="twitter:card" content="summary" />
<!-- mathjax -->
<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
@ -47,26 +59,37 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="../index.html">sergeant</a>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">sergeant</a>
<span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="Released package">0.7.0</span>
</span>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="../reference/index.html">Reference</a>
</li>
<li>
<a href="../news/index.html">News</a>
<a href="../news/index.html">Changelog</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="http://github.com/hrbrmstr/sergeant">
<a href="https://github.com/hrbrmstr/sergeant">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->
@ -74,23 +97,36 @@
</header>
<div class="row">
<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
<h1>Driver for Drill database.</h1>
<small class="dont-index">Source: <a href='https://github.com/hrbrmstr/sergeant/blob/master/R/dbi.r'><code>R/dbi.r</code></a></small>
<div class="hidden name"><code>DrillDriver-class.Rd</code></div>
</div>
<div class="ref-description">
<p>Driver for Drill database.</p>
</div>
<h2 class="hasAnchor" id="see-also"><a class="anchor" href="#see-also"></a>See also</h2>
<div class='dont-index'><p>Other Drill REST DBI API: <code><a href='DrillConnection-class.html'>DrillConnection-class</a></code>,
<code><a href='DrillResult-class.html'>DrillResult-class</a></code>, <code><a href='Drill.html'>Drill</a></code>,
<code><a href='dbDataType-DrillConnection-method.html'>dbDataType,DrillConnection-method</a></code>,
<code><a href='DrilDriver-class.html'>dbUnloadDriver,DrillDriver-method</a></code></p></div>
</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<h2>Contents</h2>
<ul class="nav nav-pills nav-stacked">
</ul>
<li><a href="#see-also">See also</a></li>
</ul>
</div>
</div>
@ -101,11 +137,14 @@
</div>
<div class="pkgdown">
<p>Site built with <a href="http://hadley.github.io/pkgdown/">pkgdown</a>.</p>
<p>Site built with <a href="http://pkgdown.r-lib.org/">pkgdown</a>.</p>
</div>
</footer>
</div>
</body>
</html>

79
docs/reference/DrillResult-class.html

@ -18,13 +18,29 @@
<!-- Font Awesome icons -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-T8Gy5hrqNKT+hzMclPo118YTQO6cYprQmhrYwIiQ/3axmI1hQomh7Ud2hPOy8SP1" crossorigin="anonymous">
<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.7.1/clipboard.min.js" integrity="sha384-cV+rhyOuRHc9Ub/91rihWcGmMmCXDeksTtCihMupQHSsi8GIIRDG0ThDc3HGQFJ3" crossorigin="anonymous"></script>
<!-- sticky kit -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/sticky-kit/1.1.3/sticky-kit.min.js" integrity="sha256-c4Rlo1ZozqTPE2RLuvbusY3+SU1pQaJC0TjuhygMipw=" crossorigin="anonymous"></script>
<!-- pkgdown -->
<link href="../pkgdown.css" rel="stylesheet">
<script src="../jquery.sticky-kit.min.js"></script>
<script src="../pkgdown.js"></script>
<meta property="og:title" content="Drill results class. — DrillResult-class" />
<meta property="og:description" content="Drill results class.
Clear
Retrieve records from Drill query
Completed
Statement" />
<meta name="twitter:card" content="summary" />
<!-- mathjax -->
<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
@ -47,26 +63,37 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="../index.html">sergeant</a>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">sergeant</a>
<span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="Released package">0.7.0</span>
</span>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="../reference/index.html">Reference</a>
</li>
<li>
<a href="../news/index.html">News</a>
<a href="../news/index.html">Changelog</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="http://github.com/hrbrmstr/sergeant">
<a href="https://github.com/hrbrmstr/sergeant">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->
@ -74,12 +101,15 @@
</header>
<div class="row">
<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
<h1>Drill results class.</h1>
<small class="dont-index">Source: <a href='https://github.com/hrbrmstr/sergeant/blob/master/R/dbi.r'><code>R/dbi.r</code></a></small>
<div class="hidden name"><code>DrillResult-class.Rd</code></div>
</div>
<div class="ref-description">
<p>Drill results class.</p>
<p>Clear</p>
@ -87,6 +117,7 @@
<p>Completed</p>
<p>Statement</p>
</div>
<pre class="usage"><span class='co'># S4 method for DrillResult</span>
<span class='fu'>dbClearResult</span>(<span class='no'>res</span>, <span class='no'>...</span>)
@ -103,7 +134,7 @@
<span class='co'># S4 method for DrillResult</span>
<span class='fu'>dbGetStatement</span>(<span class='no'>res</span>, <span class='no'>...</span>)</pre>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a> Arguments</h2>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a>Arguments</h2>
<table class="ref-arguments">
<colgroup><col class="name" /><col class="desc" /></colgroup>
<tr>
@ -112,13 +143,38 @@
</tr>
</table>
<h2 class="hasAnchor" id="see-also"><a class="anchor" href="#see-also"></a>See also</h2>
<div class='dont-index'><p>Other Drill REST DBI API: <code><a href='DrillConnection-class.html'>DrillConnection-class</a></code>,
<code><a href='DrillDriver-class.html'>DrillDriver-class</a></code>, <code><a href='Drill.html'>Drill</a></code>,
<code><a href='dbDataType-DrillConnection-method.html'>dbDataType,DrillConnection-method</a></code>,
<code><a href='DrilDriver-class.html'>dbUnloadDriver,DrillDriver-method</a></code></p>
<p>Other Drill REST DBI API: <code><a href='DrillConnection-class.html'>DrillConnection-class</a></code>,
<code><a href='DrillDriver-class.html'>DrillDriver-class</a></code>, <code><a href='Drill.html'>Drill</a></code>,
<code><a href='dbDataType-DrillConnection-method.html'>dbDataType,DrillConnection-method</a></code>,
<code><a href='DrilDriver-class.html'>dbUnloadDriver,DrillDriver-method</a></code></p>
<p>Other Drill REST DBI API: <code><a href='DrillConnection-class.html'>DrillConnection-class</a></code>,
<code><a href='DrillDriver-class.html'>DrillDriver-class</a></code>, <code><a href='Drill.html'>Drill</a></code>,
<code><a href='dbDataType-DrillConnection-method.html'>dbDataType,DrillConnection-method</a></code>,
<code><a href='DrilDriver-class.html'>dbUnloadDriver,DrillDriver-method</a></code></p>
<p>Other Drill REST DBI API: <code><a href='DrillConnection-class.html'>DrillConnection-class</a></code>,
<code><a href='DrillDriver-class.html'>DrillDriver-class</a></code>, <code><a href='Drill.html'>Drill</a></code>,
<code><a href='dbDataType-DrillConnection-method.html'>dbDataType,DrillConnection-method</a></code>,
<code><a href='DrilDriver-class.html'>dbUnloadDriver,DrillDriver-method</a></code></p>
<p>Other Drill REST DBI API: <code><a href='DrillConnection-class.html'>DrillConnection-class</a></code>,
<code><a href='DrillDriver-class.html'>DrillDriver-class</a></code>, <code><a href='Drill.html'>Drill</a></code>,
<code><a href='dbDataType-DrillConnection-method.html'>dbDataType,DrillConnection-method</a></code>,
<code><a href='DrilDriver-class.html'>dbUnloadDriver,DrillDriver-method</a></code></p></div>
</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<h2>Contents</h2>
<ul class="nav nav-pills nav-stacked">
<li><a href="#arguments">Arguments</a></li>
</ul>
<li><a href="#see-also">See also</a></li>
</ul>
</div>
</div>
@ -129,11 +185,14 @@
</div>
<div class="pkgdown">
<p>Site built with <a href="http://hadley.github.io/pkgdown/">pkgdown</a>.</p>
<p>Site built with <a href="http://pkgdown.r-lib.org/">pkgdown</a>.</p>
</div>
</footer>
</div>
</body>
</html>

59
docs/reference/dbDataType-DrillConnection-method.html

@ -18,13 +18,25 @@
<!-- Font Awesome icons -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-T8Gy5hrqNKT+hzMclPo118YTQO6cYprQmhrYwIiQ/3axmI1hQomh7Ud2hPOy8SP1" crossorigin="anonymous">
<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.7.1/clipboard.min.js" integrity="sha384-cV+rhyOuRHc9Ub/91rihWcGmMmCXDeksTtCihMupQHSsi8GIIRDG0ThDc3HGQFJ3" crossorigin="anonymous"></script>
<!-- sticky kit -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/sticky-kit/1.1.3/sticky-kit.min.js" integrity="sha256-c4Rlo1ZozqTPE2RLuvbusY3+SU1pQaJC0TjuhygMipw=" crossorigin="anonymous"></script>
<!-- pkgdown -->
<link href="../pkgdown.css" rel="stylesheet">
<script src="../jquery.sticky-kit.min.js"></script>
<script src="../pkgdown.js"></script>
<meta property="og:title" content="Drill dbDataType — dbDataType,DrillConnection-method" />
<meta property="og:description" content="Drill dbDataType" />
<meta name="twitter:card" content="summary" />
<!-- mathjax -->
<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
@ -47,26 +59,37 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="../index.html">sergeant</a>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">sergeant</a>
<span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="Released package">0.7.0</span>
</span>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="../reference/index.html">Reference</a>
</li>
<li>
<a href="../news/index.html">News</a>
<a href="../news/index.html">Changelog</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="http://github.com/hrbrmstr/sergeant">
<a href="https://github.com/hrbrmstr/sergeant">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->
@ -74,20 +97,24 @@
</header>
<div class="row">
<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
<h1>Drill dbDataType</h1>
<small class="dont-index">Source: <a href='https://github.com/hrbrmstr/sergeant/blob/master/R/dbi.r'><code>R/dbi.r</code></a></small>
<div class="hidden name"><code>dbDataType-DrillConnection-method.Rd</code></div>
</div>
<div class="ref-description">
<p>Drill dbDataType</p>
</div>
<pre class="usage"><span class='co'># S4 method for DrillConnection</span>
<span class='fu'>dbDataType</span>(<span class='no'>dbObj</span>, <span class='no'>obj</span>, <span class='no'>...</span>)</pre>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a> Arguments</h2>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a>Arguments</h2>
<table class="ref-arguments">
<colgroup><col class="name" /><col class="desc" /></colgroup>
<tr>
@ -104,13 +131,22 @@
</tr>
</table>
<h2 class="hasAnchor" id="see-also"><a class="anchor" href="#see-also"></a>See also</h2>
<div class='dont-index'><p>Other Drill REST DBI API: <code><a href='DrillConnection-class.html'>DrillConnection-class</a></code>,
<code><a href='DrillDriver-class.html'>DrillDriver-class</a></code>,
<code><a href='DrillResult-class.html'>DrillResult-class</a></code>, <code><a href='Drill.html'>Drill</a></code>,
<code><a href='DrilDriver-class.html'>dbUnloadDriver,DrillDriver-method</a></code></p></div>
</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<h2>Contents</h2>
<ul class="nav nav-pills nav-stacked">
<li><a href="#arguments">Arguments</a></li>
</ul>
<li><a href="#see-also">See also</a></li>
</ul>
</div>
</div>
@ -121,11 +157,14 @@
</div>
<div class="pkgdown">
<p>Site built with <a href="http://hadley.github.io/pkgdown/">pkgdown</a>.</p>
<p>Site built with <a href="http://pkgdown.r-lib.org/">pkgdown</a>.</p>
</div>
</footer>
</div>
</body>
</html>

143
docs/reference/dbDisconnect-DrillConnection-method.html

@ -0,0 +1,143 @@
<!-- Generated by pkgdown: do not edit by hand -->
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Disconnect from Drill — dbDisconnect,DrillConnection-method • sergeant</title>
<!-- jquery -->
<script src="https://code.jquery.com/jquery-3.1.0.min.js" integrity="sha384-nrOSfDHtoPMzJHjVTdCopGqIqeYETSXhZDFyniQ8ZHcVy08QesyHcnOUpMpqnmWq" crossorigin="anonymous"></script>
<!-- Bootstrap -->
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<!-- Font Awesome icons -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-T8Gy5hrqNKT+hzMclPo118YTQO6cYprQmhrYwIiQ/3axmI1hQomh7Ud2hPOy8SP1" crossorigin="anonymous">
<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.7.1/clipboard.min.js" integrity="sha384-cV+rhyOuRHc9Ub/91rihWcGmMmCXDeksTtCihMupQHSsi8GIIRDG0ThDc3HGQFJ3" crossorigin="anonymous"></script>
<!-- sticky kit -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/sticky-kit/1.1.3/sticky-kit.min.js" integrity="sha256-c4Rlo1ZozqTPE2RLuvbusY3+SU1pQaJC0TjuhygMipw=" crossorigin="anonymous"></script>
<!-- pkgdown -->
<link href="../pkgdown.css" rel="stylesheet">
<script src="../pkgdown.js"></script>
<meta property="og:title" content="Disconnect from Drill — dbDisconnect,DrillConnection-method" />
<meta property="og:description" content="Disconnect from Drill" />
<meta name="twitter:card" content="summary" />
<!-- mathjax -->
<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container template-reference-topic">
<header>
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">sergeant</a>
<span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="Released package">0.7.0</span>
</span>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="../reference/index.html">Reference</a>
</li>
<li>
<a href="../news/index.html">Changelog</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="https://github.com/hrbrmstr/sergeant">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->
</header>
<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
<h1>Disconnect from Drill</h1>
<small class="dont-index">Source: <a href='https://github.com/hrbrmstr/sergeant/blob/master/R/dbi.r'><code>R/dbi.r</code></a></small>
<div class="hidden name"><code>dbDisconnect-DrillConnection-method.Rd</code></div>
</div>
<div class="ref-description">
<p>Disconnect from Drill</p>
</div>
<pre class="usage"><span class='co'># S4 method for DrillConnection</span>
<span class='fu'>dbDisconnect</span>(<span class='no'>conn</span>, <span class='no'>...</span>)</pre>
</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<h2>Contents</h2>
<ul class="nav nav-pills nav-stacked">
</ul>
</div>
</div>
<footer>
<div class="copyright">
<p>Developed by Bob Rudis.</p>
</div>
<div class="pkgdown">
<p>Site built with <a href="http://pkgdown.r-lib.org/">pkgdown</a>.</p>
</div>
</footer>
</div>
</body>
</html>

80
docs/reference/drill_active.html

@ -6,7 +6,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Test whether Drill HTTP REST API server is up — drill_active • sergeant</title>
<title>Test whether Drill HTTP Dill direct REST API Interface server is up — drill_active • sergeant</title>
<!-- jquery -->
<script src="https://code.jquery.com/jquery-3.1.0.min.js" integrity="sha384-nrOSfDHtoPMzJHjVTdCopGqIqeYETSXhZDFyniQ8ZHcVy08QesyHcnOUpMpqnmWq" crossorigin="anonymous"></script>
@ -18,13 +18,25 @@
<!-- Font Awesome icons -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-T8Gy5hrqNKT+hzMclPo118YTQO6cYprQmhrYwIiQ/3axmI1hQomh7Ud2hPOy8SP1" crossorigin="anonymous">
<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.7.1/clipboard.min.js" integrity="sha384-cV+rhyOuRHc9Ub/91rihWcGmMmCXDeksTtCihMupQHSsi8GIIRDG0ThDc3HGQFJ3" crossorigin="anonymous"></script>
<!-- sticky kit -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/sticky-kit/1.1.3/sticky-kit.min.js" integrity="sha256-c4Rlo1ZozqTPE2RLuvbusY3+SU1pQaJC0TjuhygMipw=" crossorigin="anonymous"></script>
<!-- pkgdown -->
<link href="../pkgdown.css" rel="stylesheet">
<script src="../jquery.sticky-kit.min.js"></script>
<script src="../pkgdown.js"></script>
<meta property="og:title" content="Test whether Drill HTTP Dill direct REST API Interface server is up — drill_active" />
<meta property="og:description" content="This is a very simple test (performs HEAD / request on the Drill server/cluster)" />
<meta name="twitter:card" content="summary" />
<!-- mathjax -->
<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
@ -47,26 +59,37 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="../index.html">sergeant</a>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">sergeant</a>
<span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="Released package">0.7.0</span>
</span>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="../reference/index.html">Reference</a>
</li>
<li>
<a href="../news/index.html">News</a>
<a href="../news/index.html">Changelog</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="http://github.com/hrbrmstr/sergeant">
<a href="https://github.com/hrbrmstr/sergeant">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->
@ -74,38 +97,60 @@
</header>
<div class="row">
<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
<h1>Test whether Drill HTTP REST API server is up</h1>
<h1>Test whether Drill HTTP Dill direct REST API Interface server is up</h1>
<small class="dont-index">Source: <a href='https://github.com/hrbrmstr/sergeant/blob/master/R/sergeant.r'><code>R/sergeant.r</code></a></small>
<div class="hidden name"><code>drill_active.Rd</code></div>
</div>
<div class="ref-description">
<p>This is a very simple test (performs <code>HEAD /</code> request on the Drill server/cluster)</p>
</div>
<pre class="usage"><span class='fu'>drill_active</span>(<span class='no'>drill_con</span>)</pre>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a> Arguments</h2>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a>Arguments</h2>
<table class="ref-arguments">
<colgroup><col class="name" /><col class="desc" /></colgroup>
<tr>
<th>drill_con</th>
<td><p>drill server connection object setup by <code>drill_connection()</code></p></td>
<td><p>drill server connection object setup by <code><a href='drill_connection.html'>drill_connection()</a></code></p></td>
</tr>
</table>
<h2 class="hasAnchor" id="see-also"><a class="anchor" href="#see-also"></a>See also</h2>
<div class='dont-index'><p>Other Dill direct REST API Interface: <code><a href='drill_cancel.html'>drill_cancel</a></code>,
<code><a href='drill_connection.html'>drill_connection</a></code>,
<code><a href='drill_metrics.html'>drill_metrics</a></code>, <code><a href='drill_options.html'>drill_options</a></code>,
<code><a href='drill_profiles.html'>drill_profiles</a></code>,
<code><a href='drill_profile.html'>drill_profile</a></code>, <code><a href='drill_query.html'>drill_query</a></code>,
<code><a href='drill_settings_reset.html'>drill_settings_reset</a></code>,
<code><a href='drill_set.html'>drill_set</a></code>, <code><a href='drill_show_files.html'>drill_show_files</a></code>,
<code><a href='drill_show_schemas.html'>drill_show_schemas</a></code>,
<code><a href='drill_stats.html'>drill_stats</a></code>, <code><a href='drill_status.html'>drill_status</a></code>,
<code><a href='drill_storage.html'>drill_storage</a></code>,
<code><a href='drill_system_reset.html'>drill_system_reset</a></code>,
<code><a href='drill_threads.html'>drill_threads</a></code>, <code><a href='drill_use.html'>drill_use</a></code>,
<code><a href='drill_version.html'>drill_version</a></code></p></div>
<h2 class="hasAnchor" id="examples"><a class="anchor" href="#examples"></a>Examples</h2>
<pre class="examples"><div class='input'><span class='fu'>not_run</span>({
<span class='fu'><a href='drill_connection.html'>drill_connection</a></span>() <span class='kw'>%&gt;%</span> <span class='fu'>drill_active</span>()
})</div></pre>
<pre class="examples"><div class='input'><span class='fu'>try</span>({
<span class='fu'><a href='drill_connection.html'>drill_connection</a></span>() <span class='kw'>%&gt;%</span> <span class='fu'>drill_active</span>()
}, <span class='kw'>silent</span><span class='kw'>=</span><span class='fl'>TRUE</span>)</div><div class='output co'>#&gt; [1] FALSE</div></pre>
</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<h2>Contents</h2>
<ul class="nav nav-pills nav-stacked">
<li><a href="#arguments">Arguments</a></li>
<li><a href="#see-also">See also</a></li>
<li><a href="#examples">Examples</a></li>
</ul>
@ -118,11 +163,14 @@
</div>
<div class="pkgdown">
<p>Site built with <a href="http://hadley.github.io/pkgdown/">pkgdown</a>.</p>
<p>Site built with <a href="http://pkgdown.r-lib.org/">pkgdown</a>.</p>
</div>
</footer>
</div>
</body>
</html>

70
docs/reference/drill_cancel.html

@ -18,13 +18,25 @@
<!-- Font Awesome icons -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-T8Gy5hrqNKT+hzMclPo118YTQO6cYprQmhrYwIiQ/3axmI1hQomh7Ud2hPOy8SP1" crossorigin="anonymous">
<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.7.1/clipboard.min.js" integrity="sha384-cV+rhyOuRHc9Ub/91rihWcGmMmCXDeksTtCihMupQHSsi8GIIRDG0ThDc3HGQFJ3" crossorigin="anonymous"></script>
<!-- sticky kit -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/sticky-kit/1.1.3/sticky-kit.min.js" integrity="sha256-c4Rlo1ZozqTPE2RLuvbusY3+SU1pQaJC0TjuhygMipw=" crossorigin="anonymous"></script>
<!-- pkgdown -->
<link href="../pkgdown.css" rel="stylesheet">
<script src="../jquery.sticky-kit.min.js"></script>
<script src="../pkgdown.js"></script>
<meta property="og:title" content="Cancel the query that has the given queryid — drill_cancel" />
<meta property="og:description" content="Cancel the query that has the given queryid" />
<meta name="twitter:card" content="summary" />
<!-- mathjax -->
<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
@ -47,26 +59,37 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="../index.html">sergeant</a>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">sergeant</a>
<span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="Released package">0.7.0</span>
</span>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="../reference/index.html">Reference</a>
</li>
<li>
<a href="../news/index.html">News</a>
<a href="../news/index.html">Changelog</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="http://github.com/hrbrmstr/sergeant">
<a href="https://github.com/hrbrmstr/sergeant">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->
@ -74,24 +97,28 @@
</header>
<div class="row">
<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
<h1>Cancel the query that has the given queryid</h1>
<small class="dont-index">Source: <a href='https://github.com/hrbrmstr/sergeant/blob/master/R/sergeant.r'><code>R/sergeant.r</code></a></small>
<div class="hidden name"><code>drill_cancel.Rd</code></div>
</div>
<div class="ref-description">
<p>Cancel the query that has the given queryid</p>
</div>
<pre class="usage"><span class='fu'>drill_cancel</span>(<span class='no'>drill_con</span>, <span class='no'>query_id</span>)</pre>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a> Arguments</h2>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a>Arguments</h2>
<table class="ref-arguments">
<colgroup><col class="name" /><col class="desc" /></colgroup>
<tr>
<th>drill_con</th>
<td><p>drill server connection object setup by <code>drill_connection()</code></p></td>
<td><p>drill server connection object setup by <code><a href='drill_connection.html'>drill_connection()</a></code></p></td>
</tr>
<tr>
<th>query_id</th>
@ -101,7 +128,23 @@
<h2 class="hasAnchor" id="references"><a class="anchor" href="#references"></a>References</h2>
<p><a href = 'https://drill.apache.org/docs/'>Drill documentation</a></p>
<p><a href='https://drill.apache.org/docs/'>Drill documentation</a></p>
<h2 class="hasAnchor" id="see-also"><a class="anchor" href="#see-also"></a>See also</h2>
<div class='dont-index'><p>Other Dill direct REST API Interface: <code><a href='drill_active.html'>drill_active</a></code>,
<code><a href='drill_connection.html'>drill_connection</a></code>,
<code><a href='drill_metrics.html'>drill_metrics</a></code>, <code><a href='drill_options.html'>drill_options</a></code>,
<code><a href='drill_profiles.html'>drill_profiles</a></code>,
<code><a href='drill_profile.html'>drill_profile</a></code>, <code><a href='drill_query.html'>drill_query</a></code>,
<code><a href='drill_settings_reset.html'>drill_settings_reset</a></code>,
<code><a href='drill_set.html'>drill_set</a></code>, <code><a href='drill_show_files.html'>drill_show_files</a></code>,
<code><a href='drill_show_schemas.html'>drill_show_schemas</a></code>,
<code><a href='drill_stats.html'>drill_stats</a></code>, <code><a href='drill_status.html'>drill_status</a></code>,
<code><a href='drill_storage.html'>drill_storage</a></code>,
<code><a href='drill_system_reset.html'>drill_system_reset</a></code>,
<code><a href='drill_threads.html'>drill_threads</a></code>, <code><a href='drill_use.html'>drill_use</a></code>,
<code><a href='drill_version.html'>drill_version</a></code></p></div>
</div>
@ -111,6 +154,8 @@
<li><a href="#arguments">Arguments</a></li>
<li><a href="#references">References</a></li>
<li><a href="#see-also">See also</a></li>
</ul>
</div>
@ -122,11 +167,14 @@
</div>
<div class="pkgdown">
<p>Site built with <a href="http://hadley.github.io/pkgdown/">pkgdown</a>.</p>
<p>Site built with <a href="http://pkgdown.r-lib.org/">pkgdown</a>.</p>
</div>
</footer>
</div>
</body>
</html>

79
docs/reference/drill_connection.html

@ -18,13 +18,25 @@
<!-- Font Awesome icons -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-T8Gy5hrqNKT+hzMclPo118YTQO6cYprQmhrYwIiQ/3axmI1hQomh7Ud2hPOy8SP1" crossorigin="anonymous">
<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.7.1/clipboard.min.js" integrity="sha384-cV+rhyOuRHc9Ub/91rihWcGmMmCXDeksTtCihMupQHSsi8GIIRDG0ThDc3HGQFJ3" crossorigin="anonymous"></script>
<!-- sticky kit -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/sticky-kit/1.1.3/sticky-kit.min.js" integrity="sha256-c4Rlo1ZozqTPE2RLuvbusY3+SU1pQaJC0TjuhygMipw=" crossorigin="anonymous"></script>
<!-- pkgdown -->
<link href="../pkgdown.css" rel="stylesheet">
<script src="../jquery.sticky-kit.min.js"></script>
<script src="../pkgdown.js"></script>
<meta property="og:title" content="Setup a Drill connection — drill_connection" />
<meta property="og:description" content="Setup a Drill connection" />
<meta name="twitter:card" content="summary" />
<!-- mathjax -->
<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
@ -47,26 +59,37 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="../index.html">sergeant</a>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">sergeant</a>
<span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="Released package">0.7.0</span>
</span>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="../reference/index.html">Reference</a>
</li>
<li>
<a href="../news/index.html">News</a>
<a href="../news/index.html">Changelog</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="http://github.com/hrbrmstr/sergeant">
<a href="https://github.com/hrbrmstr/sergeant">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->
@ -74,22 +97,26 @@
</header>
<div class="row">
<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
<h1>Setup a Drill connection</h1>
<small class="dont-index">Source: <a href='https://github.com/hrbrmstr/sergeant/blob/master/R/sergeant.r'><code>R/sergeant.r</code></a></small>
<div class="hidden name"><code>drill_connection.Rd</code></div>
</div>
<div class="ref-description">
<p>Setup a Drill connection</p>
</div>
<pre class="usage"><span class='fu'>drill_connection</span>(<span class='kw'>host</span> <span class='kw'>=</span> <span class='fu'>Sys.getenv</span>(<span class='st'>"DRILL_HOST"</span>, <span class='st'>"localhost"</span>),
<span class='kw'>port</span> <span class='kw'>=</span> <span class='fu'>Sys.getenv</span>(<span class='st'>"DRILL_PORT"</span>, <span class='fl'>8047</span>), <span class='kw'>ssl</span> <span class='kw'>=</span> <span class='fl'>FALSE</span>,
<span class='kw'>user</span> <span class='kw'>=</span> <span class='fu'>Sys.getenv</span>(<span class='st'>"DRILL_USER"</span>, <span class='st'>""</span>),
<span class='kw'>password</span> <span class='kw'>=</span> <span class='fu'>Sys.getenv</span>(<span class='st'>"DRILL_PASSWORD"</span>, <span class='st'>""</span>))</pre>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a> Arguments</h2>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a>Arguments</h2>
<table class="ref-arguments">
<colgroup><col class="name" /><col class="desc" /></colgroup>
<tr>
@ -106,12 +133,31 @@
</tr>
<tr>
<th>user, password</th>
<td><p>NOT IMPLEMENTED YET credentials for username/password auth.
(will pick up the values from <code>DRILL_USER</code>/<code>DRILL_PASSWORD</code>
env vars)</p></td>
<td><p>(will pick up the values from <code>DRILL_USER</code>/<code>DRILL_PASSWORD</code> env vars)</p></td>
</tr>
</table>
<h2 class="hasAnchor" id="note"><a class="anchor" href="#note"></a>Note</h2>
<p>If <code>user</code>/<code>password</code> are set this function will make a <code>POST</code> to the REST
interface immediately to prime the cookie-jar with the session id.</p>
<h2 class="hasAnchor" id="see-also"><a class="anchor" href="#see-also"></a>See also</h2>
<div class='dont-index'><p>Other Dill direct REST API Interface: <code><a href='drill_active.html'>drill_active</a></code>,
<code><a href='drill_cancel.html'>drill_cancel</a></code>, <code><a href='drill_metrics.html'>drill_metrics</a></code>,
<code><a href='drill_options.html'>drill_options</a></code>,
<code><a href='drill_profiles.html'>drill_profiles</a></code>,
<code><a href='drill_profile.html'>drill_profile</a></code>, <code><a href='drill_query.html'>drill_query</a></code>,
<code><a href='drill_settings_reset.html'>drill_settings_reset</a></code>,
<code><a href='drill_set.html'>drill_set</a></code>, <code><a href='drill_show_files.html'>drill_show_files</a></code>,
<code><a href='drill_show_schemas.html'>drill_show_schemas</a></code>,
<code><a href='drill_stats.html'>drill_stats</a></code>, <code><a href='drill_status.html'>drill_status</a></code>,
<code><a href='drill_storage.html'>drill_storage</a></code>,
<code><a href='drill_system_reset.html'>drill_system_reset</a></code>,
<code><a href='drill_threads.html'>drill_threads</a></code>, <code><a href='drill_use.html'>drill_use</a></code>,
<code><a href='drill_version.html'>drill_version</a></code></p></div>
<h2 class="hasAnchor" id="examples"><a class="anchor" href="#examples"></a>Examples</h2>
<pre class="examples"><div class='input'><span class='no'>dc</span> <span class='kw'>&lt;-</span> <span class='fu'>drill_connection</span>()</div></pre>
@ -120,7 +166,11 @@ env vars)</p></td>
<h2>Contents</h2>
<ul class="nav nav-pills nav-stacked">
<li><a href="#arguments">Arguments</a></li>
<li><a href="#note">Note</a></li>
<li><a href="#see-also">See also</a></li>
<li><a href="#examples">Examples</a></li>
</ul>
@ -133,11 +183,14 @@ env vars)</p></td>
</div>
<div class="pkgdown">
<p>Site built with <a href="http://hadley.github.io/pkgdown/">pkgdown</a>.</p>
<p>Site built with <a href="http://pkgdown.r-lib.org/">pkgdown</a>.</p>
</div>
</footer>
</div>
</body>
</html>

142
docs/reference/drill_custom_functions.html

@ -6,7 +6,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Drill expressions / custom functions <code>dplyr</code> translation: — drill_custom_functions • sergeant</title>
<title>Drill expressions / custom functions <code>dplyr</code> translations — drill_custom_functions • sergeant</title>
<!-- jquery -->
<script src="https://code.jquery.com/jquery-3.1.0.min.js" integrity="sha384-nrOSfDHtoPMzJHjVTdCopGqIqeYETSXhZDFyniQ8ZHcVy08QesyHcnOUpMpqnmWq" crossorigin="anonymous"></script>
@ -18,13 +18,27 @@
<!-- Font Awesome icons -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-T8Gy5hrqNKT+hzMclPo118YTQO6cYprQmhrYwIiQ/3axmI1hQomh7Ud2hPOy8SP1" crossorigin="anonymous">
<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.7.1/clipboard.min.js" integrity="sha384-cV+rhyOuRHc9Ub/91rihWcGmMmCXDeksTtCihMupQHSsi8GIIRDG0ThDc3HGQFJ3" crossorigin="anonymous"></script>
<!-- sticky kit -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/sticky-kit/1.1.3/sticky-kit.min.js" integrity="sha256-c4Rlo1ZozqTPE2RLuvbusY3+SU1pQaJC0TjuhygMipw=" crossorigin="anonymous"></script>
<!-- pkgdown -->
<link href="../pkgdown.css" rel="stylesheet">
<script src="../jquery.sticky-kit.min.js"></script>
<script src="../pkgdown.js"></script>
<meta property="og:title" content="Drill expressions / custom functions <code>dplyr</code> translations — drill_custom_functions" />
<meta property="og:description" content="One benefit of dplyr is that it provide a nice DSL over datasbase ops but that
means there needs to be knowlege of functions supported by the host database and
then a translation layer so they can be used in R." />
<meta name="twitter:card" content="summary" />
<!-- mathjax -->
<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
@ -47,26 +61,37 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="../index.html">sergeant</a>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">sergeant</a>
<span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="Released package">0.7.0</span>
</span>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="../reference/index.html">Reference</a>
</li>
<li>
<a href="../news/index.html">News</a>
<a href="../news/index.html">Changelog</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="http://github.com/hrbrmstr/sergeant">
<a href="https://github.com/hrbrmstr/sergeant">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->
@ -74,23 +99,44 @@
</header>
<div class="row">
<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
<h1>Drill expressions / custom functions <code>dplyr</code> translation:</h1>
<h1>Drill expressions / custom functions <code>dplyr</code> translations</h1>
<small class="dont-index">Source: <a href='https://github.com/hrbrmstr/sergeant/blob/master/R/custom.r'><code>R/custom.r</code></a></small>
<div class="hidden name"><code>drill_custom_functions.Rd</code></div>
</div>
<div class="ref-description">
<p>One benefit of <code>dplyr</code> is that it provide a nice DSL over datasbase ops but that
means there needs to be knowlege of functions supported by the host database and
then a translation layer so they can be used in R.</p>
<ul>
<li><p><code>as.character(x)</code> : <code>CAST( x AS CHARACTER)</code></p></li>
<li><p><code>as.date(x)</code> : <code>CAST( x AS DATE)</code></p></li>
</div>
<h2 class="hasAnchor" id="details"><a class="anchor" href="#details"></a>Details</h2>
<p>Similarly, there are functions like <code>grepl()</code> in R that don't directly exist in
databases. Yet, one can create a translation for <code>grepl()</code> that maps to a
<a href='https://github.com/parisni/drill-simple-contains'>Drill custom function</a> so you
don't have to think differently or rewrite your pipes when switching from core
tidyverse ops and database ops.</p>
<p>Many functions translate on their own, but it's handy to provide explicit ones,
especially when you want to use parameters in a different order.</p>
<p>If you want a particular custom function mapped, file a PR or issue request in
the link found in the <code>DESCRIPTION</code> file.</p><ul>
<li><p><code>as.character(x)</code> : <code>CAST( x AS CHARACTER )</code></p></li>
<li><p><code>as.date(x)</code> : <code>CAST( x AS DATE )</code></p></li>
<li><p><code>as.logical(x)</code> : <code>CAST( x AS BOOLEAN)</code></p></li>
<li><p><code>as.numeric(x)</code> : <code>CAST( x AS DOUBLE)</code></p></li>
<li><p><code>as.posixct(x)</code> : <code>CAST( x AS TIMESTAMP)</code></p></li>
<li><p><code>as.numeric(x)</code> : <code>CAST( x AS DOUBLE )</code></p></li>
<li><p><code>as.posixct(x)</code> : <code>CAST( x AS TIMESTAMP )</code></p></li>
<li><p><code>binary_string(x)</code> : <code>BINARY_STRING( x )</code></p></li>
<li><p><code>cbrt(x)</code> : <code>CBRT( x )</code></p></li>
<li><p><code>char_to_timestamp(x, y)</code> : <code>TO_TIMESTAMP( x, y )</code></p></li>
<li><p><code>contains(x, y)</code> : <code>CONTAINS x, y )</code></p></li>
<li><p><code>grepl(y, x)</code> : <code>CONTAINS( x, y )</code></p></li>
<li><p><code>contains(x, y)</code> : <code>CONTAINS( x, y )</code></p></li>
<li><p><code>convert_to(x, y)</code> : <code>CONVERT_TO( x, y )</code></p></li>
<li><p><code>convert_from(x, y)</code> : <code>CONVERT_FROM( x, y )</code></p></li>
<li><p><code>degrees(x)</code> : <code>DEGREES( x )</code></p></li>
@ -105,37 +151,40 @@
<li><p><code>to_date(x, y)</code> : <code>TO_DATE( x, y )</code></p></li>
<li><p><code>to_number(x, y)</code> : <code>TO_NUMBER( x, y )</code></p></li>
<li><p><code>trunc(x)</code> : <code>TRUNC( x )</code></p></li>
<li><p><code>double_to_timestamp(x)</code> = <code>TO_TIMESTAMP( x )</code></p></li>
<li><p><code>char_length(x)</code> = <code>CHAR_LENGTH( x )</code></p></li>
<li><p><code>flatten(x)</code> = <code>FLATTEN( x )</code></p></li>
<li><p><code>kvgen(x)</code> = <code>KVGEN( x )</code></p></li>
<li><p><code>repeated_count(x)</code> = <code>REPEATED_COUNT( x )</code></p></li>
<li><p><code>repeated_contains(x)</code> = <code>REPEATED_CONTAINS( x )</code></p></li>
<li><p><code>ilike(x, y)</code> = <code>ILIKE( x, y )</code></p></li>
<li><p><code>init_cap(x)</code> = <code>INIT_CAP( x )</code></p></li>
<li><p><code>length(x)</code> = <code>LENGTH( x )</code></p></li>
<li><p><code>lower(x)</code> = <code>LOWER( x )</code></p></li>
<li><p><code>tolower(x)</code> = <code>LOWER( x )</code></p></li>
<li><p><code>ltrim(x, y)</code> = <code>LTRIM( x, y )</code></p></li>
<li><p><code>nullif(x, y</code> = <code>NULLIF( x, y )</code></p></li>
<li><p><code>position(x, y)</code> = <code>POSITION( x IN y )</code></p></li>
<li><p><code>gsub(x, y, z)</code> = <code>REGEXP_REPLACE( z, x, y )</code></p></li>
<li><p><code>regexp_replace(x, y, z)</code> = <code>REGEXP_REPLACE( x, y, z )</code></p></li>
<li><p><code>rtrim(x, y)</code> = <code>RTRIM( x, y )</code></p></li>
<li><p><code>rpad(x, y)</code> = <code>RPAD( x, y )</code></p></li>
<li><p><code>rpad_with(x, y, z)</code> = <code>RPAD( x, y, z )</code></p></li>
<li><p><code>lpad(x, y)</code> = <code>LPAD( x, y )</code></p></li>
<li><p><code>lpad_with(x, y, z)</code> = <code>LPAD( x, y, z )</code></p></li>
<li><p><code>strpos(x, y)</code> = <code>STRPOS( x, y )</code></p></li>
<li><p><code>substr(x, y, z)</code> = <code>SUBSTR( x, y, z )</code></p></li>
<li><p><code>upper(x)</code> = <code>UPPER(1)</code></p></li>
<li><p><code>toupper(x)</code> = <code>UPPER(1)</code></p></li>
</ul>
<p>You can get a compact list of these with:</p>
<p><code>sql_translate_env(src_drill()$con)</code></p>
<p>as well.</p>
<h2 class="hasAnchor" id="see-also"><a class="anchor" href="#see-also"></a>See also</h2>
<h2 class="hasAnchor" id="details"><a class="anchor" href="#details"></a>Details</h2>
<p>I'll get these converted into ^^ format:</p><ul>
<li><p><code>double_to_timestamp</code> = <code>sql_prefix("TO_TIMESTAMP", 1),</code></p></li>
<li><p><code>char_length</code> = <code>sql_prefix("CHAR_LENGTH", 1),</code></p></li>
<li><p><code>flatten</code> = <code>sql_prefix("FLATTEN", 1),</code></p></li>
<li><p><code>kvgen</code> = <code>sql_prefix("KVGEN", 1),</code></p></li>
<li><p><code>repeated_count</code> = <code>sql_prefix("REPEATED_COUNT", 1),</code></p></li>
<li><p><code>repeated_contains</code> = <code>sql_prefix("REPEATED_CONTAINS", 1),</code></p></li>
<li><p><code>ilike</code> = <code>sql_prefix("ILIKE", 2),</code></p></li>
<li><p><code>init_cap</code> = <code>sql_prefix("INIT_CAP", 1),</code></p></li>
<li><p><code>length</code> = <code>sql_prefix("LENGTH", 1),</code></p></li>
<li><p><code>lower</code> = <code>sql_prefix("LOWER", 1),</code></p></li>
<li><p><code>ltrim</code> = <code>sql_prefix("LTRIM", 2),</code></p></li>
<li><p><code>nullif</code> = <code>sql_prefix("NULLIF", 2),</code></p></li>
<li><p><code>position</code> = <code>function(x, y) build_sql("POSITION(", x, " IN ", y, ")"),</code></p></li>
<li><p><code>regexp_replace</code> = <code>sql_prefix("REGEXP_REPLACE", 3),</code></p></li>
<li><p><code>rtrim</code> = <code>sql_prefix("RTRIM", 2),</code></p></li>
<li><p><code>rpad</code> = <code>sql_prefix("RPAD", 2),</code></p></li>
<li><p><code>rpad_with</code> = <code>sql_prefix("RPAD", 3),</code></p></li>
<li><p><code>lpad</code> = <code>sql_prefix("LPAD", 2),</code></p></li>
<li><p><code>lpad_with</code> = <code>sql_prefix("LPAD", 3),</code></p></li>
<li><p><code>strpos</code> = <code>sql_prefix("STRPOS", 2),</code></p></li>
<li><p><code>substr</code> = <code>sql_prefix("SUBSTR", 3),</code></p></li>
<li><p><code>trim</code> = <code>function(x, y, z) build_sql("TRIM(", x, " ", y, " FROM ", z, ")"),</code></p></li>
<li><p><code>upper</code> = <code>sql_prefix("UPPER", 1)</code></p></li>
</ul>
<div class='dont-index'><p>Other Drill REST `dplyr` API: <code><a href='src_drill.html'>src_drill</a></code>,
<code><a href='src_tbls.html'>src_tbls.src_drill</a></code></p></div>
</div>
@ -144,6 +193,8 @@
<ul class="nav nav-pills nav-stacked">
<li><a href="#details">Details</a></li>
<li><a href="#see-also">See also</a></li>
</ul>
</div>
@ -155,11 +206,14 @@
</div>
<div class="pkgdown">
<p>Site built with <a href="http://hadley.github.io/pkgdown/">pkgdown</a>.</p>
<p>Site built with <a href="http://pkgdown.r-lib.org/">pkgdown</a>.</p>
</div>
</footer>
</div>
</body>
</html>

77
docs/reference/drill_metrics.html

@ -18,13 +18,25 @@
<!-- Font Awesome icons -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-T8Gy5hrqNKT+hzMclPo118YTQO6cYprQmhrYwIiQ/3axmI1hQomh7Ud2hPOy8SP1" crossorigin="anonymous">
<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.7.1/clipboard.min.js" integrity="sha384-cV+rhyOuRHc9Ub/91rihWcGmMmCXDeksTtCihMupQHSsi8GIIRDG0ThDc3HGQFJ3" crossorigin="anonymous"></script>
<!-- sticky kit -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/sticky-kit/1.1.3/sticky-kit.min.js" integrity="sha256-c4Rlo1ZozqTPE2RLuvbusY3+SU1pQaJC0TjuhygMipw=" crossorigin="anonymous"></script>
<!-- pkgdown -->
<link href="../pkgdown.css" rel="stylesheet">
<script src="../jquery.sticky-kit.min.js"></script>
<script src="../pkgdown.js"></script>
<meta property="og:title" content="Get the current memory metrics — drill_metrics" />
<meta property="og:description" content="Get the current memory metrics" />
<meta name="twitter:card" content="summary" />
<!-- mathjax -->
<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
@ -47,26 +59,37 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="../index.html">sergeant</a>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">sergeant</a>
<span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="Released package">0.7.0</span>
</span>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="../reference/index.html">Reference</a>
</li>
<li>
<a href="../news/index.html">News</a>
<a href="../news/index.html">Changelog</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="http://github.com/hrbrmstr/sergeant">
<a href="https://github.com/hrbrmstr/sergeant">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->
@ -74,38 +97,61 @@
</header>
<div class="row">
<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
<h1>Get the current memory metrics</h1>
<small class="dont-index">Source: <a href='https://github.com/hrbrmstr/sergeant/blob/master/R/sergeant.r'><code>R/sergeant.r</code></a></small>
<div class="hidden name"><code>drill_metrics.Rd</code></div>
</div>
<div class="ref-description">
<p>Get the current memory metrics</p>
</div>
<pre class="usage"><span class='fu'>drill_metrics</span>(<span class='no'>drill_con</span>)</pre>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a> Arguments</h2>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a>Arguments</h2>
<table class="ref-arguments">
<colgroup><col class="name" /><col class="desc" /></colgroup>
<tr>
<th>drill_con</th>
<td><p>drill server connection object setup by <code>drill_connection()</code></p></td>
<td><p>drill server connection object setup by <code><a href='drill_connection.html'>drill_connection()</a></code></p></td>
</tr>
</table>
<h2 class="hasAnchor" id="see-also"><a class="anchor" href="#see-also"></a>See also</h2>
<div class='dont-index'><p>Other Dill direct REST API Interface: <code><a href='drill_active.html'>drill_active</a></code>,
<code><a href='drill_cancel.html'>drill_cancel</a></code>,
<code><a href='drill_connection.html'>drill_connection</a></code>,
<code><a href='drill_options.html'>drill_options</a></code>,
<code><a href='drill_profiles.html'>drill_profiles</a></code>,
<code><a href='drill_profile.html'>drill_profile</a></code>, <code><a href='drill_query.html'>drill_query</a></code>,
<code><a href='drill_settings_reset.html'>drill_settings_reset</a></code>,
<code><a href='drill_set.html'>drill_set</a></code>, <code><a href='drill_show_files.html'>drill_show_files</a></code>,
<code><a href='drill_show_schemas.html'>drill_show_schemas</a></code>,
<code><a href='drill_stats.html'>drill_stats</a></code>, <code><a href='drill_status.html'>drill_status</a></code>,
<code><a href='drill_storage.html'>drill_storage</a></code>,
<code><a href='drill_system_reset.html'>drill_system_reset</a></code>,
<code><a href='drill_threads.html'>drill_threads</a></code>, <code><a href='drill_use.html'>drill_use</a></code>,
<code><a href='drill_version.html'>drill_version</a></code></p></div>
<h2 class="hasAnchor" id="examples"><a class="anchor" href="#examples"></a>Examples</h2>
<pre class="examples"><div class='input'><span class='fu'>not_run</span>({
<span class='fu'><a href='drill_connection.html'>drill_connection</a></span>() <span class='kw'>%&gt;%</span> <span class='fu'>drill_metrics</span>()
})</div></pre>
<pre class="examples"><span class='co'># NOT RUN {</span>
<span class='fu'><a href='drill_connection.html'>drill_connection</a></span>() <span class='kw'>%&gt;%</span> <span class='fu'>drill_metrics</span>()
<span class='co'># }</span></pre>
</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<h2>Contents</h2>
<ul class="nav nav-pills nav-stacked">
<li><a href="#arguments">Arguments</a></li>
<li><a href="#see-also">See also</a></li>
<li><a href="#examples">Examples</a></li>
</ul>
@ -118,11 +164,14 @@
</div>
<div class="pkgdown">
<p>Site built with <a href="http://hadley.github.io/pkgdown/">pkgdown</a>.</p>
<p>Site built with <a href="http://pkgdown.r-lib.org/">pkgdown</a>.</p>
</div>
</footer>
</div>
</body>
</html>

77
docs/reference/drill_options.html

@ -18,13 +18,25 @@
<!-- Font Awesome icons -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-T8Gy5hrqNKT+hzMclPo118YTQO6cYprQmhrYwIiQ/3axmI1hQomh7Ud2hPOy8SP1" crossorigin="anonymous">
<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.7.1/clipboard.min.js" integrity="sha384-cV+rhyOuRHc9Ub/91rihWcGmMmCXDeksTtCihMupQHSsi8GIIRDG0ThDc3HGQFJ3" crossorigin="anonymous"></script>
<!-- sticky kit -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/sticky-kit/1.1.3/sticky-kit.min.js" integrity="sha256-c4Rlo1ZozqTPE2RLuvbusY3+SU1pQaJC0TjuhygMipw=" crossorigin="anonymous"></script>
<!-- pkgdown -->
<link href="../pkgdown.css" rel="stylesheet">
<script src="../jquery.sticky-kit.min.js"></script>
<script src="../pkgdown.js"></script>
<meta property="og:title" content="List the name, default, and data type of the system and session options — drill_options" />
<meta property="og:description" content="List the name, default, and data type of the system and session options" />
<meta name="twitter:card" content="summary" />
<!-- mathjax -->
<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
@ -47,26 +59,37 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="../index.html">sergeant</a>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">sergeant</a>
<span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="Released package">0.7.0</span>
</span>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="../reference/index.html">Reference</a>
</li>
<li>
<a href="../news/index.html">News</a>
<a href="../news/index.html">Changelog</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="http://github.com/hrbrmstr/sergeant">
<a href="https://github.com/hrbrmstr/sergeant">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->
@ -74,24 +97,28 @@
</header>
<div class="row">
<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
<h1>List the name, default, and data type of the system and session options</h1>
<small class="dont-index">Source: <a href='https://github.com/hrbrmstr/sergeant/blob/master/R/sergeant.r'><code>R/sergeant.r</code></a></small>
<div class="hidden name"><code>drill_options.Rd</code></div>
</div>
<div class="ref-description">
<p>List the name, default, and data type of the system and session options</p>
</div>
<pre class="usage"><span class='fu'>drill_options</span>(<span class='no'>drill_con</span>, <span class='kw'>pattern</span> <span class='kw'>=</span> <span class='kw'>NULL</span>)</pre>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a> Arguments</h2>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a>Arguments</h2>
<table class="ref-arguments">
<colgroup><col class="name" /><col class="desc" /></colgroup>
<tr>
<th>drill_con</th>
<td><p>drill server connection object setup by <code>drill_connection()</code></p></td>
<td><p>drill server connection object setup by <code><a href='drill_connection.html'>drill_connection()</a></code></p></td>
</tr>
<tr>
<th>pattern</th>
@ -101,13 +128,30 @@
<h2 class="hasAnchor" id="references"><a class="anchor" href="#references"></a>References</h2>
<p><a href = 'https://drill.apache.org/docs/'>Drill documentation</a></p>
<p><a href='https://drill.apache.org/docs/'>Drill documentation</a></p>
<h2 class="hasAnchor" id="see-also"><a class="anchor" href="#see-also"></a>See also</h2>
<div class='dont-index'><p>Other Dill direct REST API Interface: <code><a href='drill_active.html'>drill_active</a></code>,
<code><a href='drill_cancel.html'>drill_cancel</a></code>,
<code><a href='drill_connection.html'>drill_connection</a></code>,
<code><a href='drill_metrics.html'>drill_metrics</a></code>,
<code><a href='drill_profiles.html'>drill_profiles</a></code>,
<code><a href='drill_profile.html'>drill_profile</a></code>, <code><a href='drill_query.html'>drill_query</a></code>,
<code><a href='drill_settings_reset.html'>drill_settings_reset</a></code>,
<code><a href='drill_set.html'>drill_set</a></code>, <code><a href='drill_show_files.html'>drill_show_files</a></code>,
<code><a href='drill_show_schemas.html'>drill_show_schemas</a></code>,
<code><a href='drill_stats.html'>drill_stats</a></code>, <code><a href='drill_status.html'>drill_status</a></code>,
<code><a href='drill_storage.html'>drill_storage</a></code>,
<code><a href='drill_system_reset.html'>drill_system_reset</a></code>,
<code><a href='drill_threads.html'>drill_threads</a></code>, <code><a href='drill_use.html'>drill_use</a></code>,
<code><a href='drill_version.html'>drill_version</a></code></p></div>
<h2 class="hasAnchor" id="examples"><a class="anchor" href="#examples"></a>Examples</h2>
<pre class="examples"><div class='input'><span class='fu'>not_run</span>({
<span class='fu'><a href='drill_connection.html'>drill_connection</a></span>() <span class='kw'>%&gt;%</span> <span class='fu'>drill_options</span>()
})</div></pre>
<pre class="examples"><span class='co'># NOT RUN {</span>
<span class='fu'><a href='drill_connection.html'>drill_connection</a></span>() <span class='kw'>%&gt;%</span> <span class='fu'>drill_options</span>()
<span class='co'># }</span></pre>
</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<h2>Contents</h2>
@ -115,6 +159,8 @@
<li><a href="#arguments">Arguments</a></li>
<li><a href="#references">References</a></li>
<li><a href="#see-also">See also</a></li>
<li><a href="#examples">Examples</a></li>
</ul>
@ -128,11 +174,14 @@
</div>
<div class="pkgdown">
<p>Site built with <a href="http://hadley.github.io/pkgdown/">pkgdown</a>.</p>
<p>Site built with <a href="http://pkgdown.r-lib.org/">pkgdown</a>.</p>
</div>
</footer>
</div>
</body>
</html>

70
docs/reference/drill_profile.html

@ -18,13 +18,25 @@
<!-- Font Awesome icons -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-T8Gy5hrqNKT+hzMclPo118YTQO6cYprQmhrYwIiQ/3axmI1hQomh7Ud2hPOy8SP1" crossorigin="anonymous">
<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.7.1/clipboard.min.js" integrity="sha384-cV+rhyOuRHc9Ub/91rihWcGmMmCXDeksTtCihMupQHSsi8GIIRDG0ThDc3HGQFJ3" crossorigin="anonymous"></script>
<!-- sticky kit -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/sticky-kit/1.1.3/sticky-kit.min.js" integrity="sha256-c4Rlo1ZozqTPE2RLuvbusY3+SU1pQaJC0TjuhygMipw=" crossorigin="anonymous"></script>
<!-- pkgdown -->
<link href="../pkgdown.css" rel="stylesheet">
<script src="../jquery.sticky-kit.min.js"></script>
<script src="../pkgdown.js"></script>
<meta property="og:title" content="Get the profile of the query that has the given queryid — drill_profile" />
<meta property="og:description" content="Get the profile of the query that has the given queryid" />
<meta name="twitter:card" content="summary" />
<!-- mathjax -->
<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
@ -47,26 +59,37 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="../index.html">sergeant</a>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">sergeant</a>
<span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="Released package">0.7.0</span>
</span>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="../reference/index.html">Reference</a>
</li>
<li>
<a href="../news/index.html">News</a>
<a href="../news/index.html">Changelog</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="http://github.com/hrbrmstr/sergeant">
<a href="https://github.com/hrbrmstr/sergeant">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->
@ -74,24 +97,28 @@
</header>
<div class="row">
<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
<h1>Get the profile of the query that has the given queryid</h1>
<small class="dont-index">Source: <a href='https://github.com/hrbrmstr/sergeant/blob/master/R/sergeant.r'><code>R/sergeant.r</code></a></small>
<div class="hidden name"><code>drill_profile.Rd</code></div>
</div>
<div class="ref-description">
<p>Get the profile of the query that has the given queryid</p>
</div>
<pre class="usage"><span class='fu'>drill_profile</span>(<span class='no'>drill_con</span>, <span class='no'>query_id</span>)</pre>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a> Arguments</h2>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a>Arguments</h2>
<table class="ref-arguments">
<colgroup><col class="name" /><col class="desc" /></colgroup>
<tr>
<th>drill_con</th>
<td><p>drill server connection object setup by <code>drill_connection()</code></p></td>
<td><p>drill server connection object setup by <code><a href='drill_connection.html'>drill_connection()</a></code></p></td>
</tr>
<tr>
<th>query_id</th>
@ -101,7 +128,23 @@
<h2 class="hasAnchor" id="references"><a class="anchor" href="#references"></a>References</h2>
<p><a href = 'https://drill.apache.org/docs/'>Drill documentation</a></p>
<p><a href='https://drill.apache.org/docs/'>Drill documentation</a></p>
<h2 class="hasAnchor" id="see-also"><a class="anchor" href="#see-also"></a>See also</h2>
<div class='dont-index'><p>Other Dill direct REST API Interface: <code><a href='drill_active.html'>drill_active</a></code>,
<code><a href='drill_cancel.html'>drill_cancel</a></code>,
<code><a href='drill_connection.html'>drill_connection</a></code>,
<code><a href='drill_metrics.html'>drill_metrics</a></code>, <code><a href='drill_options.html'>drill_options</a></code>,
<code><a href='drill_profiles.html'>drill_profiles</a></code>, <code><a href='drill_query.html'>drill_query</a></code>,
<code><a href='drill_settings_reset.html'>drill_settings_reset</a></code>,
<code><a href='drill_set.html'>drill_set</a></code>, <code><a href='drill_show_files.html'>drill_show_files</a></code>,
<code><a href='drill_show_schemas.html'>drill_show_schemas</a></code>,
<code><a href='drill_stats.html'>drill_stats</a></code>, <code><a href='drill_status.html'>drill_status</a></code>,
<code><a href='drill_storage.html'>drill_storage</a></code>,
<code><a href='drill_system_reset.html'>drill_system_reset</a></code>,
<code><a href='drill_threads.html'>drill_threads</a></code>, <code><a href='drill_use.html'>drill_use</a></code>,
<code><a href='drill_version.html'>drill_version</a></code></p></div>
</div>
@ -111,6 +154,8 @@
<li><a href="#arguments">Arguments</a></li>
<li><a href="#references">References</a></li>
<li><a href="#see-also">See also</a></li>
</ul>
</div>
@ -122,11 +167,14 @@
</div>
<div class="pkgdown">
<p>Site built with <a href="http://hadley.github.io/pkgdown/">pkgdown</a>.</p>
<p>Site built with <a href="http://pkgdown.r-lib.org/">pkgdown</a>.</p>
</div>
</footer>
</div>
</body>
</html>

76
docs/reference/drill_profiles.html

@ -18,13 +18,25 @@
<!-- Font Awesome icons -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-T8Gy5hrqNKT+hzMclPo118YTQO6cYprQmhrYwIiQ/3axmI1hQomh7Ud2hPOy8SP1" crossorigin="anonymous">
<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.7.1/clipboard.min.js" integrity="sha384-cV+rhyOuRHc9Ub/91rihWcGmMmCXDeksTtCihMupQHSsi8GIIRDG0ThDc3HGQFJ3" crossorigin="anonymous"></script>
<!-- sticky kit -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/sticky-kit/1.1.3/sticky-kit.min.js" integrity="sha256-c4Rlo1ZozqTPE2RLuvbusY3+SU1pQaJC0TjuhygMipw=" crossorigin="anonymous"></script>
<!-- pkgdown -->
<link href="../pkgdown.css" rel="stylesheet">
<script src="../jquery.sticky-kit.min.js"></script>
<script src="../pkgdown.js"></script>
<meta property="og:title" content="Get the profiles of running and completed queries — drill_profiles" />
<meta property="og:description" content="Get the profiles of running and completed queries" />
<meta name="twitter:card" content="summary" />
<!-- mathjax -->
<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
@ -47,26 +59,37 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="../index.html">sergeant</a>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">sergeant</a>
<span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="Released package">0.7.0</span>
</span>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="../reference/index.html">Reference</a>
</li>
<li>
<a href="../news/index.html">News</a>
<a href="../news/index.html">Changelog</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="http://github.com/hrbrmstr/sergeant">
<a href="https://github.com/hrbrmstr/sergeant">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->
@ -74,36 +97,56 @@
</header>
<div class="row">
<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
<h1>Get the profiles of running and completed queries</h1>
<small class="dont-index">Source: <a href='https://github.com/hrbrmstr/sergeant/blob/master/R/sergeant.r'><code>R/sergeant.r</code></a></small>
<div class="hidden name"><code>drill_profiles.Rd</code></div>
</div>
<div class="ref-description">
<p>Get the profiles of running and completed queries</p>
</div>
<pre class="usage"><span class='fu'>drill_profiles</span>(<span class='no'>drill_con</span>)</pre>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a> Arguments</h2>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a>Arguments</h2>
<table class="ref-arguments">
<colgroup><col class="name" /><col class="desc" /></colgroup>
<tr>
<th>drill_con</th>
<td><p>drill server connection object setup by <code>drill_connection()</code></p></td>
<td><p>drill server connection object setup by <code><a href='drill_connection.html'>drill_connection()</a></code></p></td>
</tr>
</table>
<h2 class="hasAnchor" id="references"><a class="anchor" href="#references"></a>References</h2>
<p><a href = 'https://drill.apache.org/docs/'>Drill documentation</a></p>
<p><a href='https://drill.apache.org/docs/'>Drill documentation</a></p>
<h2 class="hasAnchor" id="see-also"><a class="anchor" href="#see-also"></a>See also</h2>
<div class='dont-index'><p>Other Dill direct REST API Interface: <code><a href='drill_active.html'>drill_active</a></code>,
<code><a href='drill_cancel.html'>drill_cancel</a></code>,
<code><a href='drill_connection.html'>drill_connection</a></code>,
<code><a href='drill_metrics.html'>drill_metrics</a></code>, <code><a href='drill_options.html'>drill_options</a></code>,
<code><a href='drill_profile.html'>drill_profile</a></code>, <code><a href='drill_query.html'>drill_query</a></code>,
<code><a href='drill_settings_reset.html'>drill_settings_reset</a></code>,
<code><a href='drill_set.html'>drill_set</a></code>, <code><a href='drill_show_files.html'>drill_show_files</a></code>,
<code><a href='drill_show_schemas.html'>drill_show_schemas</a></code>,
<code><a href='drill_stats.html'>drill_stats</a></code>, <code><a href='drill_status.html'>drill_status</a></code>,
<code><a href='drill_storage.html'>drill_storage</a></code>,
<code><a href='drill_system_reset.html'>drill_system_reset</a></code>,
<code><a href='drill_threads.html'>drill_threads</a></code>, <code><a href='drill_use.html'>drill_use</a></code>,
<code><a href='drill_version.html'>drill_version</a></code></p></div>
<h2 class="hasAnchor" id="examples"><a class="anchor" href="#examples"></a>Examples</h2>
<pre class="examples"><div class='input'><span class='fu'>not_run</span>({
<span class='fu'><a href='drill_connection.html'>drill_connection</a></span>() <span class='kw'>%&gt;%</span> <span class='fu'>drill_profiles</span>()
})</div></pre>
<pre class="examples"><span class='co'># NOT RUN {</span>
<span class='fu'><a href='drill_connection.html'>drill_connection</a></span>() <span class='kw'>%&gt;%</span> <span class='fu'>drill_profiles</span>()
<span class='co'># }</span></pre>
</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<h2>Contents</h2>
@ -111,6 +154,8 @@
<li><a href="#arguments">Arguments</a></li>
<li><a href="#references">References</a></li>
<li><a href="#see-also">See also</a></li>
<li><a href="#examples">Examples</a></li>
</ul>
@ -124,11 +169,14 @@
</div>
<div class="pkgdown">
<p>Site built with <a href="http://hadley.github.io/pkgdown/">pkgdown</a>.</p>
<p>Site built with <a href="http://pkgdown.r-lib.org/">pkgdown</a>.</p>
</div>
</footer>
</div>
</body>
</html>

87
docs/reference/drill_query.html

@ -18,13 +18,29 @@
<!-- Font Awesome icons -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-T8Gy5hrqNKT+hzMclPo118YTQO6cYprQmhrYwIiQ/3axmI1hQomh7Ud2hPOy8SP1" crossorigin="anonymous">
<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.7.1/clipboard.min.js" integrity="sha384-cV+rhyOuRHc9Ub/91rihWcGmMmCXDeksTtCihMupQHSsi8GIIRDG0ThDc3HGQFJ3" crossorigin="anonymous"></script>
<!-- sticky kit -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/sticky-kit/1.1.3/sticky-kit.min.js" integrity="sha256-c4Rlo1ZozqTPE2RLuvbusY3+SU1pQaJC0TjuhygMipw=" crossorigin="anonymous"></script>
<!-- pkgdown -->
<link href="../pkgdown.css" rel="stylesheet">
<script src="../jquery.sticky-kit.min.js"></script>
<script src="../pkgdown.js"></script>
<meta property="og:title" content="Submit a query and return results — drill_query" />
<meta property="og:description" content="This function can handle REST API connections or JDBC connections. There is a benefit to
calling this function for JDBC connections vs a straight call to dbGetQuery() in
that the function result is a `tbl_df` vs a plain data.frame so you get better
default printing (which can be helpful if you accidentally execute a query and the result
set is huge)." />
<meta name="twitter:card" content="summary" />
<!-- mathjax -->
<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
@ -47,26 +63,37 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="../index.html">sergeant</a>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">sergeant</a>
<span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="Released package">0.7.0</span>
</span>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="../reference/index.html">Reference</a>
</li>
<li>
<a href="../news/index.html">News</a>
<a href="../news/index.html">Changelog</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="http://github.com/hrbrmstr/sergeant">
<a href="https://github.com/hrbrmstr/sergeant">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->
@ -74,12 +101,15 @@
</header>
<div class="row">
<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
<h1>Submit a query and return results</h1>
<small class="dont-index">Source: <a href='https://github.com/hrbrmstr/sergeant/blob/master/R/query.r'><code>R/query.r</code></a></small>
<div class="hidden name"><code>drill_query.Rd</code></div>
</div>
<div class="ref-description">
<p>This function can handle REST API connections or JDBC connections. There is a benefit to
calling this function for JDBC connections vs a straight call to <code>dbGetQuery()</code> in
@ -87,15 +117,16 @@ that the function result is a `tbl_df` vs a plain <code>data.frame</code> so you
default printing (which can be helpful if you accidentally execute a query and the result
set is huge).</p>
</div>
<pre class="usage"><span class='fu'>drill_query</span>(<span class='no'>drill_con</span>, <span class='no'>query</span>, <span class='kw'>uplift</span> <span class='kw'>=</span> <span class='fl'>TRUE</span>, <span class='kw'>.progress</span> <span class='kw'>=</span> <span class='fu'>interactive</span>())</pre>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a> Arguments</h2>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a>Arguments</h2>
<table class="ref-arguments">
<colgroup><col class="name" /><col class="desc" /></colgroup>
<tr>
<th>drill_con</th>
<td><p>drill server connection object setup by <code>drill_connection()</code> or
<td><p>drill server connection object setup by <code><a href='drill_connection.html'>drill_connection()</a></code> or
<code>drill_jdbc()</code>)</p></td>
</tr>
<tr>
@ -104,27 +135,44 @@ set is huge).</p>
</tr>
<tr>
<th>uplift</th>
<td><p>automatically run <code>drill_uplift()</code> on the result? (default: <code>TRUE</code>,
<td><p>automatically run <code><a href='drill_uplift.html'>drill_uplift()</a></code> on the result? (default: <code>TRUE</code>,
ignored if <code>drill_con</code> is a <code>JDBCConnection</code> created by
<code>drill_jdbc()</code>)</p></td>
</tr>
<tr>
<th>.progress</th>
<td><p>if <code>TRUE</code> (default if in an interactive session) then ask
<code>httr::POST</code> to display a progress bar</p></td>
<code><a href='http://www.rdocumentation.org/packages/httr/topics/POST'>httr::POST</a></code> to display a progress bar</p></td>
</tr>
</table>
<h2 class="hasAnchor" id="references"><a class="anchor" href="#references"></a>References</h2>
<p><a href = 'https://drill.apache.org/docs/'>Drill documentation</a></p>
<p><a href='https://drill.apache.org/docs/'>Drill documentation</a></p>
<h2 class="hasAnchor" id="see-also"><a class="anchor" href="#see-also"></a>See also</h2>
<div class='dont-index'><p>Other Dill direct REST API Interface: <code><a href='drill_active.html'>drill_active</a></code>,
<code><a href='drill_cancel.html'>drill_cancel</a></code>,
<code><a href='drill_connection.html'>drill_connection</a></code>,
<code><a href='drill_metrics.html'>drill_metrics</a></code>, <code><a href='drill_options.html'>drill_options</a></code>,
<code><a href='drill_profiles.html'>drill_profiles</a></code>,
<code><a href='drill_profile.html'>drill_profile</a></code>,
<code><a href='drill_settings_reset.html'>drill_settings_reset</a></code>,
<code><a href='drill_set.html'>drill_set</a></code>, <code><a href='drill_show_files.html'>drill_show_files</a></code>,
<code><a href='drill_show_schemas.html'>drill_show_schemas</a></code>,
<code><a href='drill_stats.html'>drill_stats</a></code>, <code><a href='drill_status.html'>drill_status</a></code>,
<code><a href='drill_storage.html'>drill_storage</a></code>,
<code><a href='drill_system_reset.html'>drill_system_reset</a></code>,
<code><a href='drill_threads.html'>drill_threads</a></code>, <code><a href='drill_use.html'>drill_use</a></code>,
<code><a href='drill_version.html'>drill_version</a></code></p></div>
<h2 class="hasAnchor" id="examples"><a class="anchor" href="#examples"></a>Examples</h2>
<pre class="examples"><div class='input'><span class='fu'>not_run</span>({
<span class='fu'><a href='drill_connection.html'>drill_connection</a></span>() <span class='kw'>%&gt;%</span>
<span class='fu'>drill_query</span>(<span class='st'>"SELECT * FROM cp.`employee.json` limit 5"</span>)
})</div></pre>
<pre class="examples"><div class='input'><span class='fu'>try</span>({
<span class='fu'><a href='drill_connection.html'>drill_connection</a></span>() <span class='kw'>%&gt;%</span>
<span class='fu'>drill_query</span>(<span class='st'>"SELECT * FROM cp.`employee.json` limit 5"</span>)
}, <span class='kw'>silent</span><span class='kw'>=</span><span class='fl'>TRUE</span>)</div></pre>
</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<h2>Contents</h2>
@ -132,6 +180,8 @@ ignored if <code>drill_con</code> is a <code>JDBCConnection</code> created by
<li><a href="#arguments">Arguments</a></li>
<li><a href="#references">References</a></li>
<li><a href="#see-also">See also</a></li>
<li><a href="#examples">Examples</a></li>
</ul>
@ -145,11 +195,14 @@ ignored if <code>drill_con</code> is a <code>JDBCConnection</code> created by
</div>
<div class="pkgdown">
<p>Site built with <a href="http://hadley.github.io/pkgdown/">pkgdown</a>.</p>
<p>Site built with <a href="http://pkgdown.r-lib.org/">pkgdown</a>.</p>
</div>
</footer>
</div>
</body>
</html>

81
docs/reference/drill_set.html

@ -18,13 +18,27 @@
<!-- Font Awesome icons -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-T8Gy5hrqNKT+hzMclPo118YTQO6cYprQmhrYwIiQ/3axmI1hQomh7Ud2hPOy8SP1" crossorigin="anonymous">
<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.7.1/clipboard.min.js" integrity="sha384-cV+rhyOuRHc9Ub/91rihWcGmMmCXDeksTtCihMupQHSsi8GIIRDG0ThDc3HGQFJ3" crossorigin="anonymous"></script>
<!-- sticky kit -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/sticky-kit/1.1.3/sticky-kit.min.js" integrity="sha256-c4Rlo1ZozqTPE2RLuvbusY3+SU1pQaJC0TjuhygMipw=" crossorigin="anonymous"></script>
<!-- pkgdown -->
<link href="../pkgdown.css" rel="stylesheet">
<script src="../jquery.sticky-kit.min.js"></script>
<script src="../pkgdown.js"></script>
<meta property="og:title" content="Set Drill SYSTEM or SESSION options — drill_set" />
<meta property="og:description" content="Helper function to make it more R-like to set Drill SESSION or SYSTEM optons. It
handles the conversion of R types (like TRUE) to SQL types and automatically
quotes parameter values (when necessary)." />
<meta name="twitter:card" content="summary" />
<!-- mathjax -->
<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
@ -47,26 +61,37 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="../index.html">sergeant</a>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">sergeant</a>
<span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="Released package">0.7.0</span>
</span>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="../reference/index.html">Reference</a>
</li>
<li>
<a href="../news/index.html">News</a>
<a href="../news/index.html">Changelog</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="http://github.com/hrbrmstr/sergeant">
<a href="https://github.com/hrbrmstr/sergeant">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->
@ -74,26 +99,30 @@
</header>
<div class="row">
<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
<h1>Set Drill SYSTEM or SESSION options</h1>
<small class="dont-index">Source: <a href='https://github.com/hrbrmstr/sergeant/blob/master/R/set.R'><code>R/set.R</code></a></small>
<div class="hidden name"><code>drill_set.Rd</code></div>
</div>
<div class="ref-description">
<p>Helper function to make it more R-like to set Drill SESSION or SYSTEM optons. It
handles the conversion of R types (like <code>TRUE</code>) to SQL types and automatically
quotes parameter values (when necessary).</p>
</div>
<pre class="usage"><span class='fu'>drill_set</span>(<span class='no'>drill_con</span>, <span class='no'>...</span>, <span class='kw'>type</span> <span class='kw'>=</span> <span class='fu'>c</span>(<span class='st'>"session"</span>, <span class='st'>"system"</span>))</pre>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a> Arguments</h2>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a>Arguments</h2>
<table class="ref-arguments">
<colgroup><col class="name" /><col class="desc" /></colgroup>
<tr>
<th>drill_con</th>
<td><p>drill server connection object setup by <code>drill_connection()</code></p></td>
<td><p>drill server connection object setup by <code><a href='drill_connection.html'>drill_connection()</a></code></p></td>
</tr>
<tr>
<th>...</th>
@ -115,14 +144,31 @@ quotes parameter values (when necessary).</p>
<h2 class="hasAnchor" id="references"><a class="anchor" href="#references"></a>References</h2>
<p><a href = 'https://drill.apache.org/docs/'>Drill documentation</a></p>
<p><a href='https://drill.apache.org/docs/'>Drill documentation</a></p>
<h2 class="hasAnchor" id="see-also"><a class="anchor" href="#see-also"></a>See also</h2>
<div class='dont-index'><p>Other Dill direct REST API Interface: <code><a href='drill_active.html'>drill_active</a></code>,
<code><a href='drill_cancel.html'>drill_cancel</a></code>,
<code><a href='drill_connection.html'>drill_connection</a></code>,
<code><a href='drill_metrics.html'>drill_metrics</a></code>, <code><a href='drill_options.html'>drill_options</a></code>,
<code><a href='drill_profiles.html'>drill_profiles</a></code>,
<code><a href='drill_profile.html'>drill_profile</a></code>, <code><a href='drill_query.html'>drill_query</a></code>,
<code><a href='drill_settings_reset.html'>drill_settings_reset</a></code>,
<code><a href='drill_show_files.html'>drill_show_files</a></code>,
<code><a href='drill_show_schemas.html'>drill_show_schemas</a></code>,
<code><a href='drill_stats.html'>drill_stats</a></code>, <code><a href='drill_status.html'>drill_status</a></code>,
<code><a href='drill_storage.html'>drill_storage</a></code>,
<code><a href='drill_system_reset.html'>drill_system_reset</a></code>,
<code><a href='drill_threads.html'>drill_threads</a></code>, <code><a href='drill_use.html'>drill_use</a></code>,
<code><a href='drill_version.html'>drill_version</a></code></p></div>
<h2 class="hasAnchor" id="examples"><a class="anchor" href="#examples"></a>Examples</h2>
<pre class="examples"><div class='input'><span class='fu'>not_run</span>({
<span class='fu'><a href='drill_connection.html'>drill_connection</a></span>() <span class='kw'>%&gt;%</span>
<span class='fu'>drill_set</span>(<span class='kw'>exec.errors.verbose</span><span class='kw'>=</span><span class='fl'>TRUE</span>, <span class='kw'>store.format</span><span class='kw'>=</span><span class='st'>"parquet"</span>, <span class='kw'>web.logs.max_lines</span><span class='kw'>=</span><span class='fl'>20000</span>)
})</div></pre>
<pre class="examples"><span class='co'># NOT RUN {</span>
<span class='fu'><a href='drill_connection.html'>drill_connection</a></span>() <span class='kw'>%&gt;%</span>
<span class='fu'>drill_set</span>(<span class='kw'>exec.errors.verbose</span><span class='kw'>=</span><span class='fl'>TRUE</span>, <span class='kw'>store.format</span><span class='kw'>=</span><span class='st'>"parquet"</span>, <span class='kw'>web.logs.max_lines</span><span class='kw'>=</span><span class='fl'>20000</span>)
<span class='co'># }</span></pre>
</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<h2>Contents</h2>
@ -134,6 +180,8 @@ quotes parameter values (when necessary).</p>
<li><a href="#details">Details</a></li>
<li><a href="#references">References</a></li>
<li><a href="#see-also">See also</a></li>
<li><a href="#examples">Examples</a></li>
</ul>
@ -147,11 +195,14 @@ quotes parameter values (when necessary).</p>
</div>
<div class="pkgdown">
<p>Site built with <a href="http://hadley.github.io/pkgdown/">pkgdown</a>.</p>
<p>Site built with <a href="http://pkgdown.r-lib.org/">pkgdown</a>.</p>
</div>
</footer>
</div>
</body>
</html>

76
docs/reference/drill_settings_reset.html

@ -18,13 +18,25 @@
<!-- Font Awesome icons -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-T8Gy5hrqNKT+hzMclPo118YTQO6cYprQmhrYwIiQ/3axmI1hQomh7Ud2hPOy8SP1" crossorigin="anonymous">
<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.7.1/clipboard.min.js" integrity="sha384-cV+rhyOuRHc9Ub/91rihWcGmMmCXDeksTtCihMupQHSsi8GIIRDG0ThDc3HGQFJ3" crossorigin="anonymous"></script>
<!-- sticky kit -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/sticky-kit/1.1.3/sticky-kit.min.js" integrity="sha256-c4Rlo1ZozqTPE2RLuvbusY3+SU1pQaJC0TjuhygMipw=" crossorigin="anonymous"></script>
<!-- pkgdown -->
<link href="../pkgdown.css" rel="stylesheet">
<script src="../jquery.sticky-kit.min.js"></script>
<script src="../pkgdown.js"></script>
<meta property="og:title" content="Changes (optionally, all) session settings back to system defaults — drill_settings_reset" />
<meta property="og:description" content="Changes (optionally, all) session settings back to system defaults" />
<meta name="twitter:card" content="summary" />
<!-- mathjax -->
<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
@ -47,26 +59,37 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="../index.html">sergeant</a>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">sergeant</a>
<span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="Released package">0.7.0</span>
</span>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="../reference/index.html">Reference</a>
</li>
<li>
<a href="../news/index.html">News</a>
<a href="../news/index.html">Changelog</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="http://github.com/hrbrmstr/sergeant">
<a href="https://github.com/hrbrmstr/sergeant">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->
@ -74,24 +97,28 @@
</header>
<div class="row">
<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
<h1>Changes (optionally, all) session settings back to system defaults</h1>
<small class="dont-index">Source: <a href='https://github.com/hrbrmstr/sergeant/blob/master/R/set.R'><code>R/set.R</code></a></small>
<div class="hidden name"><code>drill_settings_reset.Rd</code></div>
</div>
<div class="ref-description">
<p>Changes (optionally, all) session settings back to system defaults</p>
</div>
<pre class="usage"><span class='fu'>drill_settings_reset</span>(<span class='no'>drill_con</span>, <span class='no'>...</span>)</pre>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a> Arguments</h2>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a>Arguments</h2>
<table class="ref-arguments">
<colgroup><col class="name" /><col class="desc" /></colgroup>
<tr>
<th>drill_con</th>
<td><p>drill server connection object setup by <code>drill_connection()</code></p></td>
<td><p>drill server connection object setup by <code><a href='drill_connection.html'>drill_connection()</a></code></p></td>
</tr>
<tr>
<th>...</th>
@ -101,13 +128,29 @@
<h2 class="hasAnchor" id="references"><a class="anchor" href="#references"></a>References</h2>
<p><a href = 'https://drill.apache.org/docs/'>Drill documentation</a></p>
<p><a href='https://drill.apache.org/docs/'>Drill documentation</a></p>
<h2 class="hasAnchor" id="see-also"><a class="anchor" href="#see-also"></a>See also</h2>
<div class='dont-index'><p>Other Dill direct REST API Interface: <code><a href='drill_active.html'>drill_active</a></code>,
<code><a href='drill_cancel.html'>drill_cancel</a></code>,
<code><a href='drill_connection.html'>drill_connection</a></code>,
<code><a href='drill_metrics.html'>drill_metrics</a></code>, <code><a href='drill_options.html'>drill_options</a></code>,
<code><a href='drill_profiles.html'>drill_profiles</a></code>,
<code><a href='drill_profile.html'>drill_profile</a></code>, <code><a href='drill_query.html'>drill_query</a></code>,
<code><a href='drill_set.html'>drill_set</a></code>, <code><a href='drill_show_files.html'>drill_show_files</a></code>,
<code><a href='drill_show_schemas.html'>drill_show_schemas</a></code>,
<code><a href='drill_stats.html'>drill_stats</a></code>, <code><a href='drill_status.html'>drill_status</a></code>,
<code><a href='drill_storage.html'>drill_storage</a></code>,
<code><a href='drill_system_reset.html'>drill_system_reset</a></code>,
<code><a href='drill_threads.html'>drill_threads</a></code>, <code><a href='drill_use.html'>drill_use</a></code>,
<code><a href='drill_version.html'>drill_version</a></code></p></div>
<h2 class="hasAnchor" id="examples"><a class="anchor" href="#examples"></a>Examples</h2>
<pre class="examples"><div class='input'><span class='fu'>not_run</span>({
<span class='fu'><a href='drill_connection.html'>drill_connection</a></span>() <span class='kw'>%&gt;%</span> <span class='fu'>drill_settings_reset</span>(<span class='no'>exec.errors.verbose</span>)
})</div></pre>
<pre class="examples"><span class='co'># NOT RUN {</span>
<span class='fu'><a href='drill_connection.html'>drill_connection</a></span>() <span class='kw'>%&gt;%</span> <span class='fu'>drill_settings_reset</span>(<span class='no'>exec.errors.verbose</span>)
<span class='co'># }</span></pre>
</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<h2>Contents</h2>
@ -115,6 +158,8 @@
<li><a href="#arguments">Arguments</a></li>
<li><a href="#references">References</a></li>
<li><a href="#see-also">See also</a></li>
<li><a href="#examples">Examples</a></li>
</ul>
@ -128,11 +173,14 @@
</div>
<div class="pkgdown">
<p>Site built with <a href="http://hadley.github.io/pkgdown/">pkgdown</a>.</p>
<p>Site built with <a href="http://pkgdown.r-lib.org/">pkgdown</a>.</p>
</div>
</footer>
</div>
</body>
</html>

77
docs/reference/drill_show_files.html

@ -18,13 +18,25 @@
<!-- Font Awesome icons -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-T8Gy5hrqNKT+hzMclPo118YTQO6cYprQmhrYwIiQ/3axmI1hQomh7Ud2hPOy8SP1" crossorigin="anonymous">
<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.7.1/clipboard.min.js" integrity="sha384-cV+rhyOuRHc9Ub/91rihWcGmMmCXDeksTtCihMupQHSsi8GIIRDG0ThDc3HGQFJ3" crossorigin="anonymous"></script>
<!-- sticky kit -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/sticky-kit/1.1.3/sticky-kit.min.js" integrity="sha256-c4Rlo1ZozqTPE2RLuvbusY3+SU1pQaJC0TjuhygMipw=" crossorigin="anonymous"></script>
<!-- pkgdown -->
<link href="../pkgdown.css" rel="stylesheet">
<script src="../jquery.sticky-kit.min.js"></script>
<script src="../pkgdown.js"></script>
<meta property="og:title" content="Show files in a file system schema. — drill_show_files" />
<meta property="og:description" content="Show files in a file system schema." />
<meta name="twitter:card" content="summary" />
<!-- mathjax -->
<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
@ -47,26 +59,37 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="../index.html">sergeant</a>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">sergeant</a>
<span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="Released package">0.7.0</span>
</span>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="../reference/index.html">Reference</a>
</li>
<li>
<a href="../news/index.html">News</a>
<a href="../news/index.html">Changelog</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="http://github.com/hrbrmstr/sergeant">
<a href="https://github.com/hrbrmstr/sergeant">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->
@ -74,24 +97,28 @@
</header>
<div class="row">
<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
<h1>Show files in a file system schema.</h1>
<small class="dont-index">Source: <a href='https://github.com/hrbrmstr/sergeant/blob/master/R/schemas.R'><code>R/schemas.R</code></a></small>
<div class="hidden name"><code>drill_show_files.Rd</code></div>
</div>
<div class="ref-description">
<p>Show files in a file system schema.</p>
</div>
<pre class="usage"><span class='fu'>drill_show_files</span>(<span class='no'>drill_con</span>, <span class='no'>schema_spec</span>)</pre>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a> Arguments</h2>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a>Arguments</h2>
<table class="ref-arguments">
<colgroup><col class="name" /><col class="desc" /></colgroup>
<tr>
<th>drill_con</th>
<td><p>drill server connection object setup by <code>drill_connection()</code></p></td>
<td><p>drill server connection object setup by <code><a href='drill_connection.html'>drill_connection()</a></code></p></td>
</tr>
<tr>
<th>schema_spec</th>
@ -101,13 +128,30 @@
<h2 class="hasAnchor" id="references"><a class="anchor" href="#references"></a>References</h2>
<p><a href = 'https://drill.apache.org/docs/'>Drill documentation</a></p>
<p><a href='https://drill.apache.org/docs/'>Drill documentation</a></p>
<h2 class="hasAnchor" id="see-also"><a class="anchor" href="#see-also"></a>See also</h2>
<div class='dont-index'><p>Other Dill direct REST API Interface: <code><a href='drill_active.html'>drill_active</a></code>,
<code><a href='drill_cancel.html'>drill_cancel</a></code>,
<code><a href='drill_connection.html'>drill_connection</a></code>,
<code><a href='drill_metrics.html'>drill_metrics</a></code>, <code><a href='drill_options.html'>drill_options</a></code>,
<code><a href='drill_profiles.html'>drill_profiles</a></code>,
<code><a href='drill_profile.html'>drill_profile</a></code>, <code><a href='drill_query.html'>drill_query</a></code>,
<code><a href='drill_settings_reset.html'>drill_settings_reset</a></code>,
<code><a href='drill_set.html'>drill_set</a></code>,
<code><a href='drill_show_schemas.html'>drill_show_schemas</a></code>,
<code><a href='drill_stats.html'>drill_stats</a></code>, <code><a href='drill_status.html'>drill_status</a></code>,
<code><a href='drill_storage.html'>drill_storage</a></code>,
<code><a href='drill_system_reset.html'>drill_system_reset</a></code>,
<code><a href='drill_threads.html'>drill_threads</a></code>, <code><a href='drill_use.html'>drill_use</a></code>,
<code><a href='drill_version.html'>drill_version</a></code></p></div>
<h2 class="hasAnchor" id="examples"><a class="anchor" href="#examples"></a>Examples</h2>
<pre class="examples"><div class='input'><span class='fu'>not_run</span>({
<span class='fu'><a href='drill_connection.html'>drill_connection</a></span>() <span class='kw'>%&gt;%</span> <span class='fu'>drill_show_files</span>(<span class='st'>"dfs.tmp"</span>)
})</div></pre>
<pre class="examples"><div class='input'><span class='fu'>try</span>({
<span class='fu'><a href='drill_connection.html'>drill_connection</a></span>() <span class='kw'>%&gt;%</span> <span class='fu'>drill_show_files</span>(<span class='st'>"dfs.tmp"</span>)
}, <span class='kw'>silent</span><span class='kw'>=</span><span class='fl'>TRUE</span>)</div></pre>
</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<h2>Contents</h2>
@ -115,6 +159,8 @@
<li><a href="#arguments">Arguments</a></li>
<li><a href="#references">References</a></li>
<li><a href="#see-also">See also</a></li>
<li><a href="#examples">Examples</a></li>
</ul>
@ -128,11 +174,14 @@
</div>
<div class="pkgdown">
<p>Site built with <a href="http://hadley.github.io/pkgdown/">pkgdown</a>.</p>
<p>Site built with <a href="http://pkgdown.r-lib.org/">pkgdown</a>.</p>
</div>
</footer>
</div>
</body>
</html>

70
docs/reference/drill_show_schemas.html

@ -18,13 +18,25 @@
<!-- Font Awesome icons -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-T8Gy5hrqNKT+hzMclPo118YTQO6cYprQmhrYwIiQ/3axmI1hQomh7Ud2hPOy8SP1" crossorigin="anonymous">
<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.7.1/clipboard.min.js" integrity="sha384-cV+rhyOuRHc9Ub/91rihWcGmMmCXDeksTtCihMupQHSsi8GIIRDG0ThDc3HGQFJ3" crossorigin="anonymous"></script>
<!-- sticky kit -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/sticky-kit/1.1.3/sticky-kit.min.js" integrity="sha256-c4Rlo1ZozqTPE2RLuvbusY3+SU1pQaJC0TjuhygMipw=" crossorigin="anonymous"></script>
<!-- pkgdown -->
<link href="../pkgdown.css" rel="stylesheet">
<script src="../jquery.sticky-kit.min.js"></script>
<script src="../pkgdown.js"></script>
<meta property="og:title" content="Returns a list of available schemas. — drill_show_schemas" />
<meta property="og:description" content="Returns a list of available schemas." />
<meta name="twitter:card" content="summary" />
<!-- mathjax -->
<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
@ -47,26 +59,37 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="../index.html">sergeant</a>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">sergeant</a>
<span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="Released package">0.7.0</span>
</span>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="../reference/index.html">Reference</a>
</li>
<li>
<a href="../news/index.html">News</a>
<a href="../news/index.html">Changelog</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="http://github.com/hrbrmstr/sergeant">
<a href="https://github.com/hrbrmstr/sergeant">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->
@ -74,30 +97,50 @@
</header>
<div class="row">
<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
<h1>Returns a list of available schemas.</h1>
<small class="dont-index">Source: <a href='https://github.com/hrbrmstr/sergeant/blob/master/R/schemas.R'><code>R/schemas.R</code></a></small>
<div class="hidden name"><code>drill_show_schemas.Rd</code></div>
</div>
<div class="ref-description">
<p>Returns a list of available schemas.</p>
</div>
<pre class="usage"><span class='fu'>drill_show_schemas</span>(<span class='no'>drill_con</span>)</pre>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a> Arguments</h2>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a>Arguments</h2>
<table class="ref-arguments">
<colgroup><col class="name" /><col class="desc" /></colgroup>
<tr>
<th>drill_con</th>
<td><p>drill server connection object setup by <code>drill_connection()</code></p></td>
<td><p>drill server connection object setup by <code><a href='drill_connection.html'>drill_connection()</a></code></p></td>
</tr>
</table>
<h2 class="hasAnchor" id="references"><a class="anchor" href="#references"></a>References</h2>
<p><a href = 'https://drill.apache.org/docs/'>Drill documentation</a></p>
<p><a href='https://drill.apache.org/docs/'>Drill documentation</a></p>
<h2 class="hasAnchor" id="see-also"><a class="anchor" href="#see-also"></a>See also</h2>
<div class='dont-index'><p>Other Dill direct REST API Interface: <code><a href='drill_active.html'>drill_active</a></code>,
<code><a href='drill_cancel.html'>drill_cancel</a></code>,
<code><a href='drill_connection.html'>drill_connection</a></code>,
<code><a href='drill_metrics.html'>drill_metrics</a></code>, <code><a href='drill_options.html'>drill_options</a></code>,
<code><a href='drill_profiles.html'>drill_profiles</a></code>,
<code><a href='drill_profile.html'>drill_profile</a></code>, <code><a href='drill_query.html'>drill_query</a></code>,
<code><a href='drill_settings_reset.html'>drill_settings_reset</a></code>,
<code><a href='drill_set.html'>drill_set</a></code>, <code><a href='drill_show_files.html'>drill_show_files</a></code>,
<code><a href='drill_stats.html'>drill_stats</a></code>, <code><a href='drill_status.html'>drill_status</a></code>,
<code><a href='drill_storage.html'>drill_storage</a></code>,
<code><a href='drill_system_reset.html'>drill_system_reset</a></code>,
<code><a href='drill_threads.html'>drill_threads</a></code>, <code><a href='drill_use.html'>drill_use</a></code>,
<code><a href='drill_version.html'>drill_version</a></code></p></div>
</div>
@ -107,6 +150,8 @@
<li><a href="#arguments">Arguments</a></li>
<li><a href="#references">References</a></li>
<li><a href="#see-also">See also</a></li>
</ul>
</div>
@ -118,11 +163,14 @@
</div>
<div class="pkgdown">
<p>Site built with <a href="http://hadley.github.io/pkgdown/">pkgdown</a>.</p>
<p>Site built with <a href="http://pkgdown.r-lib.org/">pkgdown</a>.</p>
</div>
</footer>
</div>
</body>
</html>

76
docs/reference/drill_stats.html

@ -18,13 +18,25 @@
<!-- Font Awesome icons -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-T8Gy5hrqNKT+hzMclPo118YTQO6cYprQmhrYwIiQ/3axmI1hQomh7Ud2hPOy8SP1" crossorigin="anonymous">
<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.7.1/clipboard.min.js" integrity="sha384-cV+rhyOuRHc9Ub/91rihWcGmMmCXDeksTtCihMupQHSsi8GIIRDG0ThDc3HGQFJ3" crossorigin="anonymous"></script>
<!-- sticky kit -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/sticky-kit/1.1.3/sticky-kit.min.js" integrity="sha256-c4Rlo1ZozqTPE2RLuvbusY3+SU1pQaJC0TjuhygMipw=" crossorigin="anonymous"></script>
<!-- pkgdown -->
<link href="../pkgdown.css" rel="stylesheet">
<script src="../jquery.sticky-kit.min.js"></script>
<script src="../pkgdown.js"></script>
<meta property="og:title" content="Get Drillbit information, such as ports numbers — drill_stats" />
<meta property="og:description" content="Get Drillbit information, such as ports numbers" />
<meta name="twitter:card" content="summary" />
<!-- mathjax -->
<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
@ -47,26 +59,37 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="../index.html">sergeant</a>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">sergeant</a>
<span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="Released package">0.7.0</span>
</span>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="../reference/index.html">Reference</a>
</li>
<li>
<a href="../news/index.html">News</a>
<a href="../news/index.html">Changelog</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="http://github.com/hrbrmstr/sergeant">
<a href="https://github.com/hrbrmstr/sergeant">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->
@ -74,36 +97,56 @@
</header>
<div class="row">
<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
<h1>Get Drillbit information, such as ports numbers</h1>
<small class="dont-index">Source: <a href='https://github.com/hrbrmstr/sergeant/blob/master/R/sergeant.r'><code>R/sergeant.r</code></a></small>
<div class="hidden name"><code>drill_stats.Rd</code></div>
</div>
<div class="ref-description">
<p>Get Drillbit information, such as ports numbers</p>
</div>
<pre class="usage"><span class='fu'>drill_stats</span>(<span class='no'>drill_con</span>)</pre>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a> Arguments</h2>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a>Arguments</h2>
<table class="ref-arguments">
<colgroup><col class="name" /><col class="desc" /></colgroup>
<tr>
<th>drill_con</th>
<td><p>drill server connection object setup by <code>drill_connection()</code></p></td>
<td><p>drill server connection object setup by <code><a href='drill_connection.html'>drill_connection()</a></code></p></td>
</tr>
</table>
<h2 class="hasAnchor" id="references"><a class="anchor" href="#references"></a>References</h2>
<p><a href = 'https://drill.apache.org/docs/'>Drill documentation</a></p>
<p><a href='https://drill.apache.org/docs/'>Drill documentation</a></p>
<h2 class="hasAnchor" id="see-also"><a class="anchor" href="#see-also"></a>See also</h2>
<div class='dont-index'><p>Other Dill direct REST API Interface: <code><a href='drill_active.html'>drill_active</a></code>,
<code><a href='drill_cancel.html'>drill_cancel</a></code>,
<code><a href='drill_connection.html'>drill_connection</a></code>,
<code><a href='drill_metrics.html'>drill_metrics</a></code>, <code><a href='drill_options.html'>drill_options</a></code>,
<code><a href='drill_profiles.html'>drill_profiles</a></code>,
<code><a href='drill_profile.html'>drill_profile</a></code>, <code><a href='drill_query.html'>drill_query</a></code>,
<code><a href='drill_settings_reset.html'>drill_settings_reset</a></code>,
<code><a href='drill_set.html'>drill_set</a></code>, <code><a href='drill_show_files.html'>drill_show_files</a></code>,
<code><a href='drill_show_schemas.html'>drill_show_schemas</a></code>,
<code><a href='drill_status.html'>drill_status</a></code>, <code><a href='drill_storage.html'>drill_storage</a></code>,
<code><a href='drill_system_reset.html'>drill_system_reset</a></code>,
<code><a href='drill_threads.html'>drill_threads</a></code>, <code><a href='drill_use.html'>drill_use</a></code>,
<code><a href='drill_version.html'>drill_version</a></code></p></div>
<h2 class="hasAnchor" id="examples"><a class="anchor" href="#examples"></a>Examples</h2>
<pre class="examples"><div class='input'><span class='fu'>not_run</span>({
<span class='fu'><a href='drill_connection.html'>drill_connection</a></span>() <span class='kw'>%&gt;%</span> <span class='fu'>drill_stats</span>()
})</div></pre>
<pre class="examples"><span class='co'># NOT RUN {</span>
<span class='fu'><a href='drill_connection.html'>drill_connection</a></span>() <span class='kw'>%&gt;%</span> <span class='fu'>drill_stats</span>()
<span class='co'># }</span></pre>
</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<h2>Contents</h2>
@ -111,6 +154,8 @@
<li><a href="#arguments">Arguments</a></li>
<li><a href="#references">References</a></li>
<li><a href="#see-also">See also</a></li>
<li><a href="#examples">Examples</a></li>
</ul>
@ -124,11 +169,14 @@
</div>
<div class="pkgdown">
<p>Site built with <a href="http://hadley.github.io/pkgdown/">pkgdown</a>.</p>
<p>Site built with <a href="http://pkgdown.r-lib.org/">pkgdown</a>.</p>
</div>
</footer>
</div>
</body>
</html>

74
docs/reference/drill_status.html

@ -18,13 +18,25 @@
<!-- Font Awesome icons -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-T8Gy5hrqNKT+hzMclPo118YTQO6cYprQmhrYwIiQ/3axmI1hQomh7Ud2hPOy8SP1" crossorigin="anonymous">
<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.7.1/clipboard.min.js" integrity="sha384-cV+rhyOuRHc9Ub/91rihWcGmMmCXDeksTtCihMupQHSsi8GIIRDG0ThDc3HGQFJ3" crossorigin="anonymous"></script>
<!-- sticky kit -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/sticky-kit/1.1.3/sticky-kit.min.js" integrity="sha256-c4Rlo1ZozqTPE2RLuvbusY3+SU1pQaJC0TjuhygMipw=" crossorigin="anonymous"></script>
<!-- pkgdown -->
<link href="../pkgdown.css" rel="stylesheet">
<script src="../jquery.sticky-kit.min.js"></script>
<script src="../pkgdown.js"></script>
<meta property="og:title" content="Get the status of Drill — drill_status" />
<meta property="og:description" content="Get the status of Drill" />
<meta name="twitter:card" content="summary" />
<!-- mathjax -->
<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
@ -47,26 +59,37 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="../index.html">sergeant</a>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">sergeant</a>
<span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="Released package">0.7.0</span>
</span>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="../reference/index.html">Reference</a>
</li>
<li>
<a href="../news/index.html">News</a>
<a href="../news/index.html">Changelog</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="http://github.com/hrbrmstr/sergeant">
<a href="https://github.com/hrbrmstr/sergeant">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->
@ -74,24 +97,28 @@
</header>
<div class="row">
<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
<h1>Get the status of Drill</h1>
<small class="dont-index">Source: <a href='https://github.com/hrbrmstr/sergeant/blob/master/R/sergeant.r'><code>R/sergeant.r</code></a></small>
<div class="hidden name"><code>drill_status.Rd</code></div>
</div>
<div class="ref-description">
<p>Get the status of Drill</p>
</div>
<pre class="usage"><span class='fu'>drill_status</span>(<span class='no'>drill_con</span>)</pre>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a> Arguments</h2>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a>Arguments</h2>
<table class="ref-arguments">
<colgroup><col class="name" /><col class="desc" /></colgroup>
<tr>
<th>drill_con</th>
<td><p>drill server connection object setup by <code>drill_connection()</code></p></td>
<td><p>drill server connection object setup by <code><a href='drill_connection.html'>drill_connection()</a></code></p></td>
</tr>
</table>
@ -99,11 +126,27 @@
<p>The output of this is in a "viewer" window</p>
<h2 class="hasAnchor" id="see-also"><a class="anchor" href="#see-also"></a>See also</h2>
<div class='dont-index'><p>Other Dill direct REST API Interface: <code><a href='drill_active.html'>drill_active</a></code>,
<code><a href='drill_cancel.html'>drill_cancel</a></code>,
<code><a href='drill_connection.html'>drill_connection</a></code>,
<code><a href='drill_metrics.html'>drill_metrics</a></code>, <code><a href='drill_options.html'>drill_options</a></code>,
<code><a href='drill_profiles.html'>drill_profiles</a></code>,
<code><a href='drill_profile.html'>drill_profile</a></code>, <code><a href='drill_query.html'>drill_query</a></code>,
<code><a href='drill_settings_reset.html'>drill_settings_reset</a></code>,
<code><a href='drill_set.html'>drill_set</a></code>, <code><a href='drill_show_files.html'>drill_show_files</a></code>,
<code><a href='drill_show_schemas.html'>drill_show_schemas</a></code>,
<code><a href='drill_stats.html'>drill_stats</a></code>, <code><a href='drill_storage.html'>drill_storage</a></code>,
<code><a href='drill_system_reset.html'>drill_system_reset</a></code>,
<code><a href='drill_threads.html'>drill_threads</a></code>, <code><a href='drill_use.html'>drill_use</a></code>,
<code><a href='drill_version.html'>drill_version</a></code></p></div>
<h2 class="hasAnchor" id="examples"><a class="anchor" href="#examples"></a>Examples</h2>
<pre class="examples"><div class='input'><span class='fu'>not_run</span>({
<span class='fu'><a href='drill_connection.html'>drill_connection</a></span>() <span class='kw'>%&gt;%</span> <span class='fu'>drill_status</span>()
})</div></pre>
<pre class="examples"><span class='co'># NOT RUN {</span>
<span class='fu'><a href='drill_connection.html'>drill_connection</a></span>() <span class='kw'>%&gt;%</span> <span class='fu'>drill_status</span>()
<span class='co'># }</span></pre>
</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<h2>Contents</h2>
@ -111,6 +154,8 @@
<li><a href="#arguments">Arguments</a></li>
<li><a href="#note">Note</a></li>
<li><a href="#see-also">See also</a></li>
<li><a href="#examples">Examples</a></li>
</ul>
@ -124,11 +169,14 @@
</div>
<div class="pkgdown">
<p>Site built with <a href="http://hadley.github.io/pkgdown/">pkgdown</a>.</p>
<p>Site built with <a href="http://pkgdown.r-lib.org/">pkgdown</a>.</p>
</div>
</footer>
</div>
</body>
</html>

139
docs/reference/drill_storage.html

@ -18,13 +18,25 @@
<!-- Font Awesome icons -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-T8Gy5hrqNKT+hzMclPo118YTQO6cYprQmhrYwIiQ/3axmI1hQomh7Ud2hPOy8SP1" crossorigin="anonymous">
<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.7.1/clipboard.min.js" integrity="sha384-cV+rhyOuRHc9Ub/91rihWcGmMmCXDeksTtCihMupQHSsi8GIIRDG0ThDc3HGQFJ3" crossorigin="anonymous"></script>
<!-- sticky kit -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/sticky-kit/1.1.3/sticky-kit.min.js" integrity="sha256-c4Rlo1ZozqTPE2RLuvbusY3+SU1pQaJC0TjuhygMipw=" crossorigin="anonymous"></script>
<!-- pkgdown -->
<link href="../pkgdown.css" rel="stylesheet">
<script src="../jquery.sticky-kit.min.js"></script>
<script src="../pkgdown.js"></script>
<meta property="og:title" content="Get the list of storage plugin names and configurations — drill_storage" />
<meta property="og:description" content="Get the list of storage plugin names and configurations" />
<meta name="twitter:card" content="summary" />
<!-- mathjax -->
<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
@ -47,26 +59,37 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="../index.html">sergeant</a>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">sergeant</a>
<span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="Released package">0.7.0</span>
</span>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="../reference/index.html">Reference</a>
</li>
<li>
<a href="../news/index.html">News</a>
<a href="../news/index.html">Changelog</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="http://github.com/hrbrmstr/sergeant">
<a href="https://github.com/hrbrmstr/sergeant">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->
@ -74,40 +97,121 @@
</header>
<div class="row">
<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
<h1>Get the list of storage plugin names and configurations</h1>
<small class="dont-index">Source: <a href='https://github.com/hrbrmstr/sergeant/blob/master/R/sergeant.r'><code>R/sergeant.r</code></a></small>
<div class="hidden name"><code>drill_storage.Rd</code></div>
</div>
<div class="ref-description">
<p>Get the list of storage plugin names and configurations</p>
</div>
<pre class="usage"><span class='fu'>drill_storage</span>(<span class='no'>drill_con</span>, <span class='kw'>plugin</span> <span class='kw'>=</span> <span class='kw'>NULL</span>)
<pre class="usage"><span class='fu'>drill_storage</span>(<span class='no'>drill_con</span>, <span class='kw'>plugin</span> <span class='kw'>=</span> <span class='kw'>NULL</span>)</pre>
<span class='fu'>drill_mod_storage</span>(<span class='no'>drill_con</span>, <span class='no'>name</span>, <span class='no'>config</span>)
<span class='fu'>drill_rm_storage</span>(<span class='no'>drill_con</span>, <span class='no'>name</span>)</pre>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a> Arguments</h2>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a>Arguments</h2>
<table class="ref-arguments">
<colgroup><col class="name" /><col class="desc" /></colgroup>
<tr>
<th>drill_con</th>
<td><p>drill server connection object setup by <code>drill_connection()</code></p></td>
<td><p>drill server connection object setup by <code><a href='drill_connection.html'>drill_connection()</a></code></p></td>
</tr>
<tr>
<th>plugin</th>
<td><p>the assigned name in the storage plugin definition.</p></td>
</tr>
<tr>
<th>name</th>
<td><p>name of the storage plugin configuration to create/update/remove</p></td>
</tr>
<tr>
<th>config</th>
<td><p>a <code>list</code> or raw character, valid JSON of a complete storage
spec</p></td>
</tr>
</table>
<h2 class="hasAnchor" id="references"><a class="anchor" href="#references"></a>References</h2>
<p><a href = 'https://drill.apache.org/docs/'>Drill documentation</a></p>
<p><a href='https://drill.apache.org/docs/'>Drill documentation</a></p>
<h2 class="hasAnchor" id="see-also"><a class="anchor" href="#see-also"></a>See also</h2>
<div class='dont-index'><p>Other Dill direct REST API Interface: <code><a href='drill_active.html'>drill_active</a></code>,
<code><a href='drill_cancel.html'>drill_cancel</a></code>,
<code><a href='drill_connection.html'>drill_connection</a></code>,
<code><a href='drill_metrics.html'>drill_metrics</a></code>, <code><a href='drill_options.html'>drill_options</a></code>,
<code><a href='drill_profiles.html'>drill_profiles</a></code>,
<code><a href='drill_profile.html'>drill_profile</a></code>, <code><a href='drill_query.html'>drill_query</a></code>,
<code><a href='drill_settings_reset.html'>drill_settings_reset</a></code>,
<code><a href='drill_set.html'>drill_set</a></code>, <code><a href='drill_show_files.html'>drill_show_files</a></code>,
<code><a href='drill_show_schemas.html'>drill_show_schemas</a></code>,
<code><a href='drill_stats.html'>drill_stats</a></code>, <code><a href='drill_status.html'>drill_status</a></code>,
<code><a href='drill_system_reset.html'>drill_system_reset</a></code>,
<code><a href='drill_threads.html'>drill_threads</a></code>, <code><a href='drill_use.html'>drill_use</a></code>,
<code><a href='drill_version.html'>drill_version</a></code></p>
<p>Other Dill direct REST API Interface: <code><a href='drill_active.html'>drill_active</a></code>,
<code><a href='drill_cancel.html'>drill_cancel</a></code>,
<code><a href='drill_connection.html'>drill_connection</a></code>,
<code><a href='drill_metrics.html'>drill_metrics</a></code>, <code><a href='drill_options.html'>drill_options</a></code>,
<code><a href='drill_profiles.html'>drill_profiles</a></code>,
<code><a href='drill_profile.html'>drill_profile</a></code>, <code><a href='drill_query.html'>drill_query</a></code>,
<code><a href='drill_settings_reset.html'>drill_settings_reset</a></code>,
<code><a href='drill_set.html'>drill_set</a></code>, <code><a href='drill_show_files.html'>drill_show_files</a></code>,
<code><a href='drill_show_schemas.html'>drill_show_schemas</a></code>,
<code><a href='drill_stats.html'>drill_stats</a></code>, <code><a href='drill_status.html'>drill_status</a></code>,
<code><a href='drill_system_reset.html'>drill_system_reset</a></code>,
<code><a href='drill_threads.html'>drill_threads</a></code>, <code><a href='drill_use.html'>drill_use</a></code>,
<code><a href='drill_version.html'>drill_version</a></code></p>
<p>Other Dill direct REST API Interface: <code><a href='drill_active.html'>drill_active</a></code>,
<code><a href='drill_cancel.html'>drill_cancel</a></code>,
<code><a href='drill_connection.html'>drill_connection</a></code>,
<code><a href='drill_metrics.html'>drill_metrics</a></code>, <code><a href='drill_options.html'>drill_options</a></code>,
<code><a href='drill_profiles.html'>drill_profiles</a></code>,
<code><a href='drill_profile.html'>drill_profile</a></code>, <code><a href='drill_query.html'>drill_query</a></code>,
<code><a href='drill_settings_reset.html'>drill_settings_reset</a></code>,
<code><a href='drill_set.html'>drill_set</a></code>, <code><a href='drill_show_files.html'>drill_show_files</a></code>,
<code><a href='drill_show_schemas.html'>drill_show_schemas</a></code>,
<code><a href='drill_stats.html'>drill_stats</a></code>, <code><a href='drill_status.html'>drill_status</a></code>,
<code><a href='drill_system_reset.html'>drill_system_reset</a></code>,
<code><a href='drill_threads.html'>drill_threads</a></code>, <code><a href='drill_use.html'>drill_use</a></code>,
<code><a href='drill_version.html'>drill_version</a></code></p></div>
<h2 class="hasAnchor" id="examples"><a class="anchor" href="#examples"></a>Examples</h2>
<pre class="examples"><div class='input'><span class='fu'>not_run</span>({
<span class='fu'><a href='drill_connection.html'>drill_connection</a></span>() <span class='kw'>%&gt;%</span> <span class='fu'>drill_storage</span>()
})</div></pre>
<pre class="examples"><span class='co'># NOT RUN {</span>
<span class='fu'><a href='drill_connection.html'>drill_connection</a></span>() <span class='kw'>%&gt;%</span> <span class='fu'>drill_storage</span>()
<span class='fu'><a href='drill_connection.html'>drill_connection</a></span>() <span class='kw'>%&gt;%</span>
<span class='fu'>drill_mod_storage</span>(
<span class='kw'>name</span> <span class='kw'>=</span> <span class='st'>"drilldat"</span>,
<span class='kw'>config</span> <span class='kw'>=</span> <span class='st'>'
{
"config" : {
"connection" : "file:///",
"enabled" : true,
"formats" : null,
"type" : "file",
"workspaces" : {
"root" : {
"location" : "/Users/hrbrmstr/drilldat",
"writable" : true,
"defaultInputFormat": null
}
}
},
"name" : "drilldat"
}
'</span>)
<span class='co'># }</span></pre>
</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<h2>Contents</h2>
@ -115,6 +219,8 @@
<li><a href="#arguments">Arguments</a></li>
<li><a href="#references">References</a></li>
<li><a href="#see-also">See also</a></li>
<li><a href="#examples">Examples</a></li>
</ul>
@ -128,11 +234,14 @@
</div>
<div class="pkgdown">
<p>Site built with <a href="http://hadley.github.io/pkgdown/">pkgdown</a>.</p>
<p>Site built with <a href="http://pkgdown.r-lib.org/">pkgdown</a>.</p>
</div>
</footer>
</div>
</body>
</html>

75
docs/reference/drill_system_reset.html

@ -18,13 +18,25 @@
<!-- Font Awesome icons -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-T8Gy5hrqNKT+hzMclPo118YTQO6cYprQmhrYwIiQ/3axmI1hQomh7Ud2hPOy8SP1" crossorigin="anonymous">
<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.7.1/clipboard.min.js" integrity="sha384-cV+rhyOuRHc9Ub/91rihWcGmMmCXDeksTtCihMupQHSsi8GIIRDG0ThDc3HGQFJ3" crossorigin="anonymous"></script>
<!-- sticky kit -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/sticky-kit/1.1.3/sticky-kit.min.js" integrity="sha256-c4Rlo1ZozqTPE2RLuvbusY3+SU1pQaJC0TjuhygMipw=" crossorigin="anonymous"></script>
<!-- pkgdown -->
<link href="../pkgdown.css" rel="stylesheet">
<script src="../jquery.sticky-kit.min.js"></script>
<script src="../pkgdown.js"></script>
<meta property="og:title" content="Changes (optionally, all) system settings back to system defaults — drill_system_reset" />
<meta property="og:description" content="Changes (optionally, all) system settings back to system defaults" />
<meta name="twitter:card" content="summary" />
<!-- mathjax -->
<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
@ -47,26 +59,37 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="../index.html">sergeant</a>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">sergeant</a>
<span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="Released package">0.7.0</span>
</span>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="../reference/index.html">Reference</a>
</li>
<li>
<a href="../news/index.html">News</a>
<a href="../news/index.html">Changelog</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="http://github.com/hrbrmstr/sergeant">
<a href="https://github.com/hrbrmstr/sergeant">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->
@ -74,24 +97,28 @@
</header>
<div class="row">
<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
<h1>Changes (optionally, all) system settings back to system defaults</h1>
<small class="dont-index">Source: <a href='https://github.com/hrbrmstr/sergeant/blob/master/R/set.R'><code>R/set.R</code></a></small>
<div class="hidden name"><code>drill_system_reset.Rd</code></div>
</div>
<div class="ref-description">
<p>Changes (optionally, all) system settings back to system defaults</p>
</div>
<pre class="usage"><span class='fu'>drill_system_reset</span>(<span class='no'>drill_con</span>, <span class='no'>...</span>, <span class='kw'>all</span> <span class='kw'>=</span> <span class='fl'>FALSE</span>)</pre>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a> Arguments</h2>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a>Arguments</h2>
<table class="ref-arguments">
<colgroup><col class="name" /><col class="desc" /></colgroup>
<tr>
<th>drill_con</th>
<td><p>drill server connection object setup by <code>drill_connection()</code></p></td>
<td><p>drill server connection object setup by <code><a href='drill_connection.html'>drill_connection()</a></code></p></td>
</tr>
<tr>
<th>...</th>
@ -105,13 +132,28 @@
<h2 class="hasAnchor" id="references"><a class="anchor" href="#references"></a>References</h2>
<p><a href = 'https://drill.apache.org/docs/'>Drill documentation</a></p>
<p><a href='https://drill.apache.org/docs/'>Drill documentation</a></p>
<h2 class="hasAnchor" id="see-also"><a class="anchor" href="#see-also"></a>See also</h2>
<div class='dont-index'><p>Other Dill direct REST API Interface: <code><a href='drill_active.html'>drill_active</a></code>,
<code><a href='drill_cancel.html'>drill_cancel</a></code>,
<code><a href='drill_connection.html'>drill_connection</a></code>,
<code><a href='drill_metrics.html'>drill_metrics</a></code>, <code><a href='drill_options.html'>drill_options</a></code>,
<code><a href='drill_profiles.html'>drill_profiles</a></code>,
<code><a href='drill_profile.html'>drill_profile</a></code>, <code><a href='drill_query.html'>drill_query</a></code>,
<code><a href='drill_settings_reset.html'>drill_settings_reset</a></code>,
<code><a href='drill_set.html'>drill_set</a></code>, <code><a href='drill_show_files.html'>drill_show_files</a></code>,
<code><a href='drill_show_schemas.html'>drill_show_schemas</a></code>,
<code><a href='drill_stats.html'>drill_stats</a></code>, <code><a href='drill_status.html'>drill_status</a></code>,
<code><a href='drill_storage.html'>drill_storage</a></code>, <code><a href='drill_threads.html'>drill_threads</a></code>,
<code><a href='drill_use.html'>drill_use</a></code>, <code><a href='drill_version.html'>drill_version</a></code></p></div>
<h2 class="hasAnchor" id="examples"><a class="anchor" href="#examples"></a>Examples</h2>
<pre class="examples"><div class='input'><span class='fu'>not_run</span>({
<span class='fu'><a href='drill_connection.html'>drill_connection</a></span>() <span class='kw'>%&gt;%</span> <span class='fu'>drill_system_reset</span>(<span class='kw'>all</span><span class='kw'>=</span><span class='fl'>TRUE</span>)
})</div></pre>
<pre class="examples"><span class='co'># NOT RUN {</span>
<span class='fu'><a href='drill_connection.html'>drill_connection</a></span>() <span class='kw'>%&gt;%</span> <span class='fu'>drill_system_reset</span>(<span class='kw'>all</span><span class='kw'>=</span><span class='fl'>TRUE</span>)
<span class='co'># }</span></pre>
</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<h2>Contents</h2>
@ -119,6 +161,8 @@
<li><a href="#arguments">Arguments</a></li>
<li><a href="#references">References</a></li>
<li><a href="#see-also">See also</a></li>
<li><a href="#examples">Examples</a></li>
</ul>
@ -132,11 +176,14 @@
</div>
<div class="pkgdown">
<p>Site built with <a href="http://hadley.github.io/pkgdown/">pkgdown</a>.</p>
<p>Site built with <a href="http://pkgdown.r-lib.org/">pkgdown</a>.</p>
</div>
</footer>
</div>
</body>
</html>

74
docs/reference/drill_threads.html

@ -18,13 +18,25 @@
<!-- Font Awesome icons -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-T8Gy5hrqNKT+hzMclPo118YTQO6cYprQmhrYwIiQ/3axmI1hQomh7Ud2hPOy8SP1" crossorigin="anonymous">
<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.7.1/clipboard.min.js" integrity="sha384-cV+rhyOuRHc9Ub/91rihWcGmMmCXDeksTtCihMupQHSsi8GIIRDG0ThDc3HGQFJ3" crossorigin="anonymous"></script>
<!-- sticky kit -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/sticky-kit/1.1.3/sticky-kit.min.js" integrity="sha256-c4Rlo1ZozqTPE2RLuvbusY3+SU1pQaJC0TjuhygMipw=" crossorigin="anonymous"></script>
<!-- pkgdown -->
<link href="../pkgdown.css" rel="stylesheet">
<script src="../jquery.sticky-kit.min.js"></script>
<script src="../pkgdown.js"></script>
<meta property="og:title" content="Get information about threads — drill_threads" />
<meta property="og:description" content="Get information about threads" />
<meta name="twitter:card" content="summary" />
<!-- mathjax -->
<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
@ -47,26 +59,37 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="../index.html">sergeant</a>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">sergeant</a>
<span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="Released package">0.7.0</span>
</span>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="../reference/index.html">Reference</a>
</li>
<li>
<a href="../news/index.html">News</a>
<a href="../news/index.html">Changelog</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="http://github.com/hrbrmstr/sergeant">
<a href="https://github.com/hrbrmstr/sergeant">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->
@ -74,24 +97,28 @@
</header>
<div class="row">
<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
<h1>Get information about threads</h1>
<small class="dont-index">Source: <a href='https://github.com/hrbrmstr/sergeant/blob/master/R/sergeant.r'><code>R/sergeant.r</code></a></small>
<div class="hidden name"><code>drill_threads.Rd</code></div>
</div>
<div class="ref-description">
<p>Get information about threads</p>
</div>
<pre class="usage"><span class='fu'>drill_threads</span>(<span class='no'>drill_con</span>)</pre>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a> Arguments</h2>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a>Arguments</h2>
<table class="ref-arguments">
<colgroup><col class="name" /><col class="desc" /></colgroup>
<tr>
<th>drill_con</th>
<td><p>drill server connection object setup by <code>drill_connection()</code></p></td>
<td><p>drill server connection object setup by <code><a href='drill_connection.html'>drill_connection()</a></code></p></td>
</tr>
</table>
@ -99,11 +126,27 @@
<p>The output of this is in a "viewer" window</p>
<h2 class="hasAnchor" id="see-also"><a class="anchor" href="#see-also"></a>See also</h2>
<div class='dont-index'><p>Other Dill direct REST API Interface: <code><a href='drill_active.html'>drill_active</a></code>,
<code><a href='drill_cancel.html'>drill_cancel</a></code>,
<code><a href='drill_connection.html'>drill_connection</a></code>,
<code><a href='drill_metrics.html'>drill_metrics</a></code>, <code><a href='drill_options.html'>drill_options</a></code>,
<code><a href='drill_profiles.html'>drill_profiles</a></code>,
<code><a href='drill_profile.html'>drill_profile</a></code>, <code><a href='drill_query.html'>drill_query</a></code>,
<code><a href='drill_settings_reset.html'>drill_settings_reset</a></code>,
<code><a href='drill_set.html'>drill_set</a></code>, <code><a href='drill_show_files.html'>drill_show_files</a></code>,
<code><a href='drill_show_schemas.html'>drill_show_schemas</a></code>,
<code><a href='drill_stats.html'>drill_stats</a></code>, <code><a href='drill_status.html'>drill_status</a></code>,
<code><a href='drill_storage.html'>drill_storage</a></code>,
<code><a href='drill_system_reset.html'>drill_system_reset</a></code>,
<code><a href='drill_use.html'>drill_use</a></code>, <code><a href='drill_version.html'>drill_version</a></code></p></div>
<h2 class="hasAnchor" id="examples"><a class="anchor" href="#examples"></a>Examples</h2>
<pre class="examples"><div class='input'><span class='fu'>not_run</span>({
<span class='fu'><a href='drill_connection.html'>drill_connection</a></span>() <span class='kw'>%&gt;%</span> <span class='fu'>drill_threads</span>()
})</div></pre>
<pre class="examples"><span class='co'># NOT RUN {</span>
<span class='fu'><a href='drill_connection.html'>drill_connection</a></span>() <span class='kw'>%&gt;%</span> <span class='fu'>drill_threads</span>()
<span class='co'># }</span></pre>
</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<h2>Contents</h2>
@ -111,6 +154,8 @@
<li><a href="#arguments">Arguments</a></li>
<li><a href="#note">Note</a></li>
<li><a href="#see-also">See also</a></li>
<li><a href="#examples">Examples</a></li>
</ul>
@ -124,11 +169,14 @@
</div>
<div class="pkgdown">
<p>Site built with <a href="http://hadley.github.io/pkgdown/">pkgdown</a>.</p>
<p>Site built with <a href="http://pkgdown.r-lib.org/">pkgdown</a>.</p>
</div>
</footer>
</div>
</body>
</html>

54
docs/reference/drill_uplift.html

@ -18,13 +18,27 @@
<!-- Font Awesome icons -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-T8Gy5hrqNKT+hzMclPo118YTQO6cYprQmhrYwIiQ/3axmI1hQomh7Ud2hPOy8SP1" crossorigin="anonymous">
<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.7.1/clipboard.min.js" integrity="sha384-cV+rhyOuRHc9Ub/91rihWcGmMmCXDeksTtCihMupQHSsi8GIIRDG0ThDc3HGQFJ3" crossorigin="anonymous"></script>
<!-- sticky kit -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/sticky-kit/1.1.3/sticky-kit.min.js" integrity="sha256-c4Rlo1ZozqTPE2RLuvbusY3+SU1pQaJC0TjuhygMipw=" crossorigin="anonymous"></script>
<!-- pkgdown -->
<link href="../pkgdown.css" rel="stylesheet">
<script src="../jquery.sticky-kit.min.js"></script>
<script src="../pkgdown.js"></script>
<meta property="og:title" content="Turn columnar query results into a type-converted tbl — drill_uplift" />
<meta property="og:description" content="If you know the result of `drill_query()` will be a data frame, then
you can pipe it to this function to pull out `rows` and automatically
type-convert it." />
<meta name="twitter:card" content="summary" />
<!-- mathjax -->
<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
@ -47,26 +61,37 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="../index.html">sergeant</a>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">sergeant</a>
<span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="Released package">0.7.0</span>
</span>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="../reference/index.html">Reference</a>
</li>
<li>
<a href="../news/index.html">News</a>
<a href="../news/index.html">Changelog</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="http://github.com/hrbrmstr/sergeant">
<a href="https://github.com/hrbrmstr/sergeant">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->
@ -74,21 +99,25 @@
</header>
<div class="row">
<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
<h1>Turn columnar query results into a type-converted tbl</h1>
<small class="dont-index">Source: <a href='https://github.com/hrbrmstr/sergeant/blob/master/R/query.r'><code>R/query.r</code></a></small>
<div class="hidden name"><code>drill_uplift.Rd</code></div>
</div>
<div class="ref-description">
<p>If you know the result of `drill_query()` will be a data frame, then
you can pipe it to this function to pull out `rows` and automatically
type-convert it.</p>
</div>
<pre class="usage"><span class='fu'>drill_uplift</span>(<span class='no'>query_result</span>)</pre>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a> Arguments</h2>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a>Arguments</h2>
<table class="ref-arguments">
<colgroup><col class="name" /><col class="desc" /></colgroup>
<tr>
@ -100,11 +129,11 @@ type-convert it.</p>
<h2 class="hasAnchor" id="details"><a class="anchor" href="#details"></a>Details</h2>
<p>Not really intended to be called directly, but useful if you accidentally ran
<code>drill_query()</code> without `uplift=TRUE` but want to then convert the structure.</p>
<code><a href='drill_query.html'>drill_query()</a></code> without `uplift=TRUE` but want to then convert the structure.</p>
<h2 class="hasAnchor" id="references"><a class="anchor" href="#references"></a>References</h2>
<p><a href = 'https://drill.apache.org/docs/'>Drill documentation</a></p>
<p><a href='https://drill.apache.org/docs/'>Drill documentation</a></p>
</div>
@ -127,11 +156,14 @@ type-convert it.</p>
</div>
<div class="pkgdown">
<p>Site built with <a href="http://hadley.github.io/pkgdown/">pkgdown</a>.</p>
<p>Site built with <a href="http://pkgdown.r-lib.org/">pkgdown</a>.</p>
</div>
</footer>
</div>
</body>
</html>

70
docs/reference/drill_use.html

@ -18,13 +18,25 @@
<!-- Font Awesome icons -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-T8Gy5hrqNKT+hzMclPo118YTQO6cYprQmhrYwIiQ/3axmI1hQomh7Ud2hPOy8SP1" crossorigin="anonymous">
<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.7.1/clipboard.min.js" integrity="sha384-cV+rhyOuRHc9Ub/91rihWcGmMmCXDeksTtCihMupQHSsi8GIIRDG0ThDc3HGQFJ3" crossorigin="anonymous"></script>
<!-- sticky kit -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/sticky-kit/1.1.3/sticky-kit.min.js" integrity="sha256-c4Rlo1ZozqTPE2RLuvbusY3+SU1pQaJC0TjuhygMipw=" crossorigin="anonymous"></script>
<!-- pkgdown -->
<link href="../pkgdown.css" rel="stylesheet">
<script src="../jquery.sticky-kit.min.js"></script>
<script src="../pkgdown.js"></script>
<meta property="og:title" content="Change to a particular schema. — drill_use" />
<meta property="og:description" content="Change to a particular schema." />
<meta name="twitter:card" content="summary" />
<!-- mathjax -->
<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
@ -47,26 +59,37 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="../index.html">sergeant</a>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">sergeant</a>
<span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="Released package">0.7.0</span>
</span>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="../reference/index.html">Reference</a>
</li>
<li>
<a href="../news/index.html">News</a>
<a href="../news/index.html">Changelog</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="http://github.com/hrbrmstr/sergeant">
<a href="https://github.com/hrbrmstr/sergeant">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->
@ -74,24 +97,28 @@
</header>
<div class="row">
<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
<h1>Change to a particular schema.</h1>
<small class="dont-index">Source: <a href='https://github.com/hrbrmstr/sergeant/blob/master/R/schemas.R'><code>R/schemas.R</code></a></small>
<div class="hidden name"><code>drill_use.Rd</code></div>
</div>
<div class="ref-description">
<p>Change to a particular schema.</p>
</div>
<pre class="usage"><span class='fu'>drill_use</span>(<span class='no'>drill_con</span>, <span class='no'>schema_name</span>)</pre>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a> Arguments</h2>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a>Arguments</h2>
<table class="ref-arguments">
<colgroup><col class="name" /><col class="desc" /></colgroup>
<tr>
<th>drill_con</th>
<td><p>drill server connection object setup by <code>drill_connection()</code></p></td>
<td><p>drill server connection object setup by <code><a href='drill_connection.html'>drill_connection()</a></code></p></td>
</tr>
<tr>
<th>schema_name</th>
@ -102,7 +129,23 @@ storage plugin, such as hive, or a storage plugin and workspace.</p></td>
<h2 class="hasAnchor" id="references"><a class="anchor" href="#references"></a>References</h2>
<p><a href = 'https://drill.apache.org/docs/'>Drill documentation</a></p>
<p><a href='https://drill.apache.org/docs/'>Drill documentation</a></p>
<h2 class="hasAnchor" id="see-also"><a class="anchor" href="#see-also"></a>See also</h2>
<div class='dont-index'><p>Other Dill direct REST API Interface: <code><a href='drill_active.html'>drill_active</a></code>,
<code><a href='drill_cancel.html'>drill_cancel</a></code>,
<code><a href='drill_connection.html'>drill_connection</a></code>,
<code><a href='drill_metrics.html'>drill_metrics</a></code>, <code><a href='drill_options.html'>drill_options</a></code>,
<code><a href='drill_profiles.html'>drill_profiles</a></code>,
<code><a href='drill_profile.html'>drill_profile</a></code>, <code><a href='drill_query.html'>drill_query</a></code>,
<code><a href='drill_settings_reset.html'>drill_settings_reset</a></code>,
<code><a href='drill_set.html'>drill_set</a></code>, <code><a href='drill_show_files.html'>drill_show_files</a></code>,
<code><a href='drill_show_schemas.html'>drill_show_schemas</a></code>,
<code><a href='drill_stats.html'>drill_stats</a></code>, <code><a href='drill_status.html'>drill_status</a></code>,
<code><a href='drill_storage.html'>drill_storage</a></code>,
<code><a href='drill_system_reset.html'>drill_system_reset</a></code>,
<code><a href='drill_threads.html'>drill_threads</a></code>, <code><a href='drill_version.html'>drill_version</a></code></p></div>
</div>
@ -112,6 +155,8 @@ storage plugin, such as hive, or a storage plugin and workspace.</p></td>
<li><a href="#arguments">Arguments</a></li>
<li><a href="#references">References</a></li>
<li><a href="#see-also">See also</a></li>
</ul>
</div>
@ -123,11 +168,14 @@ storage plugin, such as hive, or a storage plugin and workspace.</p></td>
</div>
<div class="pkgdown">
<p>Site built with <a href="http://hadley.github.io/pkgdown/">pkgdown</a>.</p>
<p>Site built with <a href="http://pkgdown.r-lib.org/">pkgdown</a>.</p>
</div>
</footer>
</div>
</body>
</html>

76
docs/reference/drill_version.html

@ -18,13 +18,25 @@
<!-- Font Awesome icons -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-T8Gy5hrqNKT+hzMclPo118YTQO6cYprQmhrYwIiQ/3axmI1hQomh7Ud2hPOy8SP1" crossorigin="anonymous">
<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.7.1/clipboard.min.js" integrity="sha384-cV+rhyOuRHc9Ub/91rihWcGmMmCXDeksTtCihMupQHSsi8GIIRDG0ThDc3HGQFJ3" crossorigin="anonymous"></script>
<!-- sticky kit -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/sticky-kit/1.1.3/sticky-kit.min.js" integrity="sha256-c4Rlo1ZozqTPE2RLuvbusY3+SU1pQaJC0TjuhygMipw=" crossorigin="anonymous"></script>
<!-- pkgdown -->
<link href="../pkgdown.css" rel="stylesheet">
<script src="../jquery.sticky-kit.min.js"></script>
<script src="../pkgdown.js"></script>
<meta property="og:title" content="Identify the version of Drill running — drill_version" />
<meta property="og:description" content="Identify the version of Drill running" />
<meta name="twitter:card" content="summary" />
<!-- mathjax -->
<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
@ -47,26 +59,37 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="../index.html">sergeant</a>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">sergeant</a>
<span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="Released package">0.7.0</span>
</span>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="../reference/index.html">Reference</a>
</li>
<li>
<a href="../news/index.html">News</a>
<a href="../news/index.html">Changelog</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="http://github.com/hrbrmstr/sergeant">
<a href="https://github.com/hrbrmstr/sergeant">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->
@ -74,36 +97,56 @@
</header>
<div class="row">
<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
<h1>Identify the version of Drill running</h1>
<small class="dont-index">Source: <a href='https://github.com/hrbrmstr/sergeant/blob/master/R/sergeant.r'><code>R/sergeant.r</code></a></small>
<div class="hidden name"><code>drill_version.Rd</code></div>
</div>
<div class="ref-description">
<p>Identify the version of Drill running</p>
</div>
<pre class="usage"><span class='fu'>drill_version</span>(<span class='no'>drill_con</span>)</pre>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a> Arguments</h2>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a>Arguments</h2>
<table class="ref-arguments">
<colgroup><col class="name" /><col class="desc" /></colgroup>
<tr>
<th>drill_con</th>
<td><p>drill server connection object setup by <code>drill_connection()</code></p></td>
<td><p>drill server connection object setup by <code><a href='drill_connection.html'>drill_connection()</a></code></p></td>
</tr>
</table>
<h2 class="hasAnchor" id="references"><a class="anchor" href="#references"></a>References</h2>
<p><a href = 'https://drill.apache.org/docs/'>Drill documentation</a></p>
<p><a href='https://drill.apache.org/docs/'>Drill documentation</a></p>
<h2 class="hasAnchor" id="see-also"><a class="anchor" href="#see-also"></a>See also</h2>
<div class='dont-index'><p>Other Dill direct REST API Interface: <code><a href='drill_active.html'>drill_active</a></code>,
<code><a href='drill_cancel.html'>drill_cancel</a></code>,
<code><a href='drill_connection.html'>drill_connection</a></code>,
<code><a href='drill_metrics.html'>drill_metrics</a></code>, <code><a href='drill_options.html'>drill_options</a></code>,
<code><a href='drill_profiles.html'>drill_profiles</a></code>,
<code><a href='drill_profile.html'>drill_profile</a></code>, <code><a href='drill_query.html'>drill_query</a></code>,
<code><a href='drill_settings_reset.html'>drill_settings_reset</a></code>,
<code><a href='drill_set.html'>drill_set</a></code>, <code><a href='drill_show_files.html'>drill_show_files</a></code>,
<code><a href='drill_show_schemas.html'>drill_show_schemas</a></code>,
<code><a href='drill_stats.html'>drill_stats</a></code>, <code><a href='drill_status.html'>drill_status</a></code>,
<code><a href='drill_storage.html'>drill_storage</a></code>,
<code><a href='drill_system_reset.html'>drill_system_reset</a></code>,
<code><a href='drill_threads.html'>drill_threads</a></code>, <code><a href='drill_use.html'>drill_use</a></code></p></div>
<h2 class="hasAnchor" id="examples"><a class="anchor" href="#examples"></a>Examples</h2>
<pre class="examples"><div class='input'><span class='fu'>not_run</span>({
<span class='fu'><a href='drill_connection.html'>drill_connection</a></span>() <span class='kw'>%&gt;%</span> <span class='fu'>drill_version</span>()
})</div></pre>
<pre class="examples"><span class='co'># NOT RUN {</span>
<span class='fu'><a href='drill_connection.html'>drill_connection</a></span>() <span class='kw'>%&gt;%</span> <span class='fu'>drill_version</span>()
<span class='co'># }</span></pre>
</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<h2>Contents</h2>
@ -111,6 +154,8 @@
<li><a href="#arguments">Arguments</a></li>
<li><a href="#references">References</a></li>
<li><a href="#see-also">See also</a></li>
<li><a href="#examples">Examples</a></li>
</ul>
@ -124,11 +169,14 @@
</div>
<div class="pkgdown">
<p>Site built with <a href="http://hadley.github.io/pkgdown/">pkgdown</a>.</p>
<p>Site built with <a href="http://pkgdown.r-lib.org/">pkgdown</a>.</p>
</div>
</footer>
</div>
</body>
</html>

409
docs/reference/index.html

@ -18,13 +18,22 @@
<!-- Font Awesome icons -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-T8Gy5hrqNKT+hzMclPo118YTQO6cYprQmhrYwIiQ/3axmI1hQomh7Ud2hPOy8SP1" crossorigin="anonymous">
<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.7.1/clipboard.min.js" integrity="sha384-cV+rhyOuRHc9Ub/91rihWcGmMmCXDeksTtCihMupQHSsi8GIIRDG0ThDc3HGQFJ3" crossorigin="anonymous"></script>
<!-- sticky kit -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/sticky-kit/1.1.3/sticky-kit.min.js" integrity="sha256-c4Rlo1ZozqTPE2RLuvbusY3+SU1pQaJC0TjuhygMipw=" crossorigin="anonymous"></script>
<!-- pkgdown -->
<link href="../pkgdown.css" rel="stylesheet">
<script src="../jquery.sticky-kit.min.js"></script>
<script src="../pkgdown.js"></script>
<meta property="og:title" content="Function reference" />
<!-- mathjax -->
<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
@ -47,26 +56,37 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="../index.html">sergeant</a>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">sergeant</a>
<span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="Released package">0.7.0</span>
</span>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="../reference/index.html">Reference</a>
</li>
<li>
<a href="../news/index.html">News</a>
<a href="../news/index.html">Changelog</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="http://github.com/hrbrmstr/sergeant">
<a href="https://github.com/hrbrmstr/sergeant">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->
@ -74,202 +94,192 @@
</header>
<div class="row">
<div class="col-md-9">
<div class="row">
<div class="contents col-md-9">
<div class="page-header">
<h1>
Reference
<small>version&nbsp;0.5.0</small>
</h1>
<h1>Reference</h1>
</div>
<div class="contents">
<table class="ref-index">
<table class="ref-index">
<colgroup>
<col class="alias" />
<col class="title" />
</colgroup>
<colgroup>
<col class="alias" />
<col class="title" />
</colgroup>
<tbody>
<tr>
<th colspan="2">
<h2 id="section-all-functions" class="hasAnchor"><a href="#section-all-functions" class="anchor"></a>All functions</h2>
<p class="section-desc"></p>
</th>
</tr>
<tr>
<!-- -->
<td>
<p><code><a href="dbDataType-DrillConnection-method.html">dbDataType</a></code> </p>
</td>
<td><p>Drill dbDataType</p></td>
</tr><tr>
<!-- -->
<td>
<p><code><a href="DrilDriver-class.html">dbUnloadDriver</a></code> </p>
</td>
<td><p>Unload driver</p></td>
</tr><tr>
<!-- -->
<td>
<p><code><a href="drill_active.html">drill_active</a></code> </p>
</td>
<td><p>Test whether Drill HTTP REST API server is up</p></td>
</tr><tr>
<!-- -->
<td>
<p><code><a href="drill_cancel.html">drill_cancel</a></code> </p>
</td>
<td><p>Cancel the query that has the given queryid</p></td>
</tr><tr>
<!-- -->
<td>
<p><code><a href="drill_connection.html">drill_connection</a></code> </p>
</td>
<td><p>Setup a Drill connection</p></td>
</tr><tr>
<!-- -->
<td>
<p><code><a href="drill_custom_functions.html">drill_custom_functions</a></code> </p>
</td>
<td><p>Drill expressions / custom functions <code>dplyr</code> translation:</p></td>
</tr><tr>
<!-- -->
<td>
<p><code><a href="drill_jdbc.html">drill_jdbc</a></code> </p>
</td>
<td><p>Connect to Drill using JDBC</p></td>
</tr><tr>
<!-- -->
<td>
<p><code><a href="drill_metrics.html">drill_metrics</a></code> </p>
</td>
<td><p>Get the current memory metrics</p></td>
</tr><tr>
<!-- -->
<td>
<p><code><a href="drill_options.html">drill_options</a></code> </p>
</td>
<td><p>List the name, default, and data type of the system and session options</p></td>
</tr><tr>
<!-- -->
<td>
<p><code><a href="drill_profile.html">drill_profile</a></code> </p>
</td>
<td><p>Get the profile of the query that has the given queryid</p></td>
</tr><tr>
<!-- -->
<td>
<p><code><a href="drill_profiles.html">drill_profiles</a></code> </p>
</td>
<td><p>Get the profiles of running and completed queries</p></td>
</tr><tr>
<!-- -->
<td>
<p><code><a href="drill_query.html">drill_query</a></code> </p>
</td>
<td><p>Submit a query and return results</p></td>
</tr><tr>
<!-- -->
<td>
<p><code><a href="drill_set.html">drill_set</a></code> </p>
</td>
<td><p>Set Drill SYSTEM or SESSION options</p></td>
</tr><tr>
<!-- -->
<td>
<p><code><a href="drill_settings_reset.html">drill_settings_reset</a></code> </p>
</td>
<td><p>Changes (optionally, all) session settings back to system defaults</p></td>
</tr><tr>
<!-- -->
<td>
<p><code><a href="drill_show_files.html">drill_show_files</a></code> </p>
</td>
<td><p>Show files in a file system schema.</p></td>
</tr><tr>
<!-- -->
<td>
<p><code><a href="drill_show_schemas.html">drill_show_schemas</a></code> </p>
</td>
<td><p>Returns a list of available schemas.</p></td>
</tr><tr>
<!-- -->
<td>
<p><code><a href="drill_stats.html">drill_stats</a></code> </p>
</td>
<td><p>Get Drillbit information, such as ports numbers</p></td>
</tr><tr>
<!-- -->
<td>
<p><code><a href="drill_status.html">drill_status</a></code> </p>
</td>
<td><p>Get the status of Drill</p></td>
</tr><tr>
<!-- -->
<td>
<p><code><a href="drill_storage.html">drill_storage</a></code> </p>
</td>
<td><p>Get the list of storage plugin names and configurations</p></td>
</tr><tr>
<!-- -->
<td>
<p><code><a href="drill_system_reset.html">drill_system_reset</a></code> </p>
</td>
<td><p>Changes (optionally, all) system settings back to system defaults</p></td>
</tr><tr>
<!-- -->
<td>
<p><code><a href="drill_threads.html">drill_threads</a></code> </p>
</td>
<td><p>Get information about threads</p></td>
</tr><tr>
<!-- -->
<td>
<p><code><a href="drill_uplift.html">drill_uplift</a></code> </p>
</td>
<td><p>Turn columnar query results into a type-converted tbl</p></td>
</tr><tr>
<!-- -->
<td>
<p><code><a href="drill_use.html">drill_use</a></code> </p>
</td>
<td><p>Change to a particular schema.</p></td>
</tr><tr>
<!-- -->
<td>
<p><code><a href="drill_version.html">drill_version</a></code> </p>
</td>
<td><p>Identify the version of Drill running</p></td>
</tr><tr>
<!-- -->
<td>
<p><code><a href="Drill.html">Drill</a></code> <code><a href="Drill.html">dbConnect</a></code> </p>
</td>
<td><p>Drill</p></td>
</tr><tr>
<!-- -->
<td>
<p><code><a href="sergeant-exports.html">sergeant-exports</a></code> </p>
</td>
<td><p>sergeant exported operators</p></td>
</tr><tr>
<!-- -->
<td>
<p><code><a href="sergeant.html">sergeant</a></code> </p>
</td>
<td><p>Tools to Transform and Query Data with 'Apache' 'Drill'</p></td>
</tr><tr>
<!-- -->
<td>
<p><code><a href="src_drill.html">src_drill</a></code> <code><a href="src_drill.html">tbl</a></code> </p>
</td>
<td><p>Connect to Drill (dplyr)</p></td>
</tr>
</tbody>
</table>
</div>
<tbody>
<tr>
<th colspan="2">
<h2 id="section-all-functions" class="hasAnchor"><a href="#section-all-functions" class="anchor"></a>All functions</h2>
<p class="section-desc"></p>
</th>
</tr>
<tr>
<td>
<p><code><a href="DrilDriver-class.html">dbUnloadDriver(<i>&lt;DrillDriver&gt;</i>)</a></code> </p>
</td>
<td><p>Unload driver</p></td>
</tr><tr>
<td>
<p><code><a href="Drill.html">Drill()</a></code> <code><a href="Drill.html">dbConnect(<i>&lt;DrillDriver&gt;</i>)</a></code> </p>
</td>
<td><p>Drill</p></td>
</tr><tr>
<td>
<p><code><a href="dbDataType-DrillConnection-method.html">dbDataType(<i>&lt;DrillConnection&gt;</i>)</a></code> </p>
</td>
<td><p>Drill dbDataType</p></td>
</tr><tr>
<td>
<p><code><a href="drill_active.html">drill_active()</a></code> </p>
</td>
<td><p>Test whether Drill HTTP Dill direct REST API Interface server is up</p></td>
</tr><tr>
<td>
<p><code><a href="drill_cancel.html">drill_cancel()</a></code> </p>
</td>
<td><p>Cancel the query that has the given queryid</p></td>
</tr><tr>
<td>
<p><code><a href="drill_connection.html">drill_connection()</a></code> </p>
</td>
<td><p>Setup a Drill connection</p></td>
</tr><tr>
<td>
<p><code><a href="drill_custom_functions.html">drill_custom_functions</a></code> </p>
</td>
<td><p>Drill expressions / custom functions <code>dplyr</code> translations</p></td>
</tr><tr>
<td>
<p><code><a href="drill_metrics.html">drill_metrics()</a></code> </p>
</td>
<td><p>Get the current memory metrics</p></td>
</tr><tr>
<td>
<p><code><a href="drill_options.html">drill_options()</a></code> </p>
</td>
<td><p>List the name, default, and data type of the system and session options</p></td>
</tr><tr>
<td>
<p><code><a href="drill_profile.html">drill_profile()</a></code> </p>
</td>
<td><p>Get the profile of the query that has the given queryid</p></td>
</tr><tr>
<td>
<p><code><a href="drill_profiles.html">drill_profiles()</a></code> </p>
</td>
<td><p>Get the profiles of running and completed queries</p></td>
</tr><tr>
<td>
<p><code><a href="drill_query.html">drill_query()</a></code> </p>
</td>
<td><p>Submit a query and return results</p></td>
</tr><tr>
<td>
<p><code><a href="drill_set.html">drill_set()</a></code> </p>
</td>
<td><p>Set Drill SYSTEM or SESSION options</p></td>
</tr><tr>
<td>
<p><code><a href="drill_settings_reset.html">drill_settings_reset()</a></code> </p>
</td>
<td><p>Changes (optionally, all) session settings back to system defaults</p></td>
</tr><tr>
<td>
<p><code><a href="drill_show_files.html">drill_show_files()</a></code> </p>
</td>
<td><p>Show files in a file system schema.</p></td>
</tr><tr>
<td>
<p><code><a href="drill_show_schemas.html">drill_show_schemas()</a></code> </p>
</td>
<td><p>Returns a list of available schemas.</p></td>
</tr><tr>
<td>
<p><code><a href="drill_stats.html">drill_stats()</a></code> </p>
</td>
<td><p>Get Drillbit information, such as ports numbers</p></td>
</tr><tr>
<td>
<p><code><a href="drill_status.html">drill_status()</a></code> </p>
</td>
<td><p>Get the status of Drill</p></td>
</tr><tr>
<td>
<p><code><a href="drill_storage.html">drill_storage()</a></code> <code><a href="drill_storage.html">drill_mod_storage()</a></code> <code><a href="drill_storage.html">drill_rm_storage()</a></code> </p>
</td>
<td><p>Get the list of storage plugin names and configurations</p></td>
</tr><tr>
<td>
<p><code><a href="drill_system_reset.html">drill_system_reset()</a></code> </p>
</td>
<td><p>Changes (optionally, all) system settings back to system defaults</p></td>
</tr><tr>
<td>
<p><code><a href="drill_threads.html">drill_threads()</a></code> </p>
</td>
<td><p>Get information about threads</p></td>
</tr><tr>
<td>
<p><code><a href="drill_uplift.html">drill_uplift()</a></code> </p>
</td>
<td><p>Turn columnar query results into a type-converted tbl</p></td>
</tr><tr>
<td>
<p><code><a href="drill_use.html">drill_use()</a></code> </p>
</td>
<td><p>Change to a particular schema.</p></td>
</tr><tr>
<td>
<p><code><a href="drill_version.html">drill_version()</a></code> </p>
</td>
<td><p>Identify the version of Drill running</p></td>
</tr><tr>
<td>
<p><code><a href="sergeant-exports.html">sergeant-exports</a></code> </p>
</td>
<td><p>sergeant exported operators</p></td>
</tr><tr>
<td>
<p><code><a href="sergeant.html">sergeant</a></code> </p>
</td>
<td><p>Tools to Transform and Query Data with 'Apache' 'Drill'</p></td>
</tr><tr>
<td>
<p><code><a href="src_drill.html">src_drill()</a></code> <code><a href="src_drill.html">tbl(<i>&lt;src_drill&gt;</i>)</a></code> </p>
</td>
<td><p>Connect to Drill (dplyr)</p></td>
</tr>
</tbody>
</table>
</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
@ -286,11 +296,14 @@
</div>
<div class="pkgdown">
<p>Site built with <a href="http://hadley.github.io/pkgdown/">pkgdown</a>.</p>
<p>Site built with <a href="http://pkgdown.r-lib.org/">pkgdown</a>.</p>
</div>
</footer>
</div>
</body>
</html>

48
docs/reference/sergeant-exports.html

@ -18,13 +18,27 @@
<!-- Font Awesome icons -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-T8Gy5hrqNKT+hzMclPo118YTQO6cYprQmhrYwIiQ/3axmI1hQomh7Ud2hPOy8SP1" crossorigin="anonymous">
<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.7.1/clipboard.min.js" integrity="sha384-cV+rhyOuRHc9Ub/91rihWcGmMmCXDeksTtCihMupQHSsi8GIIRDG0ThDc3HGQFJ3" crossorigin="anonymous"></script>
<!-- sticky kit -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/sticky-kit/1.1.3/sticky-kit.min.js" integrity="sha256-c4Rlo1ZozqTPE2RLuvbusY3+SU1pQaJC0TjuhygMipw=" crossorigin="anonymous"></script>
<!-- pkgdown -->
<link href="../pkgdown.css" rel="stylesheet">
<script src="../jquery.sticky-kit.min.js"></script>
<script src="../pkgdown.js"></script>
<meta property="og:title" content="sergeant exported operators — sergeant-exports" />
<meta property="og:description" content="The following functions are imported and then re-exported
from the sergeant package to enable use of the magrittr
pipe operator with no additional library calls" />
<meta name="twitter:card" content="summary" />
<!-- mathjax -->
<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
@ -47,26 +61,37 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="../index.html">sergeant</a>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">sergeant</a>
<span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="Released package">0.7.0</span>
</span>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="../reference/index.html">Reference</a>
</li>
<li>
<a href="../news/index.html">News</a>
<a href="../news/index.html">Changelog</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="http://github.com/hrbrmstr/sergeant">
<a href="https://github.com/hrbrmstr/sergeant">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->
@ -74,17 +99,21 @@
</header>
<div class="row">
<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
<h1>sergeant exported operators</h1>
<small class="dont-index">Source: <a href='https://github.com/hrbrmstr/sergeant/blob/master/R/sergeant-package.r'><code>R/sergeant-package.r</code></a></small>
<div class="hidden name"><code>sergeant-exports.Rd</code></div>
</div>
<div class="ref-description">
<p>The following functions are imported and then re-exported
from the sergeant package to enable use of the magrittr
pipe operator with no additional library calls</p>
</div>
@ -103,11 +132,14 @@ pipe operator with no additional library calls</p>
</div>
<div class="pkgdown">
<p>Site built with <a href="http://hadley.github.io/pkgdown/">pkgdown</a>.</p>
<p>Site built with <a href="http://pkgdown.r-lib.org/">pkgdown</a>.</p>
</div>
</footer>
</div>
</body>
</html>

53
docs/reference/sergeant.html

@ -18,13 +18,28 @@
<!-- Font Awesome icons -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-T8Gy5hrqNKT+hzMclPo118YTQO6cYprQmhrYwIiQ/3axmI1hQomh7Ud2hPOy8SP1" crossorigin="anonymous">
<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.7.1/clipboard.min.js" integrity="sha384-cV+rhyOuRHc9Ub/91rihWcGmMmCXDeksTtCihMupQHSsi8GIIRDG0ThDc3HGQFJ3" crossorigin="anonymous"></script>
<!-- sticky kit -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/sticky-kit/1.1.3/sticky-kit.min.js" integrity="sha256-c4Rlo1ZozqTPE2RLuvbusY3+SU1pQaJC0TjuhygMipw=" crossorigin="anonymous"></script>
<!-- pkgdown -->
<link href="../pkgdown.css" rel="stylesheet">
<script src="../jquery.sticky-kit.min.js"></script>
<script src="../pkgdown.js"></script>
<meta property="og:title" content="Tools to Transform and Query Data with 'Apache' 'Drill' — sergeant" />
<meta property="og:description" content="Drill is an innovative low-latency distributed query engine designed to enable data
exploration and analytics on both relational and non-relational datastores, scaling to
petabytes of data. Users can query the data using standard SQL and BI tools without
having to create and manage schemas. Some of the key features are:" />
<meta name="twitter:card" content="summary" />
<!-- mathjax -->
<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
@ -47,26 +62,37 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="../index.html">sergeant</a>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">sergeant</a>
<span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="Released package">0.7.0</span>
</span>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="../reference/index.html">Reference</a>
</li>
<li>
<a href="../news/index.html">News</a>
<a href="../news/index.html">Changelog</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="http://github.com/hrbrmstr/sergeant">
<a href="https://github.com/hrbrmstr/sergeant">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->
@ -74,18 +100,22 @@
</header>
<div class="row">
<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
<h1>Tools to Transform and Query Data with 'Apache' 'Drill'</h1>
<small class="dont-index">Source: <a href='https://github.com/hrbrmstr/sergeant/blob/master/R/sergeant-package.r'><code>R/sergeant-package.r</code></a></small>
<div class="hidden name"><code>sergeant.Rd</code></div>
</div>
<div class="ref-description">
<p>Drill is an innovative low-latency distributed query engine designed to enable data
exploration and analytics on both relational and non-relational datastores, scaling to
petabytes of data. Users can query the data using standard SQL and BI tools without
having to create and manage schemas. Some of the key features are:</p>
</div>
<h2 class="hasAnchor" id="details"><a class="anchor" href="#details"></a>Details</h2>
@ -105,12 +135,12 @@ distributed cluster environment. When a Drillbit runs on each data node in a clu
Drill can maximize data locality during query execution without moving data over the
network or between nodes. Drill uses ZooKeeper to maintain cluster membership and health
check information.</p>
<p>Methods are provided to work with Drill via the native JDBC &amp; REST APIs along with R
<p>Methods are provided to work with Drill via the REST APIs along with R
<code>DBI</code> and <code>dplyr</code> interfaces.</p>
<h2 class="hasAnchor" id="references"><a class="anchor" href="#references"></a>References</h2>
<p><a href = 'https://drill.apache.org/docs/'>Drill documentation</a></p>
<p><a href='https://drill.apache.org/docs/'>Drill documentation</a></p>
</div>
@ -136,11 +166,14 @@ Bob Rudis (bob@rud.is)
</div>
<div class="pkgdown">
<p>Site built with <a href="http://hadley.github.io/pkgdown/">pkgdown</a>.</p>
<p>Site built with <a href="http://pkgdown.r-lib.org/">pkgdown</a>.</p>
</div>
</footer>
</div>
</body>
</html>

140
docs/reference/src_drill.html

@ -18,13 +18,28 @@
<!-- Font Awesome icons -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-T8Gy5hrqNKT+hzMclPo118YTQO6cYprQmhrYwIiQ/3axmI1hQomh7Ud2hPOy8SP1" crossorigin="anonymous">
<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.7.1/clipboard.min.js" integrity="sha384-cV+rhyOuRHc9Ub/91rihWcGmMmCXDeksTtCihMupQHSsi8GIIRDG0ThDc3HGQFJ3" crossorigin="anonymous"></script>
<!-- sticky kit -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/sticky-kit/1.1.3/sticky-kit.min.js" integrity="sha256-c4Rlo1ZozqTPE2RLuvbusY3+SU1pQaJC0TjuhygMipw=" crossorigin="anonymous"></script>
<!-- pkgdown -->
<link href="../pkgdown.css" rel="stylesheet">
<script src="../jquery.sticky-kit.min.js"></script>
<script src="../pkgdown.js"></script>
<meta property="og:title" content="Connect to Drill (dplyr) — src_drill" />
<meta property="og:description" content="Use src_drill() to connect to a Drill cluster and tbl() to connect to a
fully-qualified &quot;table reference&quot;. The vast majority of Drill SQL functions have
also been made available to the dplyr interface. If you have custom Drill
SQL functions that need to be implemented please file an issue on GitHub." />
<meta name="twitter:card" content="summary" />
<!-- mathjax -->
<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
@ -47,26 +62,37 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="../index.html">sergeant</a>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">sergeant</a>
<span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="Released package">0.7.0</span>
</span>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="../reference/index.html">Reference</a>
</li>
<li>
<a href="../news/index.html">News</a>
<a href="../news/index.html">Changelog</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="http://github.com/hrbrmstr/sergeant">
<a href="https://github.com/hrbrmstr/sergeant">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->
@ -74,26 +100,31 @@
</header>
<div class="row">
<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
<h1>Connect to Drill (dplyr)</h1>
<small class="dont-index">Source: <a href='https://github.com/hrbrmstr/sergeant/blob/master/R/dplyr.r'><code>R/dplyr.r</code></a></small>
<div class="hidden name"><code>src_drill.Rd</code></div>
</div>
<div class="ref-description">
<p>Use <code>src_drill()</code> to connect to a Drill cluster and `tbl()` to connect to a
<p>Use <code>src_drill()</code> to connect to a Drill cluster and <code><a href='sergeant-exports.html'>tbl()</a></code> to connect to a
fully-qualified "table reference". The vast majority of Drill SQL functions have
also been made available to the <code>dplyr</code> interface. If you have custom Drill
SQL functions that need to be implemented please file an issue on GitHub.</p>
</div>
<pre class="usage"><span class='fu'>src_drill</span>(<span class='kw'>host</span> <span class='kw'>=</span> <span class='fu'>Sys.getenv</span>(<span class='st'>"DRILL_HOST"</span>, <span class='st'>"localhost"</span>),
<span class='kw'>port</span> <span class='kw'>=</span> <span class='fu'>as.integer</span>(<span class='fu'>Sys.getenv</span>(<span class='st'>"DRILL_PORT"</span>, <span class='fl'>8047L</span>)), <span class='kw'>ssl</span> <span class='kw'>=</span> <span class='fl'>FALSE</span>)
<span class='kw'>port</span> <span class='kw'>=</span> <span class='fu'>as.integer</span>(<span class='fu'>Sys.getenv</span>(<span class='st'>"DRILL_PORT"</span>, <span class='fl'>8047L</span>)), <span class='kw'>ssl</span> <span class='kw'>=</span> <span class='fl'>FALSE</span>,
<span class='kw'>username</span> <span class='kw'>=</span> <span class='kw'>NULL</span>, <span class='kw'>password</span> <span class='kw'>=</span> <span class='kw'>NULL</span>)
<span class='co'># S3 method for src_drill</span>
<span class='fu'>tbl</span>(<span class='no'>src</span>, <span class='no'>from</span>, <span class='no'>...</span>)</pre>
<span class='fu'><a href='sergeant-exports.html'>tbl</a></span>(<span class='no'>src</span>, <span class='no'>from</span>, <span class='no'>...</span>)</pre>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a> Arguments</h2>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a>Arguments</h2>
<table class="ref-arguments">
<colgroup><col class="name" /><col class="desc" /></colgroup>
<tr>
@ -109,6 +140,10 @@ SQL functions that need to be implemented please file an issue on GitHub.</p>
<td><p>use ssl?</p></td>
</tr>
<tr>
<th>username, password</th>
<td><p>if not <code>NULL</code> the credentials for the Drill service.</p></td>
</tr>
<tr>
<th>src</th>
<td><p>A Drill "src" created with <code>src_drill()</code></p></td>
</tr>
@ -124,30 +159,64 @@ SQL functions that need to be implemented please file an issue on GitHub.</p>
<h2 class="hasAnchor" id="note"><a class="anchor" href="#note"></a>Note</h2>
<p>This is a DBI wrapper around the Drill REST API. TODO username/password support</p>
<p>This is a DBI wrapper around the Drill REST API.</p>
<h2 class="hasAnchor" id="see-also"><a class="anchor" href="#see-also"></a>See also</h2>
<div class='dont-index'><p>Other Drill REST `dplyr` API: <code><a href='drill_custom_functions.html'>drill_custom_functions</a></code>,
<code><a href='src_tbls.html'>src_tbls.src_drill</a></code></p>
<p>Other Drill REST `dplyr` API: <code><a href='drill_custom_functions.html'>drill_custom_functions</a></code>,
<code><a href='src_tbls.html'>src_tbls.src_drill</a></code></p></div>
<h2 class="hasAnchor" id="examples"><a class="anchor" href="#examples"></a>Examples</h2>
<pre class="examples"><div class='input'><span class='fu'>not_run</span>({
<span class='no'>db</span> <span class='kw'>&lt;-</span> <span class='fu'>src_drill</span>(<span class='st'>"localhost"</span>, <span class='st'>"8047"</span>)
<span class='fu'>print</span>(<span class='no'>db</span>)
<span class='no'>emp</span> <span class='kw'>&lt;-</span> <span class='fu'>tbl</span>(<span class='no'>db</span>, <span class='st'>"cp.`employee.json`"</span>)
<span class='fu'>count</span>(<span class='no'>emp</span>, <span class='no'>gender</span>, <span class='no'>marital_status</span>)
<span class='co'># Drill-specific SQL functions are also available</span>
<span class='fu'>select</span>(<span class='no'>emp</span>, <span class='no'>full_name</span>) <span class='kw'>%&gt;%</span>
<span class='fu'>mutate</span>( <span class='kw'>loc</span> <span class='kw'>=</span> <span class='fu'>strpos</span>(<span class='no'>full_name</span>, <span class='st'>"a"</span>),
<span class='kw'>first_three</span> <span class='kw'>=</span> <span class='fu'>substr</span>(<span class='no'>full_name</span>, <span class='fl'>1L</span>, <span class='fl'>3L</span>),
<span class='kw'>len</span> <span class='kw'>=</span> <span class='fu'>length</span>(<span class='no'>full_name</span>),
<span class='kw'>rx</span> <span class='kw'>=</span> <span class='fu'>regexp_replace</span>(<span class='no'>full_name</span>, <span class='st'>"[aeiouAEIOU]"</span>, <span class='st'>"*"</span>),
<span class='kw'>rnd</span> <span class='kw'>=</span> <span class='fu'>rand</span>(),
<span class='kw'>pos</span> <span class='kw'>=</span> <span class='fu'>position</span>(<span class='st'>"en"</span>, <span class='no'>full_name</span>),
<span class='kw'>rpd</span> <span class='kw'>=</span> <span class='fu'>rpad</span>(<span class='no'>full_name</span>, <span class='fl'>20L</span>),
<span class='kw'>rpdw</span> <span class='kw'>=</span> <span class='fu'>rpad_with</span>(<span class='no'>full_name</span>, <span class='fl'>20L</span>, <span class='st'>"*"</span>))
})</div></pre>
<pre class="examples"><div class='input'><span class='fu'>try</span>({
<span class='no'>db</span> <span class='kw'>&lt;-</span> <span class='fu'>src_drill</span>(<span class='st'>"localhost"</span>, <span class='fl'>8047L</span>)
<span class='fu'>print</span>(<span class='no'>db</span>)
<span class='co'>## src: DrillConnection</span>
<span class='co'>## tbls: INFORMATION_SCHEMA, cp.default, dfs.default, dfs.root, dfs.tmp, sys</span>
<span class='no'>emp</span> <span class='kw'>&lt;-</span> <span class='fu'><a href='sergeant-exports.html'>tbl</a></span>(<span class='no'>db</span>, <span class='st'>"cp.`employee.json`"</span>)
<span class='fu'>count</span>(<span class='no'>emp</span>, <span class='no'>gender</span>, <span class='no'>marital_status</span>)
<span class='co'>## # Source: lazy query [?? x 3]</span>
<span class='co'>## # Database: DrillConnection</span>
<span class='co'>## # Groups: gender</span>
<span class='co'>## marital_status gender n</span>
<span class='co'>## &lt;chr&gt; &lt;chr&gt; &lt;int&gt;</span>
<span class='co'>## 1 S F 297</span>
<span class='co'>## 2 M M 278</span>
<span class='co'>## 3 S M 276</span>
<span class='co'># Drill-specific SQL functions are also available</span>
<span class='fu'>select</span>(<span class='no'>emp</span>, <span class='no'>full_name</span>) <span class='kw'>%&gt;%</span>
<span class='fu'>mutate</span>( <span class='kw'>loc</span> <span class='kw'>=</span> <span class='fu'>strpos</span>(<span class='no'>full_name</span>, <span class='st'>"a"</span>),
<span class='kw'>first_three</span> <span class='kw'>=</span> <span class='fu'>substr</span>(<span class='no'>full_name</span>, <span class='fl'>1L</span>, <span class='fl'>3L</span>),
<span class='kw'>len</span> <span class='kw'>=</span> <span class='fu'>length</span>(<span class='no'>full_name</span>),
<span class='kw'>rx</span> <span class='kw'>=</span> <span class='fu'>regexp_replace</span>(<span class='no'>full_name</span>, <span class='st'>"[aeiouAEIOU]"</span>, <span class='st'>"*"</span>),
<span class='kw'>rnd</span> <span class='kw'>=</span> <span class='fu'>rand</span>(),
<span class='kw'>pos</span> <span class='kw'>=</span> <span class='fu'>position</span>(<span class='st'>"en"</span>, <span class='no'>full_name</span>),
<span class='kw'>rpd</span> <span class='kw'>=</span> <span class='fu'>rpad</span>(<span class='no'>full_name</span>, <span class='fl'>20L</span>),
<span class='kw'>rpdw</span> <span class='kw'>=</span> <span class='fu'>rpad_with</span>(<span class='no'>full_name</span>, <span class='fl'>20L</span>, <span class='st'>"*"</span>))
<span class='co'>## # Source: lazy query [?? x 9]</span>
<span class='co'>## # Database: DrillConnection</span>
<span class='co'>## loc full_name len rpdw pos rx</span>
<span class='co'>## &lt;int&gt; &lt;chr&gt; &lt;int&gt; &lt;chr&gt; &lt;int&gt; &lt;chr&gt;</span>
<span class='co'>## 1 0 Sheri Nowmer 12 Sheri Nowmer******** 0 Sh*r* N*wm*r</span>
<span class='co'>## 2 0 Derrick Whelply 15 Derrick Whelply***** 0 D*rr*ck Wh*lply</span>
<span class='co'>## 3 5 Michael Spence 14 Michael Spence****** 11 M*ch**l Sp*nc*</span>
<span class='co'>## 4 2 Maya Gutierrez 14 Maya Gutierrez****** 0 M*y* G*t**rr*z</span>
<span class='co'>## 5 7 Roberta Damstra 15 Roberta Damstra***** 0 R*b*rt* D*mstr*</span>
<span class='co'>## 6 7 Rebecca Kanagaki 16 Rebecca Kanagaki**** 0 R*b*cc* K*n*g*k*</span>
<span class='co'>## 7 0 Kim Brunner 11 Kim Brunner********* 0 K*m Br*nn*r</span>
<span class='co'>## 8 6 Brenda Blumberg 15 Brenda Blumberg***** 3 Br*nd* Bl*mb*rg</span>
<span class='co'>## 9 2 Darren Stanz 12 Darren Stanz******** 5 D*rr*n St*nz</span>
<span class='co'>## 10 4 Jonathan Murraiin 17 Jonathan Murraiin*** 0 J*n*th*n M*rr***n</span>
<span class='co'>## # ... with more rows, and 3 more variables: rpd &lt;chr&gt;, rnd &lt;dbl&gt;, first_three &lt;chr&gt;</span>
}, <span class='kw'>silent</span><span class='kw'>=</span><span class='fl'>TRUE</span>)</div><div class='output co'>#&gt; src: DrillConnection
#&gt; tbls: cp.default, dfs.d, dfs.default, dfs.root, dfs.tmp, INFORMATION_SCHEMA,
#&gt; sys</div></pre>
</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<h2>Contents</h2>
@ -155,6 +224,8 @@ SQL functions that need to be implemented please file an issue on GitHub.</p>
<li><a href="#arguments">Arguments</a></li>
<li><a href="#note">Note</a></li>
<li><a href="#see-also">See also</a></li>
<li><a href="#examples">Examples</a></li>
</ul>
@ -168,11 +239,14 @@ SQL functions that need to be implemented please file an issue on GitHub.</p>
</div>
<div class="pkgdown">
<p>Site built with <a href="http://hadley.github.io/pkgdown/">pkgdown</a>.</p>
<p>Site built with <a href="http://pkgdown.r-lib.org/">pkgdown</a>.</p>
</div>
</footer>
</div>
</body>
</html>

57
docs/reference/src_tbls.html

@ -18,13 +18,25 @@
<!-- Font Awesome icons -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-T8Gy5hrqNKT+hzMclPo118YTQO6cYprQmhrYwIiQ/3axmI1hQomh7Ud2hPOy8SP1" crossorigin="anonymous">
<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.7.1/clipboard.min.js" integrity="sha384-cV+rhyOuRHc9Ub/91rihWcGmMmCXDeksTtCihMupQHSsi8GIIRDG0ThDc3HGQFJ3" crossorigin="anonymous"></script>
<!-- sticky kit -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/sticky-kit/1.1.3/sticky-kit.min.js" integrity="sha256-c4Rlo1ZozqTPE2RLuvbusY3+SU1pQaJC0TjuhygMipw=" crossorigin="anonymous"></script>
<!-- pkgdown -->
<link href="../pkgdown.css" rel="stylesheet">
<script src="../jquery.sticky-kit.min.js"></script>
<script src="../pkgdown.js"></script>
<meta property="og:title" content="src tbls — src_tbls.src_drill" />
<meta property="og:description" content="&quot;SHOW DATABASES&quot;" />
<meta name="twitter:card" content="summary" />
<!-- mathjax -->
<script src='https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
@ -47,26 +59,37 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="../index.html">sergeant</a>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">sergeant</a>
<span class="label label-default" data-toggle="tooltip" data-placement="bottom" title="Released package">0.7.0</span>
</span>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="../reference/index.html">Reference</a>
</li>
<li>
<a href="../news/index.html">News</a>
<a href="../news/index.html">Changelog</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="http://github.com/hrbrmstr/sergeant">
<a href="https://github.com/hrbrmstr/sergeant">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->
@ -74,15 +97,19 @@
</header>
<div class="row">
<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
<h1>src tbls</h1>
<small class="dont-index">Source: <a href='https://github.com/hrbrmstr/sergeant/blob/master/R/dplyr.r'><code>R/dplyr.r</code></a></small>
<div class="hidden name"><code>src_tbls.Rd</code></div>
</div>
<div class="ref-description">
<p>"SHOW DATABASES"</p>
</div>
<pre class="usage"><span class='co'># S3 method for src_drill</span>
<span class='fu'>src_tbls</span>(<span class='no'>x</span>)
@ -108,7 +135,7 @@
<span class='co'># S3 method for DrillConnection</span>
<span class='fu'>sql_translate_env</span>(<span class='no'>con</span>)</pre>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a> Arguments</h2>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a>Arguments</h2>
<table class="ref-arguments">
<colgroup><col class="name" /><col class="desc" /></colgroup>
<tr>
@ -117,13 +144,20 @@
</tr>
</table>
<h2 class="hasAnchor" id="see-also"><a class="anchor" href="#see-also"></a>See also</h2>
<div class='dont-index'><p>Other Drill REST `dplyr` API: <code><a href='drill_custom_functions.html'>drill_custom_functions</a></code>,
<code><a href='src_drill.html'>src_drill</a></code></p></div>
</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<h2>Contents</h2>
<ul class="nav nav-pills nav-stacked">
<li><a href="#arguments">Arguments</a></li>
</ul>
<li><a href="#see-also">See also</a></li>
</ul>
</div>
</div>
@ -134,11 +168,14 @@
</div>
<div class="pkgdown">
<p>Site built with <a href="http://hadley.github.io/pkgdown/">pkgdown</a>.</p>
<p>Site built with <a href="http://pkgdown.r-lib.org/">pkgdown</a>.</p>
</div>
</footer>
</div>
</body>
</html>

Loading…
Cancel
Save