Package io.trino.server
Class BasicQueryInfo
- java.lang.Object
-
- io.trino.server.BasicQueryInfo
-
@Immutable public class BasicQueryInfo extends Object
Lightweight version of QueryInfo. Parts of the web UI depend on the fields being named consistently across these classes.
-
-
Constructor Summary
Constructors Constructor Description BasicQueryInfo(QueryInfo queryInfo)BasicQueryInfo(QueryId queryId, SessionRepresentation session, Optional<ResourceGroupId> resourceGroupId, QueryState state, MemoryPoolId memoryPool, boolean scheduled, URI self, String query, Optional<String> updateType, Optional<String> preparedQuery, BasicQueryStats queryStats, ErrorType errorType, ErrorCode errorCode, Optional<QueryType> queryType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ErrorCodegetErrorCode()ErrorTypegetErrorType()MemoryPoolIdgetMemoryPool()Optional<String>getPreparedQuery()StringgetQuery()QueryIdgetQueryId()BasicQueryStatsgetQueryStats()Optional<QueryType>getQueryType()Optional<ResourceGroupId>getResourceGroupId()URIgetSelf()SessionRepresentationgetSession()QueryStategetState()Optional<String>getUpdateType()booleanisScheduled()StringtoString()
-
-
-
Constructor Detail
-
BasicQueryInfo
public BasicQueryInfo(QueryId queryId, SessionRepresentation session, Optional<ResourceGroupId> resourceGroupId, QueryState state, MemoryPoolId memoryPool, boolean scheduled, URI self, String query, Optional<String> updateType, Optional<String> preparedQuery, BasicQueryStats queryStats, ErrorType errorType, ErrorCode errorCode, Optional<QueryType> queryType)
-
BasicQueryInfo
public BasicQueryInfo(QueryInfo queryInfo)
-
-
Method Detail
-
getQueryId
public QueryId getQueryId()
-
getSession
public SessionRepresentation getSession()
-
getResourceGroupId
public Optional<ResourceGroupId> getResourceGroupId()
-
getState
public QueryState getState()
-
getMemoryPool
public MemoryPoolId getMemoryPool()
-
isScheduled
public boolean isScheduled()
-
getSelf
public URI getSelf()
-
getQuery
public String getQuery()
-
getQueryStats
public BasicQueryStats getQueryStats()
-
getErrorType
@Nullable public ErrorType getErrorType()
-
getErrorCode
@Nullable public ErrorCode getErrorCode()
-
-