Package org.apache.drill.exec.store
Enum ColumnExplorer.ImplicitFileColumns
java.lang.Object
java.lang.Enum<ColumnExplorer.ImplicitFileColumns>
org.apache.drill.exec.store.ColumnExplorer.ImplicitFileColumns
- All Implemented Interfaces:
Serializable
,Comparable<ColumnExplorer.ImplicitFileColumns>
,ColumnExplorer.ImplicitFileColumn
- Enclosing class:
- ColumnExplorer
public static enum ColumnExplorer.ImplicitFileColumns
extends Enum<ColumnExplorer.ImplicitFileColumns>
implements ColumnExplorer.ImplicitFileColumn
Columns that give information from where file data comes from.
Columns are implicit, so should be called explicitly in query
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract String
getValue
(org.apache.hadoop.fs.Path path) Using file path calculates value for each implicit file columnThe name of the session/system option that gives the effective name of this implicit column when parsing columns by name.The name of the column property that indicates the implicit column type when using a provided schema.Returns the enum constant of this type with the specified name.static ColumnExplorer.ImplicitFileColumns[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface org.apache.drill.exec.store.ColumnExplorer.ImplicitFileColumn
isOptional
-
Enum Constant Details
-
FQN
Fully qualified name, contains full path to file and file name -
FILEPATH
Full path to file without file name -
FILENAME
File name with extension without path -
SUFFIX
File suffix (without dot at the beginning)
-
-
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
-
optionName
The name of the session/system option that gives the effective name of this implicit column when parsing columns by name.- Specified by:
optionName
in interfaceColumnExplorer.ImplicitFileColumn
- Returns:
- option name for obtaining implicit column name.
-
propertyValue
The name of the column property that indicates the implicit column type when using a provided schema. The property value lives in a name space separate from column names and so is fixed: it remains the same independent of system/session options. -
getValue
Using file path calculates value for each implicit file column
-