public class DataSiftCore extends DataSiftApiClient
| Modifier and Type | Field and Description |
|---|---|
String |
BALANCE |
String |
COMPILE |
String |
DPU |
String |
USAGE |
String |
VALIDATE |
config| Constructor and Description |
|---|
DataSiftCore(DataSiftConfig config) |
| Modifier and Type | Method and Description |
|---|---|
FutureData<Balance> |
balance() |
FutureData<Stream> |
compile(String csdl)
Compile a CSDL string to a stream hash to which you can later subscribe and receive interactions from
|
FutureData<Dpu> |
dpu(FutureData<Stream> streamFuture) |
FutureData<Dpu> |
dpu(Stream stream) |
FutureData<Usage> |
usage() |
FutureData<Usage> |
usage(Usage.Period timePeriod) |
FutureData<Validation> |
validate(String csdl)
Validate the given CSDL string against the DataSift API
|
applyConfig, newParams, newRequestCallback, unwrapFuturepublic final String VALIDATE
public final String COMPILE
public final String BALANCE
public final String DPU
public final String USAGE
public DataSiftCore(DataSiftConfig config)
public FutureData<Validation> validate(String csdl)
csdl - the CSDL to validateDataSiftResult.isSuccessful() to check if
validation was successful or notpublic FutureData<Stream> compile(String csdl)
csdl - the CSDL to compile.Stream#hash()
to get the hash for the compiled CSDLpublic FutureData<Balance> balance()
public FutureData<Dpu> dpu(@NotNull Stream stream)
stream - the stream for which the DPU information is to be fetchedpublic FutureData<Dpu> dpu(@NotNull FutureData<Stream> streamFuture)
public FutureData<Usage> usage()
public FutureData<Usage> usage(Usage.Period timePeriod)
timePeriod - A time period during which the usage information should be broken downCopyright © 2013. All Rights Reserved.