Class StatementGenerator
- java.lang.Object
-
- org.apache.iotdb.db.mpp.plan.parser.StatementGenerator
-
public class StatementGenerator extends java.lang.ObjectConvert SQL and RPC requests toStatement.
-
-
Constructor Summary
Constructors Constructor Description StatementGenerator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StatementcreateStatement(java.lang.String storageGroup)static StatementcreateStatement(java.lang.String sql, java.time.ZoneId zoneId)static StatementcreateStatement(java.util.List<java.lang.String> storageGroups)static StatementcreateStatement(org.apache.iotdb.service.rpc.thrift.TSCreateAlignedTimeseriesReq req)static StatementcreateStatement(org.apache.iotdb.service.rpc.thrift.TSCreateMultiTimeseriesReq req)static CreateSchemaTemplateStatementcreateStatement(org.apache.iotdb.service.rpc.thrift.TSCreateSchemaTemplateReq req)static StatementcreateStatement(org.apache.iotdb.service.rpc.thrift.TSCreateTimeseriesReq req)static DeleteDataStatementcreateStatement(org.apache.iotdb.service.rpc.thrift.TSDeleteDataReq req)static StatementcreateStatement(org.apache.iotdb.service.rpc.thrift.TSInsertRecordReq insertRecordReq)static StatementcreateStatement(org.apache.iotdb.service.rpc.thrift.TSInsertRecordsOfOneDeviceReq req)static StatementcreateStatement(org.apache.iotdb.service.rpc.thrift.TSInsertRecordsReq req)static StatementcreateStatement(org.apache.iotdb.service.rpc.thrift.TSInsertStringRecordReq insertRecordReq)static StatementcreateStatement(org.apache.iotdb.service.rpc.thrift.TSInsertStringRecordsOfOneDeviceReq req)static StatementcreateStatement(org.apache.iotdb.service.rpc.thrift.TSInsertStringRecordsReq req)static StatementcreateStatement(org.apache.iotdb.service.rpc.thrift.TSInsertTabletReq insertTabletReq)static StatementcreateStatement(org.apache.iotdb.service.rpc.thrift.TSInsertTabletsReq req)static StatementcreateStatement(org.apache.iotdb.service.rpc.thrift.TSLastDataQueryReq lastDataQueryReq, java.time.ZoneId zoneId)static StatementcreateStatement(org.apache.iotdb.service.rpc.thrift.TSQueryTemplateReq req)static StatementcreateStatement(org.apache.iotdb.service.rpc.thrift.TSRawDataQueryReq rawDataQueryReq, java.time.ZoneId zoneId)static SetSchemaTemplateStatementcreateStatement(org.apache.iotdb.service.rpc.thrift.TSSetSchemaTemplateReq req)
-
-
-
Method Detail
-
createStatement
public static Statement createStatement(java.lang.String sql, java.time.ZoneId zoneId)
-
createStatement
public static Statement createStatement(org.apache.iotdb.service.rpc.thrift.TSRawDataQueryReq rawDataQueryReq, java.time.ZoneId zoneId) throws org.apache.iotdb.commons.exception.IllegalPathException
- Throws:
org.apache.iotdb.commons.exception.IllegalPathException
-
createStatement
public static Statement createStatement(org.apache.iotdb.service.rpc.thrift.TSLastDataQueryReq lastDataQueryReq, java.time.ZoneId zoneId) throws org.apache.iotdb.commons.exception.IllegalPathException
- Throws:
org.apache.iotdb.commons.exception.IllegalPathException
-
createStatement
public static Statement createStatement(org.apache.iotdb.service.rpc.thrift.TSInsertRecordReq insertRecordReq) throws org.apache.iotdb.commons.exception.IllegalPathException, QueryProcessException
- Throws:
org.apache.iotdb.commons.exception.IllegalPathExceptionQueryProcessException
-
createStatement
public static Statement createStatement(org.apache.iotdb.service.rpc.thrift.TSInsertStringRecordReq insertRecordReq) throws org.apache.iotdb.commons.exception.IllegalPathException, QueryProcessException
- Throws:
org.apache.iotdb.commons.exception.IllegalPathExceptionQueryProcessException
-
createStatement
public static Statement createStatement(org.apache.iotdb.service.rpc.thrift.TSInsertTabletReq insertTabletReq) throws org.apache.iotdb.commons.exception.IllegalPathException
- Throws:
org.apache.iotdb.commons.exception.IllegalPathException
-
createStatement
public static Statement createStatement(org.apache.iotdb.service.rpc.thrift.TSInsertTabletsReq req) throws org.apache.iotdb.commons.exception.IllegalPathException
- Throws:
org.apache.iotdb.commons.exception.IllegalPathException
-
createStatement
public static Statement createStatement(org.apache.iotdb.service.rpc.thrift.TSInsertRecordsReq req) throws org.apache.iotdb.commons.exception.IllegalPathException, QueryProcessException
- Throws:
org.apache.iotdb.commons.exception.IllegalPathExceptionQueryProcessException
-
createStatement
public static Statement createStatement(org.apache.iotdb.service.rpc.thrift.TSInsertStringRecordsReq req) throws org.apache.iotdb.commons.exception.IllegalPathException, QueryProcessException
- Throws:
org.apache.iotdb.commons.exception.IllegalPathExceptionQueryProcessException
-
createStatement
public static Statement createStatement(org.apache.iotdb.service.rpc.thrift.TSInsertRecordsOfOneDeviceReq req) throws org.apache.iotdb.commons.exception.IllegalPathException, QueryProcessException
- Throws:
org.apache.iotdb.commons.exception.IllegalPathExceptionQueryProcessException
-
createStatement
public static Statement createStatement(org.apache.iotdb.service.rpc.thrift.TSInsertStringRecordsOfOneDeviceReq req) throws org.apache.iotdb.commons.exception.IllegalPathException, QueryProcessException
- Throws:
org.apache.iotdb.commons.exception.IllegalPathExceptionQueryProcessException
-
createStatement
public static Statement createStatement(java.lang.String storageGroup) throws org.apache.iotdb.commons.exception.IllegalPathException
- Throws:
org.apache.iotdb.commons.exception.IllegalPathException
-
createStatement
public static Statement createStatement(org.apache.iotdb.service.rpc.thrift.TSCreateTimeseriesReq req) throws org.apache.iotdb.commons.exception.IllegalPathException
- Throws:
org.apache.iotdb.commons.exception.IllegalPathException
-
createStatement
public static Statement createStatement(org.apache.iotdb.service.rpc.thrift.TSCreateAlignedTimeseriesReq req) throws org.apache.iotdb.commons.exception.IllegalPathException
- Throws:
org.apache.iotdb.commons.exception.IllegalPathException
-
createStatement
public static Statement createStatement(org.apache.iotdb.service.rpc.thrift.TSCreateMultiTimeseriesReq req) throws org.apache.iotdb.commons.exception.IllegalPathException
- Throws:
org.apache.iotdb.commons.exception.IllegalPathException
-
createStatement
public static Statement createStatement(java.util.List<java.lang.String> storageGroups)
-
createStatement
public static DeleteDataStatement createStatement(org.apache.iotdb.service.rpc.thrift.TSDeleteDataReq req) throws org.apache.iotdb.commons.exception.IllegalPathException
- Throws:
org.apache.iotdb.commons.exception.IllegalPathException
-
createStatement
public static CreateSchemaTemplateStatement createStatement(org.apache.iotdb.service.rpc.thrift.TSCreateSchemaTemplateReq req) throws org.apache.iotdb.commons.exception.MetadataException
- Throws:
org.apache.iotdb.commons.exception.MetadataException
-
createStatement
public static Statement createStatement(org.apache.iotdb.service.rpc.thrift.TSQueryTemplateReq req)
-
createStatement
public static SetSchemaTemplateStatement createStatement(org.apache.iotdb.service.rpc.thrift.TSSetSchemaTemplateReq req) throws org.apache.iotdb.commons.exception.IllegalPathException
- Throws:
org.apache.iotdb.commons.exception.IllegalPathException
-
-