Class QueryRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.sql.QueryRequest
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class QueryRequest extends RequestBase implements JsonpSerializable
Executes a SQL request
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QueryRequest.Builder
Builder forQueryRequest
.Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<QueryRequest>
_DESERIALIZER
Json deserializer forQueryRequest
static Endpoint<QueryRequest,QueryResponse,ErrorResponse>
_ENDPOINT
Endpoint "sql.query
". -
Method Summary
Modifier and Type Method Description java.lang.Boolean
columnar()
API name:columnar
java.lang.String
cursor()
API name:cursor
java.lang.Integer
fetchSize()
The maximum number of rows (or entries) to return in one responsejava.lang.Boolean
fieldMultiValueLeniency()
Throw an exception when encountering multiple values for a field (default) or be lenient and return the first value from the list (without any guarantees of what that will be - typically the first in natural ascending order).Query
filter()
Optional Elasticsearch query DSL for additional filtering.java.lang.String
format()
a short version of the Accept header, e.g.static QueryRequest
of(java.util.function.Function<QueryRequest.Builder,ObjectBuilder<QueryRequest>> fn)
Time
pageTimeout()
The timeout before a pagination request fails.java.lang.String
query()
SQL query to executeTime
requestTimeout()
The timeout before the request fails.void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
Serialize this object to JSON.protected void
serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupQueryRequestDeserializer(ObjectDeserializer<QueryRequest.Builder> op)
java.lang.String
timeZone()
Time-zone in ISO 8601 used for executing the query on the server.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forQueryRequest
-
_ENDPOINT
Endpoint "sql.query
".
-
-
Method Details
-
of
public static QueryRequest of(java.util.function.Function<QueryRequest.Builder,ObjectBuilder<QueryRequest>> fn) -
columnar
@Nullable public final java.lang.Boolean columnar()API name:columnar
-
cursor
@Nullable public final java.lang.String cursor()API name:cursor
-
fetchSize
@Nullable public final java.lang.Integer fetchSize()The maximum number of rows (or entries) to return in one responseAPI name:
fetch_size
-
fieldMultiValueLeniency
@Nullable public final java.lang.Boolean fieldMultiValueLeniency()Throw an exception when encountering multiple values for a field (default) or be lenient and return the first value from the list (without any guarantees of what that will be - typically the first in natural ascending order).API name:
field_multi_value_leniency
-
filter
Optional Elasticsearch query DSL for additional filtering.API name:
filter
-
format
@Nullable public final java.lang.String format()a short version of the Accept header, e.g. json, yamlAPI name:
format
-
pageTimeout
The timeout before a pagination request fails.API name:
page_timeout
-
query
@Nullable public final java.lang.String query()SQL query to executeAPI name:
query
-
requestTimeout
The timeout before the request fails.API name:
request_timeout
-
timeZone
@Nullable public final java.lang.String timeZone()Time-zone in ISO 8601 used for executing the query on the server. More information available here.API name:
time_zone
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupQueryRequestDeserializer
-