public class ReachableFileUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.util.List<java.lang.String> |
manifestListLocations(Table table)
Returns locations of manifest lists in a table.
|
static java.util.List<java.lang.String> |
manifestListLocations(Table table,
java.util.Set<java.lang.Long> snapshotIds)
Returns locations of manifest lists in a table.
|
static java.util.Set<java.lang.String> |
metadataFileLocations(Table table,
boolean recursive)
Returns locations of JSON metadata files in a table.
|
static java.util.List<java.lang.String> |
statisticsFilesLocations(Table table)
Returns locations of all statistics files in a table.
|
static java.util.List<java.lang.String> |
statisticsFilesLocations(Table table,
java.util.function.Predicate<StatisticsFile> predicate)
Deprecated.
since 1.5.0, will be removed in 1.6.0; use the
statisticsFilesLocationsForSnapshots(table, snapshotIds) instead. |
static java.util.List<java.lang.String> |
statisticsFilesLocationsForSnapshots(Table table,
java.util.Set<java.lang.Long> snapshotIds)
Returns locations of all statistics files for a table matching the given snapshot IDs.
|
static java.lang.String |
versionHintLocation(Table table)
Returns the location of the version hint file
|
public static java.lang.String versionHintLocation(Table table)
table
- table for which version hint file's path needs to be retrievedpublic static java.util.Set<java.lang.String> metadataFileLocations(Table table, boolean recursive)
table
- Table to get JSON metadata files fromrecursive
- When true, recursively retrieves all the reachable JSON metadata files. When
false, gets the all the JSON metadata files only from the current metadata.public static java.util.List<java.lang.String> manifestListLocations(Table table)
table
- table for which manifestList needs to be fetchedpublic static java.util.List<java.lang.String> manifestListLocations(Table table, java.util.Set<java.lang.Long> snapshotIds)
table
- table for which manifestList needs to be fetchedsnapshotIds
- ids of snapshots for which manifest lists will be returnedpublic static java.util.List<java.lang.String> statisticsFilesLocations(Table table)
table
- table for which statistics files needs to be listed@Deprecated public static java.util.List<java.lang.String> statisticsFilesLocations(Table table, java.util.function.Predicate<StatisticsFile> predicate)
statisticsFilesLocationsForSnapshots(table, snapshotIds)
instead.table
- table for which statistics files needs to be listedpredicate
- predicate for filtering the statistics filespublic static java.util.List<java.lang.String> statisticsFilesLocationsForSnapshots(Table table, java.util.Set<java.lang.Long> snapshotIds)
table
- table for which statistics files needs to be listedsnapshotIds
- ids of snapshots for which statistics files will be returned. If null,
statistics files for all the snapshots will be returned.