Package io.prestosql.server
Class BasicQueryInfo
- java.lang.Object
-
- io.prestosql.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 ErrorCode
getErrorCode()
ErrorType
getErrorType()
MemoryPoolId
getMemoryPool()
Optional<String>
getPreparedQuery()
String
getQuery()
QueryId
getQueryId()
BasicQueryStats
getQueryStats()
Optional<QueryType>
getQueryType()
Optional<ResourceGroupId>
getResourceGroupId()
URI
getSelf()
SessionRepresentation
getSession()
QueryState
getState()
Optional<String>
getUpdateType()
boolean
isScheduled()
String
toString()
-
-
-
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()
-
-