public class Query extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Query.TypeEnum
The type of query.
|
Modifier and Type | Field and Description |
---|---|
static String |
SERIALIZED_NAME_DIALECT |
static String |
SERIALIZED_NAME_EXTERN |
static String |
SERIALIZED_NAME_NOW |
static String |
SERIALIZED_NAME_PARAMS |
static String |
SERIALIZED_NAME_QUERY |
static String |
SERIALIZED_NAME_TYPE |
Constructor and Description |
---|
Query() |
Modifier and Type | Method and Description |
---|---|
Query |
dialect(Dialect dialect) |
boolean |
equals(Object o) |
Query |
extern(File extern) |
Dialect |
getDialect()
Get dialect
|
File |
getExtern()
Get extern
|
OffsetDateTime |
getNow()
Specifies the time that should be reported as \"now\" in the query.
|
Map<String,Object> |
getParams()
Enumeration of key/value pairs that respresent parameters to be injected into query (can only specify either this field or extern and not both)
|
String |
getQuery()
Query script to execute.
|
Query.TypeEnum |
getType()
The type of query.
|
int |
hashCode() |
Query |
now(OffsetDateTime now) |
Query |
params(Map<String,Object> params) |
Query |
putParamsItem(String key,
Object paramsItem) |
Query |
query(String query) |
void |
setDialect(Dialect dialect) |
void |
setExtern(File extern) |
void |
setNow(OffsetDateTime now) |
void |
setParams(Map<String,Object> params) |
void |
setQuery(String query) |
String |
toString() |
public static final String SERIALIZED_NAME_EXTERN
public static final String SERIALIZED_NAME_QUERY
public static final String SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_PARAMS
public static final String SERIALIZED_NAME_DIALECT
public static final String SERIALIZED_NAME_NOW
public File getExtern()
public void setExtern(File extern)
public String getQuery()
public void setQuery(String query)
public Query.TypeEnum getType()
public Map<String,Object> getParams()
public Dialect getDialect()
public void setDialect(Dialect dialect)
public Query now(OffsetDateTime now)
public OffsetDateTime getNow()
public void setNow(OffsetDateTime now)
Copyright © 2018–2021 InfluxData, Inc.. All rights reserved.