Class ReachableFileUtil


  • public class ReachableFileUtil
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method 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 statistics files in a table.
      static java.util.List<java.lang.String> statisticsFilesLocations​(Table table, java.util.function.Predicate<StatisticsFile> predicate)
      Returns locations of statistics files for a table matching the given predicate .
      static java.lang.String versionHintLocation​(Table table)
      Returns the location of the version hint file
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • versionHintLocation

        public static java.lang.String versionHintLocation​(Table table)
        Returns the location of the version hint file
        Parameters:
        table - table for which version hint file's path needs to be retrieved
        Returns:
        the location of the version hint file
      • metadataFileLocations

        public static java.util.Set<java.lang.String> metadataFileLocations​(Table table,
                                                                            boolean recursive)
        Returns locations of JSON metadata files in a table.
        Parameters:
        table - Table to get JSON metadata files from
        recursive - When true, recursively retrieves all the reachable JSON metadata files. When false, gets the all the JSON metadata files only from the current metadata.
        Returns:
        locations of JSON metadata files
      • manifestListLocations

        public static java.util.List<java.lang.String> manifestListLocations​(Table table)
        Returns locations of manifest lists in a table.
        Parameters:
        table - table for which manifestList needs to be fetched
        Returns:
        the location of manifest lists
      • manifestListLocations

        public 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.
        Parameters:
        table - table for which manifestList needs to be fetched
        snapshotIds - ids of snapshots for which manifest lists will be returned
        Returns:
        the location of manifest lists
      • statisticsFilesLocations

        public static java.util.List<java.lang.String> statisticsFilesLocations​(Table table)
        Returns locations of statistics files in a table.
        Parameters:
        table - table for which statistics files needs to be listed
        Returns:
        the location of statistics files
      • statisticsFilesLocations

        public static java.util.List<java.lang.String> statisticsFilesLocations​(Table table,
                                                                                java.util.function.Predicate<StatisticsFile> predicate)
        Returns locations of statistics files for a table matching the given predicate .
        Parameters:
        table - table for which statistics files needs to be listed
        predicate - predicate for filtering the statistics files
        Returns:
        the location of statistics files