Package org.apache.iceberg.hadoop
Class Util
java.lang.Object
org.apache.iceberg.hadoop.Util
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptionstatic 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- 
getFspublic static org.apache.hadoop.fs.FileSystem getFs(org.apache.hadoop.fs.Path path, org.apache.hadoop.conf.Configuration conf) 
- 
blockLocationspublic static String[] blockLocations(ScanTaskGroup<FileScanTask> taskGroup, org.apache.hadoop.conf.Configuration conf) 
- 
blockLocations
- 
mayHaveBlockLocations
- 
uriToStringFrom 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
 
 
-