Class 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 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
      static java.lang.String generateFunctionSql​(java.lang.String functionName, java.lang.String parameter, java.lang.String path)  
      static java.lang.String getDeviceByPath​(java.lang.String path)
      get the devicePath through the fullPath
      static java.lang.String getFieldByPath​(java.lang.String path)
      get the last node through the path in iotdb
      static java.util.List<java.lang.String> removeDuplicate​(java.util.List<java.lang.String> strings)
      remove string list duplicate names
      static java.lang.String removeQuotation​(java.lang.String str)
      if the first and last of the current string are quotation marks, they are removed
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StringUtils

        public StringUtils()
    • 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 compare
        list2 - 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)