Class Configuration
java.lang.Object
org.elasticsearch.xpack.esql.session.Configuration
- All Implemented Interfaces:
Writeable
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConfiguration(ZoneId zi, Locale locale, String username, String clusterName, QueryPragmas pragmas, int resultTruncationMaxSize, int resultTruncationDefaultSize, String query, boolean profile, Map<String, Map<String, Column>> tables, long queryStartTimeNanos, boolean allowPartialResults) -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the current time in milliseconds from the time epoch for the execution of this request.booleanWhether this request can return partial results instead of failing fast on failuresbooleanlonginthashCode()locale()Create a newFoldContextwith the limit configured in theQueryPragmas.now()pragmas()booleanprofile()Enable profiling, sacrificing performance to return information about what operations are taking the most time.query()static ConfigurationReads aConfigurationthat doesn't contain anytables().intinttables()Tables specified in the request.toString()username()voidwriteTo(StreamOutput out) zoneId()
-
Field Details
-
QUERY_COMPRESS_THRESHOLD_CHARS
public static final int QUERY_COMPRESS_THRESHOLD_CHARS
-
-
Constructor Details
-
Configuration
-
Configuration
- Throws:
IOException
-
-
Method Details
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
zoneId
-
now
-
clusterName
-
username
-
pragmas
-
resultTruncationMaxSize
public int resultTruncationMaxSize() -
resultTruncationDefaultSize
public int resultTruncationDefaultSize() -
locale
-
query
-
absoluteStartedTimeInMillis
public long absoluteStartedTimeInMillis()Returns the current time in milliseconds from the time epoch for the execution of this request. It ensures consistency by using the same value on all nodes involved in the search request. -
getQueryStartTimeNanos
public long getQueryStartTimeNanos()- Returns:
- Start time of the ESQL query in nanos
-
newFoldContext
Create a newFoldContextwith the limit configured in theQueryPragmas. -
tables
Tables specified in the request. -
withoutTables
-
profile
public boolean profile()Enable profiling, sacrificing performance to return information about what operations are taking the most time. -
allowPartialResults
public boolean allowPartialResults()Whether this request can return partial results instead of failing fast on failures -
equals
-
hashCode
public int hashCode() -
toString
-
readWithoutTables
Reads aConfigurationthat doesn't contain anytables().- Throws:
IOException
-