Class GPUdbFileHandlerUtils


  • public class GPUdbFileHandlerUtils
    extends Object
    This is an internal class and not meant to be used by the end users of the filesystem API. The consequences of using this class directly in client code is not guaranteed and maybe undesirable.
    • Constructor Detail

      • GPUdbFileHandlerUtils

        public GPUdbFileHandlerUtils()
    • Method Detail

      • merge

        public static ByteBuffer merge​(List<ByteBuffer> byteBuffers)
        Merge a list of buffers into a single buffer.
        Parameters:
        byteBuffers - list of ByteBuffer objects
        Returns:
        merged ByteBuffer
      • awaitTerminationAfterShutdown

        public static void awaitTerminationAfterShutdown​(ExecutorService threadPool,
                                                         long timeout)
        Terminate a thread pool after waiting for a given vaue of 'timeout'
        Parameters:
        threadPool -
      • setDifference

        public static <T> Set<T> setDifference​(Set<T> setA,
                                               Set<T> setB)
      • setIntersection

        public static <T> Set<T> setIntersection​(Set<T> setA,
                                                 Set<T> setB)
      • joinStrings

        public static String joinStrings​(List<String> stringList,
                                         char separator)
      • getJacksonObjectMapper

        public static com.fasterxml.jackson.databind.ObjectMapper getJacksonObjectMapper()