Class DotDrillUtil

java.lang.Object
org.apache.drill.exec.dotdrill.DotDrillUtil

public class DotDrillUtil extends Object
  • 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 instance
      root - parent Path
      types - 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 instance
      root - parent Path
      name - name/pattern of the file
      types - Dot Drill Types to be matched
      Returns:
      List of matched DotDrillFile objects
      Throws:
      IOException