Package org.apache.drill.common.util
Class GuavaUtils
java.lang.Object
org.apache.drill.common.util.GuavaUtils
Utility class which contain methods for conversion guava and shaded guava classes.
Once outer libraries API remove usage of these classes, these methods should be removed.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> com.google.common.collect.ImmutableList<com.google.common.collect.ImmutableList<T>>
convertToNestedUnshadedImmutableList
(List<? extends List<T>> tuples) Transforms specified list of lists intoImmutableList
ofImmutableList
lists to pass it into the methods from other libraries.static <T> com.google.common.collect.ImmutableList<T>
convertToUnshadedImmutableList
(List<? extends T> source)
-
Constructor Details
-
GuavaUtils
public GuavaUtils()
-
-
Method Details
-
convertToNestedUnshadedImmutableList
public static <T> com.google.common.collect.ImmutableList<com.google.common.collect.ImmutableList<T>> convertToNestedUnshadedImmutableList(List<? extends List<T>> tuples) Transforms specified list of lists intoImmutableList
ofImmutableList
lists to pass it into the methods from other libraries.- Parameters:
tuples
- list to be transformed- Returns:
- transformed list
-
convertToUnshadedImmutableList
public static <T> com.google.common.collect.ImmutableList<T> convertToUnshadedImmutableList(List<? extends T> source)
-