类 Utils
- java.lang.Object
-
- com.taosdata.jdbc.utils.Utils
-
public class Utils extends Object
-
-
构造器概要
构造器 构造器 说明 Utils()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static StringescapeSingleQuota(String origin)static StringformatTimestamp(Timestamp timestamp)static ClassLoadergetClassLoader()static StringgetNativeSql(String rawSql, Object[] parameters)static intguessTimestampPrecision(String value)static <T> TnewInstance(Class<T> c)Instantiate the classstatic Class<?>parseClassType(String key)static DateparseDate(String timestampStr)static TimeparseTime(String timestampStr)static TimestampparseTimestamp(String timeStampStr)static StringpreprocessSql(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.
-
-
-
方法详细资料
-
parseTime
public static Time parseTime(String timestampStr) throws DateTimeParseException
-
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()
-
newInstance
public static <T> T newInstance(Class<T> c)
Instantiate the class
-
-