Class QueryContext
- java.lang.Object
-
- org.apache.iotdb.db.query.context.QueryContext
-
- Direct Known Subclasses:
FragmentInstanceContext
public class QueryContext extends java.lang.ObjectQueryContext contains the shared information with in a query.
-
-
Field Summary
Fields Modifier and Type Field Description protected longqueryId
-
Constructor Summary
Constructors Constructor Description QueryContext()QueryContext(long queryId)QueryContext(long queryId, boolean debug, long startTime, java.lang.String statement, long timeout)Every time we generate the queryContext, register it to queryTimeManager.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanchunkNotSatisfy(org.apache.iotdb.tsfile.file.metadata.IChunkMetadata chunkMetaData)java.util.List<Modification>getPathModifications(ModificationFile modFile, org.apache.iotdb.commons.path.PartialPath path)Find the modifications of timeseries 'path' in 'modFile'.java.util.List<java.util.List<Modification>>getPathModifications(ModificationFile modFile, AlignedPath path)Find the modifications of all aligned 'paths' in 'modFile'.longgetQueryId()longgetQueryTimeLowerBound()longgetStartTime()java.lang.StringgetStatement()voidgetStatement(java.lang.String statement)longgetTimeout()booleanisDebug()booleanisEnableTracing()booleanisInterrupted()voidsetEnableTracing(boolean enableTracing)voidsetInterrupted(boolean interrupted)voidsetQueryTimeLowerBound(long queryTimeLowerBound)QueryContextsetStartTime(long startTime)QueryContextsetStatement(java.lang.String statement)QueryContextsetTimeout(long timeout)
-
-
-
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()
-
-