public class DataSiftPreview extends DataSiftApiClient
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
CREATE |
java.lang.String |
GET |
config| Constructor and Description |
|---|
DataSiftPreview(DataSiftConfig config) |
| Modifier and Type | Method and Description |
|---|---|
FutureData<HistoricsPreview> |
create(org.joda.time.DateTime start,
org.joda.time.DateTime end,
Stream hash,
java.lang.String[] params) |
FutureData<HistoricsPreview> |
create(org.joda.time.DateTime now,
Stream stream,
java.lang.String[] params) |
FutureData<HistoricsPreview> |
create(long start,
long end,
Stream stream,
java.lang.String[] parameters)
Create a historic preview for the given stream within the given time frame, using the set of parameters provided
|
FutureData<HistoricsPreview> |
create(long start,
long end,
java.lang.String hash,
java.lang.String[] parameters) |
FutureData<HistoricsPreviewData> |
get(HistoricsPreview preview)
Get the data that's available for the given preview
|
FutureData<HistoricsPreviewData> |
get(java.lang.String id) |
failNotify, newParams, newRequestCallback, performRequest, unwrapFuturepublic final java.lang.String CREATE
public final java.lang.String GET
public DataSiftPreview(DataSiftConfig config)
public FutureData<HistoricsPreview> create(org.joda.time.DateTime now, Stream stream, java.lang.String[] params)
public FutureData<HistoricsPreview> create(org.joda.time.DateTime start, org.joda.time.DateTime end, Stream hash, java.lang.String[] params)
public FutureData<HistoricsPreview> create(long start, long end, java.lang.String hash, java.lang.String[] parameters)
public FutureData<HistoricsPreview> create(long start, long end, Stream stream, java.lang.String[] parameters)
start - a timestamp of when to start the preview fromend - optionally when the preview ends - If not specified, i.e. set to a value less than 1,
defaults to the earliest out of start + 24 hours or now - 1 hour.stream - the stream/filter to create the preview forparameters - A list of at least one but no more than 20 Historics Preview parameters e.g. target,
pylon, argument see http://dev.datasift.com/docs/api/rest-api/endpoints/previewcreate
for documentation of available parameterspublic FutureData<HistoricsPreviewData> get(java.lang.String id)
public FutureData<HistoricsPreviewData> get(HistoricsPreview preview)
preview - the historics preview to fetchCopyright © 2017. All Rights Reserved.