@InterfaceStability.Committed @InterfaceAudience.Public public abstract class AnalyticsQuery extends Object implements Serializable
Constructor and Description |
---|
AnalyticsQuery() |
Modifier and Type | Method and Description |
---|---|
static ParameterizedAnalyticsQuery |
parameterized(String statement,
JsonArray positionalParams)
Creates an
AnalyticsQuery with positional parameters as part of the query. |
static ParameterizedAnalyticsQuery |
parameterized(String statement,
JsonArray positionalParams,
AnalyticsParams params)
Creates an
AnalyticsQuery with positional parameters as part of the query. |
static ParameterizedAnalyticsQuery |
parameterized(String statement,
JsonObject namedParams)
Creates an
AnalyticsQuery with named parameters as part of the query. |
static ParameterizedAnalyticsQuery |
parameterized(String statement,
JsonObject namedParams,
AnalyticsParams params)
Creates an
AnalyticsQuery with named parameters as part of the query. |
abstract AnalyticsParams |
params()
Returns the params from this query.
|
abstract JsonObject |
query()
Returns the full query.
|
static SimpleAnalyticsQuery |
simple(String statement)
Creates an
AnalyticsQuery from just an analytics statement. |
static SimpleAnalyticsQuery |
simple(String statement,
AnalyticsParams params)
Creates an
AnalyticsQuery from an analytics statement and custom parameters. |
abstract String |
statement()
Returns the statement from this query.
|
public abstract String statement()
public abstract AnalyticsParams params()
public abstract JsonObject query()
public static SimpleAnalyticsQuery simple(String statement)
AnalyticsQuery
from just an analytics statement.statement
- the statement to send.AnalyticsQuery
.public static SimpleAnalyticsQuery simple(String statement, AnalyticsParams params)
AnalyticsQuery
from an analytics statement and custom parameters.statement
- the statement to send.params
- the parameters to provide to the server in addition.AnalyticsQuery
.public static ParameterizedAnalyticsQuery parameterized(String statement, JsonArray positionalParams)
AnalyticsQuery
with positional parameters as part of the query.statement
- the statement to send.positionalParams
- the positional parameters which will be put in for the placeholders.AnalyticsQuery
.public static ParameterizedAnalyticsQuery parameterized(String statement, JsonArray positionalParams, AnalyticsParams params)
AnalyticsQuery
with positional parameters as part of the query.statement
- the statement to send.positionalParams
- the positional parameters which will be put in for the placeholders.params
- the parameters to provide to the server in addition.AnalyticsQuery
.public static ParameterizedAnalyticsQuery parameterized(String statement, JsonObject namedParams)
AnalyticsQuery
with named parameters as part of the query.statement
- the statement to send.namedParams
- the named parameters which will be put in for the placeholders.AnalyticsQuery
.public static ParameterizedAnalyticsQuery parameterized(String statement, JsonObject namedParams, AnalyticsParams params)
AnalyticsQuery
with named parameters as part of the query.statement
- the statement to send.namedParams
- the named parameters which will be put in for the placeholders.params
- the parameters to provide to the server in addition.AnalyticsQuery
.Copyright © 2015 Couchbase, Inc.