Package com.gpudb.filesystem.utils
Class GPUdbFileHandlerUtils
- java.lang.Object
-
- com.gpudb.filesystem.utils.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 Summary
Constructors Constructor Description GPUdbFileHandlerUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidawaitTerminationAfterShutdown(ExecutorService threadPool, long timeout)Terminate a thread pool after waiting for a given vaue of 'timeout'static com.fasterxml.jackson.databind.ObjectMappergetJacksonObjectMapper()static StringjoinStrings(List<String> stringList)static StringjoinStrings(List<String> stringList, char separator)static ByteBuffermerge(List<ByteBuffer> byteBuffers)Merge a list of buffers into a single buffer.static <T> Set<T>setDifference(Set<T> setA, Set<T> setB)static <T> Set<T>setIntersection(Set<T> setA, Set<T> setB)
-
-
-
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-
-
getJacksonObjectMapper
public static com.fasterxml.jackson.databind.ObjectMapper getJacksonObjectMapper()
-
-