Package org.apache.drill.exec.dotdrill
Enum DotDrillType
- All Implemented Interfaces:
Serializable
,Comparable<DotDrillType>
-
Enum Constant Summary
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getDrillFileGlobPattern
(DotDrillType[] types) Return Glob pattern for given Dot Drill Types.Return extension string of file type represented by this object.org.apache.hadoop.fs.Path
For a given parent directory and base file name return complete path including file type specific extensions.boolean
matches
(org.apache.hadoop.fs.FileStatus status) static DotDrillType
Returns the enum constant of this type with the specified name.static DotDrillType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
VIEW
-
STATS
-
-
Field Details
-
DOT_DRILL_GLOB
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
matches
public boolean matches(org.apache.hadoop.fs.FileStatus status) -
getPath
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
Return extension string of file type represented by this object.- Returns:
- File extension.
-
getDrillFileGlobPattern
Return Glob pattern for given Dot Drill Types.- Parameters:
types
-- Returns:
- Glob pattern representing For Dot Drill Types provided as types param
-