Class Util

java.lang.Object
org.apache.iceberg.hadoop.Util

public class Util extends Object
  • Field Details Link icon

  • Method Details Link icon

    • getFs Link icon

      public static org.apache.hadoop.fs.FileSystem getFs(org.apache.hadoop.fs.Path path, org.apache.hadoop.conf.Configuration conf)
    • blockLocations Link icon

      public static String[] blockLocations(CombinedScanTask task, org.apache.hadoop.conf.Configuration conf)
    • blockLocations Link icon

      public static String[] blockLocations(FileIO io, ScanTaskGroup<?> taskGroup)
    • mayHaveBlockLocations Link icon

      public static boolean mayHaveBlockLocations(FileIO io, String location)
    • uriToString Link icon

      public static String uriToString(URI uri)
      From Apache Spark

      Convert URI to String. Since URI.toString does not decode the uri, e.g. change '%25' to '%'. Here we create a hadoop Path with the given URI, and rely on Path.toString to decode the uri

      Parameters:
      uri - the URI of the path
      Returns:
      the String of the path