Class MPPQueryContext


  • public class MPPQueryContext
    extends java.lang.Object
    This class is used to record the context of a query including QueryId, query statement, session info and so on
    • Constructor Detail

      • MPPQueryContext

        public MPPQueryContext​(QueryId queryId)
      • MPPQueryContext

        public MPPQueryContext​(java.lang.String sql,
                               QueryId queryId,
                               SessionInfo session,
                               org.apache.iotdb.common.rpc.thrift.TEndPoint localDataBlockEndpoint,
                               org.apache.iotdb.common.rpc.thrift.TEndPoint localInternalEndpoint)
      • MPPQueryContext

        public MPPQueryContext​(java.lang.String sql,
                               QueryId queryId,
                               SessionInfo session,
                               org.apache.iotdb.common.rpc.thrift.TEndPoint localDataBlockEndpoint,
                               org.apache.iotdb.common.rpc.thrift.TEndPoint localInternalEndpoint,
                               long timeOut,
                               long startTime)
    • Method Detail

      • getQueryId

        public QueryId getQueryId()
      • getQueryType

        public QueryType getQueryType()
      • getTimeOut

        public long getTimeOut()
      • setTimeOut

        public void setTimeOut​(long timeOut)
      • setQueryType

        public void setQueryType​(QueryType queryType)
      • getLocalDataBlockEndpoint

        public org.apache.iotdb.common.rpc.thrift.TEndPoint getLocalDataBlockEndpoint()
      • getLocalInternalEndpoint

        public org.apache.iotdb.common.rpc.thrift.TEndPoint getLocalInternalEndpoint()
      • getStartTime

        public long getStartTime()
      • setStartTime

        public void setStartTime​(long startTime)
      • addFailedEndPoint

        public void addFailedEndPoint​(org.apache.iotdb.common.rpc.thrift.TEndPoint endPoint)
      • getEndPointBlackList

        public java.util.List<org.apache.iotdb.common.rpc.thrift.TEndPoint> getEndPointBlackList()