Class StringUtils
- java.lang.Object
-
- org.apache.iotdb.db.protocol.influxdb.util.StringUtils
-
public class StringUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description StringUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleancheckSameStringList(java.util.List<java.lang.String> list1, java.util.List<java.lang.String> list2)determine whether the two string lists are the samestatic java.lang.StringgenerateFunctionSql(java.lang.String functionName, java.lang.String parameter, java.lang.String path)static java.lang.StringgetDeviceByPath(java.lang.String path)get the devicePath through the fullPathstatic java.lang.StringgetFieldByPath(java.lang.String path)get the last node through the path in iotdbstatic java.util.List<java.lang.String>removeDuplicate(java.util.List<java.lang.String> strings)remove string list duplicate namesstatic java.lang.StringremoveQuotation(java.lang.String str)if the first and last of the current string are quotation marks, they are removed
-
-
-
Method Detail
-
removeQuotation
public static java.lang.String removeQuotation(java.lang.String str)
if the first and last of the current string are quotation marks, they are removed- Parameters:
str- string to process- Returns:
- string after processing
-
removeDuplicate
public static java.util.List<java.lang.String> removeDuplicate(java.util.List<java.lang.String> strings)
remove string list duplicate names- Parameters:
strings- the list of strings with duplicate names needs to be removed- Returns:
- list of de duplicated strings
-
getFieldByPath
public static java.lang.String getFieldByPath(java.lang.String path)
get the last node through the path in iotdb- Parameters:
path- path to process- Returns:
- last node
-
getDeviceByPath
public static java.lang.String getDeviceByPath(java.lang.String path)
get the devicePath through the fullPath- Parameters:
path- path to process- Returns:
- devicePath
-
checkSameStringList
public static boolean checkSameStringList(java.util.List<java.lang.String> list1, java.util.List<java.lang.String> list2)determine whether the two string lists are the same- Parameters:
list1- first list to comparelist2- second list to compare- Returns:
- Is it the same
-
generateFunctionSql
public static java.lang.String generateFunctionSql(java.lang.String functionName, java.lang.String parameter, java.lang.String path)
-
-