Class StatementGenerator


  • public class StatementGenerator
    extends java.lang.Object
    Convert SQL and RPC requests to Statement.
    • Constructor Detail

      • StatementGenerator

        public StatementGenerator()
    • 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.IllegalPathException
        QueryProcessException
      • 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.IllegalPathException
        QueryProcessException
      • 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.IllegalPathException
        QueryProcessException
      • 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.IllegalPathException
        QueryProcessException
      • 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.IllegalPathException
        QueryProcessException
      • 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.IllegalPathException
        QueryProcessException
      • 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