Package org.apache.drill.exec.dotdrill
Class DotDrillUtil
java.lang.Object
org.apache.drill.exec.dotdrill.DotDrillUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<DotDrillFile>
getDotDrills
(DrillFileSystem fs, org.apache.hadoop.fs.Path root, String name, DotDrillType... types) Return list of DotDrillFile objects whose file name matches the provided name pattern and Drill Dot files types in a given parent Path.static List<DotDrillFile>
getDotDrills
(DrillFileSystem fs, org.apache.hadoop.fs.Path root, DotDrillType... types) Return list of DotDrillFile objects whose file name ends with .drill and matches the provided Drill Dot files types in a given parent Path.
-
Constructor Details
-
DotDrillUtil
public DotDrillUtil()
-
-
Method Details
-
getDotDrills
public static List<DotDrillFile> getDotDrills(DrillFileSystem fs, org.apache.hadoop.fs.Path root, DotDrillType... types) throws IOException Return list of DotDrillFile objects whose file name ends with .drill and matches the provided Drill Dot files types in a given parent Path. Return an empty list if no files matches the given Dot Drill File Types.- Parameters:
fs
- DrillFileSystem instanceroot
- parent Pathtypes
- Dot Drill Types to be matched- Returns:
- List of matched DotDrillFile objects
- Throws:
IOException
-
getDotDrills
public static List<DotDrillFile> getDotDrills(DrillFileSystem fs, org.apache.hadoop.fs.Path root, String name, DotDrillType... types) throws IOException Return list of DotDrillFile objects whose file name matches the provided name pattern and Drill Dot files types in a given parent Path. Return an empty list if no files matches the given file name and Dot Drill File Types.- Parameters:
fs
- DrillFileSystem instanceroot
- parent Pathname
- name/pattern of the filetypes
- Dot Drill Types to be matched- Returns:
- List of matched DotDrillFile objects
- Throws:
IOException
-