Class QueryContext

  • Direct Known Subclasses:
    FragmentInstanceContext

    public class QueryContext
    extends java.lang.Object
    QueryContext contains the shared information with in a query.
    • Field Detail

      • queryId

        protected long queryId
    • Constructor Detail

      • QueryContext

        public QueryContext()
      • QueryContext

        public QueryContext​(long queryId)
      • QueryContext

        public QueryContext​(long queryId,
                            boolean debug,
                            long startTime,
                            java.lang.String statement,
                            long timeout)
        Every time we generate the queryContext, register it to queryTimeManager.
    • Method Detail

      • getPathModifications

        public java.util.List<Modification> getPathModifications​(ModificationFile modFile,
                                                                 org.apache.iotdb.commons.path.PartialPath path)
        Find the modifications of timeseries 'path' in 'modFile'. If they are not in the cache, read them from 'modFile' and put then into the cache.
      • getPathModifications

        public java.util.List<java.util.List<Modification>> getPathModifications​(ModificationFile modFile,
                                                                                 AlignedPath path)
        Find the modifications of all aligned 'paths' in 'modFile'. If they are not in the cache, read them from 'modFile' and put then into the cache.
      • getQueryId

        public long getQueryId()
      • isDebug

        public boolean isDebug()
      • isEnableTracing

        public boolean isEnableTracing()
      • setEnableTracing

        public void setEnableTracing​(boolean enableTracing)
      • getQueryTimeLowerBound

        public long getQueryTimeLowerBound()
      • setQueryTimeLowerBound

        public void setQueryTimeLowerBound​(long queryTimeLowerBound)
      • chunkNotSatisfy

        public boolean chunkNotSatisfy​(org.apache.iotdb.tsfile.file.metadata.IChunkMetadata chunkMetaData)
      • getStartTime

        public long getStartTime()
      • getStatement

        public java.lang.String getStatement()
      • setStartTime

        public QueryContext setStartTime​(long startTime)
      • getStatement

        public void getStatement​(java.lang.String statement)
      • getTimeout

        public long getTimeout()
      • setTimeout

        public QueryContext setTimeout​(long timeout)
      • setStatement

        public QueryContext setStatement​(java.lang.String statement)
      • setInterrupted

        public void setInterrupted​(boolean interrupted)
      • isInterrupted

        public boolean isInterrupted()