50% off | Unlimited Data & AI Learning

Last chance! 50% off unlimited learning

Sale ends in


RDruid (version 0.2.3)

druid.query.timeBoundary: Query data source time boundaries

Description

Query a datasource to get the earliest and latest timestamp available

Usage

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

Run this code
## 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)

Run the code above in your browser using DataLab