Class GuavaUtils

java.lang.Object
org.apache.drill.common.util.GuavaUtils

public class GuavaUtils extends Object
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 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 into ImmutableList of ImmutableList 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)