Class EsqlQueryRequest
- All Implemented Interfaces:
CompositeIndicesRequest,Writeable,RefCounted,TaskAwareRequest,TransportRequest
- Direct Known Subclasses:
PreparedEsqlQueryRequest
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsFields inherited from interface org.elasticsearch.core.RefCounted
ALWAYS_REFERENCED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionacceptedPragmaRisks(boolean accepted) voidAdd a "table" to the request for use with things likeLOOKUP.allowPartialResults(boolean allowPartialResults) booleanasync()static EsqlQueryRequestasyncEsqlQueryRequest(String query) booleancolumnar()columnar(boolean columnar) createTask(TaskId taskId, String type, String action, TaskId parentTaskId, Map<String, String> headers) filter()filter(QueryBuilder filter) <T> Tget(QuerySettingDef<T> def) Body-supplied value with registry-default fallback.includeCCSMetadata(Boolean include) includeExecutionMetadata(Boolean include) booleankeepOnCompletion(boolean keepOnCompletion) locale()voidparams()voidparams(QueryParams params) parse(EsqlParser parser, SettingsValidationContext settingsValidationCtx, InferenceSettings inferenceSettings) Parses the query string into anEsqlStatementand validates its settings.pragmas()pragmas(QueryPragmas pragmas) booleanprofile()Is profiling enabled?profile(boolean profile) Enable profiling, sacrificing performance to return information about what operations are taking the most time.query()Returns a non-null human-readable description of the query for logging, task descriptions, and error messages.Map<QuerySettingDef<?>, Object> <T> EsqlQueryRequestset(QuerySettingDef<T> def, T value) static EsqlQueryRequestsyncEsqlQueryRequest(String query) tables()validate()protected ActionRequestValidationExceptionwaitForCompletionTimeout(TimeValue waitForCompletionTimeout) Methods inherited from class org.elasticsearch.action.ActionRequest
getShouldStoreResult, writeToMethods inherited from class org.elasticsearch.transport.AbstractTransportRequest
copyFieldsFrom, getParentTask, getRequestId, remoteAddress, remoteAddress, setParentTask, setRequestId, toStringMethods inherited from class org.elasticsearch.transport.TransportMessage
decRef, hasReferences, incRef, tryIncRefMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.core.RefCounted
decRef, hasReferences, incRef, mustIncRef, tryIncRefMethods inherited from interface org.elasticsearch.tasks.TaskAwareRequest
createTask, getDescription, setParentTask
-
Field Details
-
DEFAULT_KEEP_ALIVE
-
DEFAULT_WAIT_FOR_COMPLETION
-
-
Constructor Details
-
EsqlQueryRequest
public EsqlQueryRequest() -
EsqlQueryRequest
- Throws:
IOException
-
-
Method Details
-
syncEsqlQueryRequest
-
asyncEsqlQueryRequest
-
validate
- Specified by:
validatein classActionRequest
-
validateQuery
-
query
-
query
- Specified by:
queryin classEsqlQueryRequest
-
queryDescription
Returns a non-null human-readable description of the query for logging, task descriptions, and error messages. For regular requests this is the same asquery(). Overridden byPreparedEsqlQueryRequestto return a display string when there is no query text. -
parse
public EsqlStatement parse(EsqlParser parser, SettingsValidationContext settingsValidationCtx, InferenceSettings inferenceSettings) Parses the query string into anEsqlStatementand validates its settings. Overridden byPreparedEsqlQueryRequestto return a pre-built statement directly. -
async
public boolean async() -
columnar
-
columnar
public boolean columnar() -
profile
Enable profiling, sacrificing performance to return information about what operations are taking the most time. -
includeCCSMetadata
-
includeCCSMetadata
-
includeExecutionMetadata
-
includeExecutionMetadata
-
profile
public boolean profile()Is profiling enabled? -
locale
-
locale
-
filter
-
filter
- Specified by:
filterin classEsqlQueryRequest
-
pragmas
-
pragmas
-
params
-
params
-
waitForCompletionTimeout
-
waitForCompletionTimeout
-
keepAlive
-
keepAlive
-
keepOnCompletion
public boolean keepOnCompletion() -
keepOnCompletion
-
addTable
Add a "table" to the request for use with things likeLOOKUP. -
tables
-
allowPartialResults
-
allowPartialResults
-
createTask
public Task createTask(TaskId taskId, String type, String action, TaskId parentTaskId, Map<String, String> headers) - Specified by:
createTaskin interfaceTaskAwareRequest
-
acceptedPragmaRisks
-
set
-
get
Body-supplied value with registry-default fallback. Pre-resolution; for the merged value use theResolvedSettingsfromQuerySettings.resolve(java.util.Map<org.elasticsearch.xpack.esql.plan.QuerySettingDef<?>, java.lang.Object>, org.elasticsearch.xpack.esql.plan.EsqlStatement, org.elasticsearch.xpack.esql.plan.SettingsValidationContext). -
requestSettings
-