Class PathUtils

java.lang.Object
org.gridgain.internal.sql.copy.parquet.PathUtils

public class PathUtils extends Object
Collection of utility methods for working with paths.
  • Constructor Details

    • PathUtils

      public PathUtils()
  • Method Details

    • getFilesByPattern

      public static List<Path> getFilesByPattern(LocationGuard guard, String root, String pattern) throws IOException
      Returns the files under root whose full path matches pattern, subject to the node's import-root confinement and walk bounds.
      Parameters:
      guard - Location guard providing root confinement and the walk depth/count limits.
      root - Root directory to walk (must resolve inside a configured import root).
      pattern - Regular expression matched against each file path (evaluated with a bounded number of steps).
      Returns:
      Matching files (each re-confined to a configured import root).
      Throws:
      IOException