Enum DotDrillType

java.lang.Object
java.lang.Enum<DotDrillType>
org.apache.drill.exec.dotdrill.DotDrillType
All Implemented Interfaces:
Serializable, Comparable<DotDrillType>

public enum DotDrillType extends Enum<DotDrillType>
  • Enum Constant Details

  • Field Details

    • DOT_DRILL_GLOB

      public static final String DOT_DRILL_GLOB
  • Method Details

    • values

      public static DotDrillType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static DotDrillType valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • matches

      public boolean matches(org.apache.hadoop.fs.FileStatus status)
    • getPath

      public org.apache.hadoop.fs.Path getPath(String parentDir, String name)
      For a given parent directory and base file name return complete path including file type specific extensions.
      Parameters:
      parentDir - Directory where the DotDrillFile is stored.
      name - Base file name of the DotDrillFile.
      Returns:
      Path including the extensions that can be used to read/write in filesystem.
    • getEnding

      public String getEnding()
      Return extension string of file type represented by this object.
      Returns:
      File extension.
    • getDrillFileGlobPattern

      public static String getDrillFileGlobPattern(DotDrillType[] types)
      Return Glob pattern for given Dot Drill Types.
      Parameters:
      types -
      Returns:
      Glob pattern representing For Dot Drill Types provided as types param