| Package | Description |
|---|---|
| io.cdap.wrangler.api |
APIs for working with wrangler.
|
| io.cdap.wrangler.api.parser |
APIs for parsing directives.
|
| Modifier and Type | Method and Description |
|---|---|
TokenType |
Arguments.type(String name)
Each token is defined as one of the types defined in the class
TokenType. |
| Modifier and Type | Method and Description |
|---|---|
TokenType |
ColumnName.type() |
TokenType |
Text.type() |
TokenType |
Bool.type()
Returns the type of this
Bool object as a TokenType
enum. |
TokenType |
Token.type()
Returns the
TokenType of the object represented by the
implementation of this interface. |
TokenType |
Numeric.type() |
TokenType |
BoolList.type()
Returns the type of this
BoolList object as a TokenType
enum. |
TokenType |
TokenDefinition.type() |
TokenType |
Identifier.type()
Returns the type of this
Identifier object as a TokenType
enum. |
TokenType |
DirectiveName.type() |
TokenType |
Properties.type() |
TokenType |
NumericList.type() |
TokenType |
Ranges.type() |
TokenType |
TextList.type() |
TokenType |
ColumnNameList.type() |
TokenType |
Expression.type() |
static TokenType |
TokenType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TokenType[] |
TokenType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
void |
UsageDefinition.Builder.define(String name,
TokenType type)
This method provides a way to set the name and the type of token, while
defaulting the label to 'null' and setting the optional to FALSE.
|
void |
UsageDefinition.Builder.define(String name,
TokenType type,
boolean optional)
Method allows users to specify a field as optional in combination to the
name of the token and the type of token.
|
void |
UsageDefinition.Builder.define(String name,
TokenType type,
String label)
Allows users to define a token with a name, type of the token and additional optional
for the label that is used during creation of the usage for the directive.
|
void |
UsageDefinition.Builder.define(String name,
TokenType type,
String label,
boolean optional)
Method allows users to specify a field as optional in combination to the
name of the token, the type of token and also the ability to specify a label
for the usage.
|
| Constructor and Description |
|---|
TokenDefinition(String name,
TokenType type,
String label,
int ordinal,
boolean optional) |
Copyright © 2023 CDAP Licensed under the Apache License, Version 2.0.