public abstract class ServiceProvider extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static org.slf4j.Logger |
AUDIT_LOGGER |
static IoTDBConfig |
CONFIG |
static org.apache.iotdb.service.rpc.thrift.TSProtocolVersion |
CURRENT_RPC_VERSION |
protected IPlanExecutor |
executor |
protected static org.slf4j.Logger |
LOGGER |
static QueryFrequencyRecorder |
QUERY_FREQUENCY_RECORDER |
static QueryTimeManager |
QUERY_TIME_MANAGER |
static SessionManager |
SESSION_MANAGER |
static org.slf4j.Logger |
SLOW_SQL_LOGGER |
static TracingManager |
TRACING_MANAGER |
| 构造器和说明 |
|---|
ServiceProvider(PlanExecutor executor) |
| 限定符和类型 | 方法和说明 |
|---|---|
org.apache.iotdb.service.rpc.thrift.TSStatus |
checkAuthority(PhysicalPlan plan,
long sessionId) |
boolean |
checkAuthorization(PhysicalPlan plan,
String username) |
boolean |
checkLogin(long sessionId)
Check whether current user has logged in.
|
boolean |
checkSessionTimeout(long sessionId)
Check whether current session is timeout.
|
org.apache.iotdb.service.rpc.thrift.TSStatus |
closeOperation(long sessionId,
long queryId,
long statementId,
boolean haveStatementId,
boolean haveSetQueryId) |
boolean |
closeSession(long sessionId) |
QueryDataSet |
createQueryDataSet(QueryContext context,
PhysicalPlan physicalPlan,
int fetchSize)
create QueryDataSet and buffer it for fetchResults
|
abstract boolean |
executeNonQuery(PhysicalPlan plan) |
abstract QueryContext |
genQueryContext(long queryId,
boolean debug,
long startTime,
String statement,
long timeout) |
IPlanExecutor |
getExecutor() |
Planner |
getPlanner() |
BasicOpenSessionResp |
openSession(String username,
String password,
String zoneId,
org.apache.iotdb.service.rpc.thrift.TSProtocolVersion tsProtocolVersion) |
BasicOpenSessionResp |
openSession(String username,
String password,
String zoneId,
org.apache.iotdb.service.rpc.thrift.TSProtocolVersion tsProtocolVersion,
IoTDBConstant.ClientVersion clientVersion) |
protected static final org.slf4j.Logger LOGGER
public static final org.slf4j.Logger AUDIT_LOGGER
public static final org.slf4j.Logger SLOW_SQL_LOGGER
public static final org.apache.iotdb.service.rpc.thrift.TSProtocolVersion CURRENT_RPC_VERSION
public static final IoTDBConfig CONFIG
public static final QueryTimeManager QUERY_TIME_MANAGER
public static final TracingManager TRACING_MANAGER
public static final QueryFrequencyRecorder QUERY_FREQUENCY_RECORDER
public static SessionManager SESSION_MANAGER
protected final IPlanExecutor executor
public ServiceProvider(PlanExecutor executor) throws QueryProcessException
public Planner getPlanner()
public IPlanExecutor getExecutor()
public abstract QueryContext genQueryContext(long queryId, boolean debug, long startTime, String statement, long timeout)
public abstract boolean executeNonQuery(PhysicalPlan plan) throws QueryProcessException, StorageGroupNotSetException, StorageEngineException
public boolean checkLogin(long sessionId)
public boolean checkSessionTimeout(long sessionId)
sessionId - Session id.public boolean checkAuthorization(PhysicalPlan plan, String username) throws AuthException
AuthExceptionpublic org.apache.iotdb.service.rpc.thrift.TSStatus checkAuthority(PhysicalPlan plan, long sessionId)
public BasicOpenSessionResp openSession(String username, String password, String zoneId, org.apache.iotdb.service.rpc.thrift.TSProtocolVersion tsProtocolVersion, IoTDBConstant.ClientVersion clientVersion) throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic BasicOpenSessionResp openSession(String username, String password, String zoneId, org.apache.iotdb.service.rpc.thrift.TSProtocolVersion tsProtocolVersion) throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic boolean closeSession(long sessionId)
public org.apache.iotdb.service.rpc.thrift.TSStatus closeOperation(long sessionId,
long queryId,
long statementId,
boolean haveStatementId,
boolean haveSetQueryId)
public QueryDataSet createQueryDataSet(QueryContext context, PhysicalPlan physicalPlan, int fetchSize) throws QueryProcessException, QueryFilterOptimizationException, StorageEngineException, IOException, MetadataException, SQLException, org.apache.thrift.TException, InterruptedException
QueryProcessExceptionQueryFilterOptimizationExceptionStorageEngineExceptionIOExceptionMetadataExceptionSQLExceptionorg.apache.thrift.TExceptionInterruptedExceptionCopyright © 2022 The Apache Software Foundation. All rights reserved.