Package org.apache.iceberg.hadoop
Class Util
java.lang.Object
org.apache.iceberg.hadoop.Util
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic String[]blockLocations(CombinedScanTask task, org.apache.hadoop.conf.Configuration conf) Deprecated.static String[]blockLocations(FileIO io, ScanTaskGroup<?> taskGroup) static String[]blockLocations(ScanTaskGroup<FileScanTask> taskGroup, org.apache.hadoop.conf.Configuration conf) static org.apache.hadoop.fs.FileSystemgetFs(org.apache.hadoop.fs.Path path, org.apache.hadoop.conf.Configuration conf) static booleanmayHaveBlockLocations(FileIO io, String location) static StringuriToString(URI uri) From Apache Spark
-
Field Details
-
VERSION_HINT_FILENAME
- See Also:
-
-
Method Details
-
getFs
public static org.apache.hadoop.fs.FileSystem getFs(org.apache.hadoop.fs.Path path, org.apache.hadoop.conf.Configuration conf) -
blockLocations
@Deprecated public static String[] blockLocations(CombinedScanTask task, org.apache.hadoop.conf.Configuration conf) Deprecated.since 1.8.0, will be removed in 1.9.0; useblockLocations(ScanTaskGroup, Configuration)instead. -
blockLocations
public static String[] blockLocations(ScanTaskGroup<FileScanTask> taskGroup, org.apache.hadoop.conf.Configuration conf) -
blockLocations
-
mayHaveBlockLocations
-
uriToString
From Apache SparkConvert 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
-
blockLocations(ScanTaskGroup, Configuration)instead.