storage.getFileUrl: Get data object from storage

Description Usage Arguments Value Examples

Description

read data from Bigstream storage via Bigstream storage API This command support on Bigstream version 1.2 or more only

Usage

1
2
storage.getFileUrl(storage_name, id = NULL, index = NULL, key = NULL,
  type = "dat")

Arguments

storage_name

storage name

id

Object id

index

get data by index

key

get data by defined key in storage

type

file format return default is csv

Value

url for download object

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
host <- "http://sample.bigstream.io"
storage_name <- "sample.sensordata"
token <- "token"
bs.connect(host, token)

#return lastest data as csv
url <- storage.getFileUrl(storage_name)
read.csv(url, header=FALSE, sep="|")

## End(Not run)

igridproject/Rbigstream documentation built on July 2, 2018, 1:14 a.m.