Class Utils


  • public class Utils
    extends Object
    • Method Detail

      • rethrowException

        public static void rethrowException​(Throwable t)
        Rethrows an exception, even if it is not in the method signature.
        Parameters:
        t - The exception to rethrow.
      • getCallingMethodDetails

        public static String getCallingMethodDetails()
        Obtains the name of the calling method and line number. This is slow, only use this for debugging!
      • getUniqueId

        public static long getUniqueId()
      • toCamelCase

        public static String toCamelCase​(String text)
        Takes a string, removes all characters that are not letters or digits and capitalizes the next letter following a series of characters that are not letters or digits. For example, toCamelCase("Hello world!") returns "HelloWorld".
        Parameters:
        text - The text to camel case
        Returns:
        The camel cased version of the string given
      • logVersions

        public static void logVersions()
        Write the version of Pinot components to the log at info level.
      • getComponentVersions

        public static Map<String,​String> getComponentVersions()
        Obtains the version numbers of the Pinot components.
        Returns:
        A map of component name to component version.