Class PathUtils
java.lang.Object
org.gridgain.internal.sql.copy.parquet.PathUtils
Collection of utility methods for working with paths.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFilesByPattern(LocationGuard guard, String root, String pattern) Returns the files underrootwhose full path matchespattern, subject to the node's import-root confinement and walk bounds.
-
Constructor Details
-
PathUtils
public PathUtils()
-
-
Method Details
-
getFilesByPattern
public static List<Path> getFilesByPattern(LocationGuard guard, String root, String pattern) throws IOException Returns the files underrootwhose full path matchespattern, 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
-