druid.query.timeBoundary: Query data source time boundaries

Description Usage Arguments Value See Also Examples

Description

Query a datasource to get the earliest and latest timestamp available

Usage

1
2
druid.query.timeBoundary(url = druid.url(), dataSource, intervals = NULL,
  bound = NULL, verbose = F, ...)

Arguments

url

URL to connect to druid, defaults to druid.url()

dataSource

name of the data source to query

intervals

time period to retrieve data for as an interval or list of interval objects

verbose

prints out the JSON query sent to druid

Value

a vector of POSIXct date-time objects

See Also

Interval-class

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 

# query min and max time
t <- druid.query.timeBoundary(
  druid.url(host = "xx.xx.xx.xx"),
  dataSource = "mydata"
)
t["minTime"]
t["maxTime"]


## End(Not run)

druid-io/RDruid documentation built on May 15, 2019, 2:54 p.m.