Class ServiceProvider
- java.lang.Object
-
- org.apache.iotdb.db.service.basic.ServiceProvider
-
- Direct Known Subclasses:
StandaloneServiceProvider
public abstract class ServiceProvider extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static org.slf4j.LoggerAUDIT_LOGGERstatic IoTDBConfigCONFIGstatic org.apache.iotdb.service.rpc.thrift.TSProtocolVersionCURRENT_RPC_VERSIONprotected IPlanExecutorexecutorstatic QueryFrequencyRecorderQUERY_FREQUENCY_RECORDERstatic QueryTimeManagerQUERY_TIME_MANAGERstatic SessionManagerSESSION_MANAGERstatic org.slf4j.LoggerSLOW_SQL_LOGGERstatic TracingManagerTRACING_MANAGER
-
Constructor Summary
Constructors Constructor Description ServiceProvider(PlanExecutor executor)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description org.apache.iotdb.tsfile.read.query.dataset.QueryDataSetcreateQueryDataSet(QueryContext context, PhysicalPlan physicalPlan, int fetchSize)create QueryDataSet and buffer it for fetchResultsabstract booleanexecuteNonQuery(PhysicalPlan plan)abstract QueryContextgenQueryContext(long queryId, boolean debug, long startTime, java.lang.String statement, long timeout)IPlanExecutorgetExecutor()PlannergetPlanner()
-
-
-
Field Detail
-
AUDIT_LOGGER
public static final org.slf4j.Logger AUDIT_LOGGER
-
SLOW_SQL_LOGGER
public static final org.slf4j.Logger SLOW_SQL_LOGGER
-
CURRENT_RPC_VERSION
public static final org.apache.iotdb.service.rpc.thrift.TSProtocolVersion CURRENT_RPC_VERSION
-
CONFIG
public static final IoTDBConfig CONFIG
-
SESSION_MANAGER
public static SessionManager SESSION_MANAGER
-
QUERY_TIME_MANAGER
public static final QueryTimeManager QUERY_TIME_MANAGER
-
TRACING_MANAGER
public static final TracingManager TRACING_MANAGER
-
QUERY_FREQUENCY_RECORDER
public static final QueryFrequencyRecorder QUERY_FREQUENCY_RECORDER
-
executor
protected final IPlanExecutor executor
-
-
Constructor Detail
-
ServiceProvider
public ServiceProvider(PlanExecutor executor) throws QueryProcessException
- Throws:
QueryProcessException
-
-
Method Detail
-
getPlanner
public Planner getPlanner()
-
getExecutor
public IPlanExecutor getExecutor()
-
genQueryContext
public abstract QueryContext genQueryContext(long queryId, boolean debug, long startTime, java.lang.String statement, long timeout)
-
executeNonQuery
public abstract boolean executeNonQuery(PhysicalPlan plan) throws QueryProcessException, StorageGroupNotSetException, StorageEngineException
-
createQueryDataSet
public org.apache.iotdb.tsfile.read.query.dataset.QueryDataSet createQueryDataSet(QueryContext context, PhysicalPlan physicalPlan, int fetchSize) throws QueryProcessException, org.apache.iotdb.tsfile.exception.filter.QueryFilterOptimizationException, StorageEngineException, java.io.IOException, org.apache.iotdb.commons.exception.MetadataException, java.sql.SQLException, org.apache.thrift.TException, java.lang.InterruptedException
create QueryDataSet and buffer it for fetchResults- Throws:
QueryProcessExceptionorg.apache.iotdb.tsfile.exception.filter.QueryFilterOptimizationExceptionStorageEngineExceptionjava.io.IOExceptionorg.apache.iotdb.commons.exception.MetadataExceptionjava.sql.SQLExceptionorg.apache.thrift.TExceptionjava.lang.InterruptedException
-
-