类 Utils


  • public class Utils
    extends Object
    • 构造器详细资料

      • Utils

        public Utils()
    • 方法详细资料

      • parseDate

        public static Date parseDate​(String timestampStr)
      • parseTimestamp

        public static Timestamp parseTimestamp​(String timeStampStr)
      • escapeSingleQuota

        public static String escapeSingleQuota​(String origin)
      • getNativeSql

        public static String getNativeSql​(String rawSql,
                                          Object[] parameters)
      • formatTimestamp

        public static String formatTimestamp​(Timestamp timestamp)
      • guessTimestampPrecision

        public static int guessTimestampPrecision​(String value)
      • preprocessSql

        public static String preprocessSql​(String rawSql)
        Some of the SQLs sent by other popular frameworks or tools like Spark, contains syntax that cannot be parsed by the TDengine client. Thus, some simple parsers/filters are intentionally added in this JDBC implementation in order to process those supported SQLs.
      • getClassLoader

        public static ClassLoader getClassLoader()
      • parseClassType

        public static Class<?> parseClassType​(String key)
      • newInstance

        public static <T> T newInstance​(Class<T> c)
        Instantiate the class