Class IcebergSqlExtensionsLexer
- java.lang.Object
-
- org.antlr.v4.runtime.Recognizer<java.lang.Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>
-
- org.antlr.v4.runtime.Lexer
-
- org.apache.spark.sql.catalyst.parser.extensions.IcebergSqlExtensionsLexer
-
- All Implemented Interfaces:
org.antlr.v4.runtime.TokenSource
public class IcebergSqlExtensionsLexer extends org.antlr.v4.runtime.Lexer
-
-
Field Summary
Fields Modifier and Type Field Description static org.antlr.v4.runtime.atn.ATN
_ATN
protected static org.antlr.v4.runtime.dfa.DFA[]
_decisionToDFA
static java.lang.String
_serializedATN
protected static org.antlr.v4.runtime.atn.PredictionContextCache
_sharedContextCache
static int
ADD
static int
ALTER
static int
AS
static int
ASC
static int
BACKQUOTED_IDENTIFIER
static int
BIGDECIMAL_LITERAL
static int
BIGINT_LITERAL
static int
BRACKETED_COMMENT
static int
BY
static int
CALL
static java.lang.String[]
channelNames
static int
DECIMAL_VALUE
static int
DESC
static int
DISTRIBUTED
static int
DOUBLE_LITERAL
static int
DROP
static int
EXPONENT_VALUE
static int
FALSE
static int
FIELD
static int
FIELDS
static int
FIRST
static int
FLOAT_LITERAL
static int
IDENTIFIER
static int
IDENTIFIER_KW
static int
INTEGER_VALUE
static int
LAST
static int
LOCALLY
static int
MAP
static int
MINUS
static java.lang.String[]
modeNames
static int
NULLS
static int
ORDERED
static int
PARTITION
static int
PLUS
static int
REPLACE
static java.lang.String[]
ruleNames
static int
SET
static int
SIMPLE_COMMENT
static int
SMALLINT_LITERAL
static int
STRING
static int
T__0
static int
T__1
static int
T__2
static int
T__3
static int
T__4
static int
TABLE
static int
TINYINT_LITERAL
static java.lang.String[]
tokenNames
Deprecated.UseVOCABULARY
instead.static int
TRUE
static int
UNORDERED
static int
UNRECOGNIZED
static org.antlr.v4.runtime.Vocabulary
VOCABULARY
static int
WITH
static int
WRITE
static int
WS
-
Fields inherited from class org.antlr.v4.runtime.Lexer
_channel, _factory, _hitEOF, _input, _mode, _modeStack, _text, _token, _tokenFactorySourcePair, _tokenStartCharIndex, _tokenStartCharPositionInLine, _tokenStartLine, _type, DEFAULT_MODE, DEFAULT_TOKEN_CHANNEL, HIDDEN, MAX_CHAR_VALUE, MIN_CHAR_VALUE, MORE, SKIP
-
-
Constructor Summary
Constructors Constructor Description IcebergSqlExtensionsLexer(org.antlr.v4.runtime.CharStream input)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.antlr.v4.runtime.atn.ATN
getATN()
java.lang.String[]
getChannelNames()
java.lang.String
getGrammarFileName()
java.lang.String[]
getModeNames()
java.lang.String[]
getRuleNames()
java.lang.String
getSerializedATN()
java.lang.String[]
getTokenNames()
Deprecated.org.antlr.v4.runtime.Vocabulary
getVocabulary()
boolean
isHint()
This method will be called when we see '/*' and try to match it as a bracketed comment.boolean
isValidDecimal()
Verify whether current token is a valid decimal token (which contains dot).boolean
sempred(org.antlr.v4.runtime.RuleContext _localctx, int ruleIndex, int predIndex)
-
Methods inherited from class org.antlr.v4.runtime.Lexer
emit, emit, emitEOF, getAllTokens, getChannel, getCharErrorDisplay, getCharIndex, getCharPositionInLine, getErrorDisplay, getErrorDisplay, getInputStream, getLine, getSourceName, getText, getToken, getTokenFactory, getType, mode, more, nextToken, notifyListeners, popMode, pushMode, recover, recover, reset, setChannel, setCharPositionInLine, setInputStream, setLine, setText, setToken, setTokenFactory, setType, skip
-
Methods inherited from class org.antlr.v4.runtime.Recognizer
action, addErrorListener, getErrorHeader, getErrorListenerDispatch, getErrorListeners, getInterpreter, getParseInfo, getRuleIndexMap, getState, getTokenErrorDisplay, getTokenType, getTokenTypeMap, precpred, removeErrorListener, removeErrorListeners, setInterpreter, setState
-
-
-
-
Field Detail
-
_decisionToDFA
protected static final org.antlr.v4.runtime.dfa.DFA[] _decisionToDFA
-
_sharedContextCache
protected static final org.antlr.v4.runtime.atn.PredictionContextCache _sharedContextCache
-
T__0
public static final int T__0
- See Also:
- Constant Field Values
-
T__1
public static final int T__1
- See Also:
- Constant Field Values
-
T__2
public static final int T__2
- See Also:
- Constant Field Values
-
T__3
public static final int T__3
- See Also:
- Constant Field Values
-
T__4
public static final int T__4
- See Also:
- Constant Field Values
-
ADD
public static final int ADD
- See Also:
- Constant Field Values
-
ALTER
public static final int ALTER
- See Also:
- Constant Field Values
-
AS
public static final int AS
- See Also:
- Constant Field Values
-
ASC
public static final int ASC
- See Also:
- Constant Field Values
-
BY
public static final int BY
- See Also:
- Constant Field Values
-
CALL
public static final int CALL
- See Also:
- Constant Field Values
-
DESC
public static final int DESC
- See Also:
- Constant Field Values
-
DISTRIBUTED
public static final int DISTRIBUTED
- See Also:
- Constant Field Values
-
DROP
public static final int DROP
- See Also:
- Constant Field Values
-
FIELD
public static final int FIELD
- See Also:
- Constant Field Values
-
FIELDS
public static final int FIELDS
- See Also:
- Constant Field Values
-
FIRST
public static final int FIRST
- See Also:
- Constant Field Values
-
LAST
public static final int LAST
- See Also:
- Constant Field Values
-
LOCALLY
public static final int LOCALLY
- See Also:
- Constant Field Values
-
NULLS
public static final int NULLS
- See Also:
- Constant Field Values
-
ORDERED
public static final int ORDERED
- See Also:
- Constant Field Values
-
PARTITION
public static final int PARTITION
- See Also:
- Constant Field Values
-
REPLACE
public static final int REPLACE
- See Also:
- Constant Field Values
-
IDENTIFIER_KW
public static final int IDENTIFIER_KW
- See Also:
- Constant Field Values
-
SET
public static final int SET
- See Also:
- Constant Field Values
-
TABLE
public static final int TABLE
- See Also:
- Constant Field Values
-
UNORDERED
public static final int UNORDERED
- See Also:
- Constant Field Values
-
WITH
public static final int WITH
- See Also:
- Constant Field Values
-
WRITE
public static final int WRITE
- See Also:
- Constant Field Values
-
TRUE
public static final int TRUE
- See Also:
- Constant Field Values
-
FALSE
public static final int FALSE
- See Also:
- Constant Field Values
-
MAP
public static final int MAP
- See Also:
- Constant Field Values
-
PLUS
public static final int PLUS
- See Also:
- Constant Field Values
-
MINUS
public static final int MINUS
- See Also:
- Constant Field Values
-
STRING
public static final int STRING
- See Also:
- Constant Field Values
-
BIGINT_LITERAL
public static final int BIGINT_LITERAL
- See Also:
- Constant Field Values
-
SMALLINT_LITERAL
public static final int SMALLINT_LITERAL
- See Also:
- Constant Field Values
-
TINYINT_LITERAL
public static final int TINYINT_LITERAL
- See Also:
- Constant Field Values
-
INTEGER_VALUE
public static final int INTEGER_VALUE
- See Also:
- Constant Field Values
-
EXPONENT_VALUE
public static final int EXPONENT_VALUE
- See Also:
- Constant Field Values
-
DECIMAL_VALUE
public static final int DECIMAL_VALUE
- See Also:
- Constant Field Values
-
FLOAT_LITERAL
public static final int FLOAT_LITERAL
- See Also:
- Constant Field Values
-
DOUBLE_LITERAL
public static final int DOUBLE_LITERAL
- See Also:
- Constant Field Values
-
BIGDECIMAL_LITERAL
public static final int BIGDECIMAL_LITERAL
- See Also:
- Constant Field Values
-
IDENTIFIER
public static final int IDENTIFIER
- See Also:
- Constant Field Values
-
BACKQUOTED_IDENTIFIER
public static final int BACKQUOTED_IDENTIFIER
- See Also:
- Constant Field Values
-
SIMPLE_COMMENT
public static final int SIMPLE_COMMENT
- See Also:
- Constant Field Values
-
BRACKETED_COMMENT
public static final int BRACKETED_COMMENT
- See Also:
- Constant Field Values
-
WS
public static final int WS
- See Also:
- Constant Field Values
-
UNRECOGNIZED
public static final int UNRECOGNIZED
- See Also:
- Constant Field Values
-
channelNames
public static java.lang.String[] channelNames
-
modeNames
public static java.lang.String[] modeNames
-
ruleNames
public static final java.lang.String[] ruleNames
-
VOCABULARY
public static final org.antlr.v4.runtime.Vocabulary VOCABULARY
-
tokenNames
@Deprecated public static final java.lang.String[] tokenNames
Deprecated.UseVOCABULARY
instead.
-
_serializedATN
public static final java.lang.String _serializedATN
- See Also:
- Constant Field Values
-
_ATN
public static final org.antlr.v4.runtime.atn.ATN _ATN
-
-
Method Detail
-
getTokenNames
@Deprecated public java.lang.String[] getTokenNames()
Deprecated.- Overrides:
getTokenNames
in classorg.antlr.v4.runtime.Lexer
-
getVocabulary
public org.antlr.v4.runtime.Vocabulary getVocabulary()
- Overrides:
getVocabulary
in classorg.antlr.v4.runtime.Recognizer<java.lang.Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>
-
isValidDecimal
public boolean isValidDecimal()
Verify whether current token is a valid decimal token (which contains dot). Returns true if the character that follows the token is not a digit or letter or underscore. For example: For char stream "2.3", "2." is not a valid decimal token, because it is followed by digit '3'. For char stream "2.3_", "2.3" is not a valid decimal token, because it is followed by '_'. For char stream "2.3W", "2.3" is not a valid decimal token, because it is followed by 'W'. For char stream "12.0D 34.E2+0.12 " 12.0D is a valid decimal token because it is followed by a space. 34.E2 is a valid decimal token because it is followed by symbol '+' which is not a digit or letter or underscore.
-
isHint
public boolean isHint()
This method will be called when we see '/*' and try to match it as a bracketed comment. If the next character is '+', it should be parsed as hint later, and we cannot match it as a bracketed comment. Returns true if the next character is '+'.
-
getGrammarFileName
public java.lang.String getGrammarFileName()
- Specified by:
getGrammarFileName
in classorg.antlr.v4.runtime.Recognizer<java.lang.Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>
-
getRuleNames
public java.lang.String[] getRuleNames()
- Specified by:
getRuleNames
in classorg.antlr.v4.runtime.Recognizer<java.lang.Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>
-
getSerializedATN
public java.lang.String getSerializedATN()
- Overrides:
getSerializedATN
in classorg.antlr.v4.runtime.Recognizer<java.lang.Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>
-
getChannelNames
public java.lang.String[] getChannelNames()
- Overrides:
getChannelNames
in classorg.antlr.v4.runtime.Lexer
-
getModeNames
public java.lang.String[] getModeNames()
- Overrides:
getModeNames
in classorg.antlr.v4.runtime.Lexer
-
getATN
public org.antlr.v4.runtime.atn.ATN getATN()
- Specified by:
getATN
in classorg.antlr.v4.runtime.Recognizer<java.lang.Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>
-
sempred
public boolean sempred(org.antlr.v4.runtime.RuleContext _localctx, int ruleIndex, int predIndex)
- Overrides:
sempred
in classorg.antlr.v4.runtime.Recognizer<java.lang.Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>
-
-