public class DataSiftPreview extends DataSiftApiClient
| Modifier and Type | Field and Description |
|---|---|
String |
CREATE |
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,
String[] params) |
FutureData<HistoricsPreview> |
create(org.joda.time.DateTime now,
Stream stream,
String[] params) |
FutureData<HistoricsPreview> |
create(long start,
long end,
Stream stream,
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,
String hash,
String[] parameters) |
FutureData<HistoricsPreviewData> |
get(HistoricsPreview preview)
Get the data that's available for the given preview
|
FutureData<HistoricsPreviewData> |
get(String id) |
failNotify, newParams, newRequestCallback, performRequest, unwrapFuturepublic final String CREATE
public final String GET
public DataSiftPreview(DataSiftConfig config)
public FutureData<HistoricsPreview> create(org.joda.time.DateTime now, Stream stream, String[] params)
public FutureData<HistoricsPreview> create(org.joda.time.DateTime start, org.joda.time.DateTime end, Stream hash, String[] params)
public FutureData<HistoricsPreview> create(long start, long end, String hash, String[] parameters)
public FutureData<HistoricsPreview> create(long start, long end, Stream stream, 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,
analysis,argument see http://dev.datasift.com/docs/api/1/previewcreate for documentation of
available parameterspublic FutureData<HistoricsPreviewData> get(String id)
public FutureData<HistoricsPreviewData> get(HistoricsPreview preview)
preview - the historics preview to fetchCopyright © 2015. All Rights Reserved.