Class IcebergSqlExtensionsLexer
java.lang.Object
org.antlr.v4.runtime.Recognizer<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
Modifier and TypeFieldDescriptionstatic final org.antlr.v4.runtime.atn.ATN
protected static final org.antlr.v4.runtime.dfa.DFA[]
static final String
protected static final org.antlr.v4.runtime.atn.PredictionContextCache
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static String[]
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static String[]
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final String[]
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final String[]
Deprecated.static final int
static final int
static final int
static final int
static final org.antlr.v4.runtime.Vocabulary
static final int
static final int
static final int
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
Fields inherited from class org.antlr.v4.runtime.Recognizer
_interp, EOF
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.antlr.v4.runtime.atn.ATN
getATN()
String[]
String[]
String[]
String[]
Deprecated.org.antlr.v4.runtime.Vocabulary
boolean
isHint()
This method will be called when we see '/*' and try to match it as a bracketed comment.boolean
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 Details
-
_decisionToDFA
protected static final org.antlr.v4.runtime.dfa.DFA[] _decisionToDFA -
T__0
public static final int T__0- See Also:
-
T__1
public static final int T__1- See Also:
-
T__2
public static final int T__2- See Also:
-
T__3
public static final int T__3- See Also:
-
T__4
public static final int T__4- See Also:
-
ADD
public static final int ADD- See Also:
-
ALTER
public static final int ALTER- See Also:
-
AS
public static final int AS- See Also:
-
ASC
public static final int ASC- See Also:
-
BRANCH
public static final int BRANCH- See Also:
-
BY
public static final int BY- See Also:
-
CALL
public static final int CALL- See Also:
-
DAYS
public static final int DAYS- See Also:
-
DESC
public static final int DESC- See Also:
-
DISTRIBUTED
public static final int DISTRIBUTED- See Also:
-
DROP
public static final int DROP- See Also:
-
EXISTS
public static final int EXISTS- See Also:
-
FIELD
public static final int FIELD- See Also:
-
FIELDS
public static final int FIELDS- See Also:
-
FIRST
public static final int FIRST- See Also:
-
HOURS
public static final int HOURS- See Also:
-
IF
public static final int IF- See Also:
-
LAST
public static final int LAST- See Also:
-
LOCALLY
public static final int LOCALLY- See Also:
-
MINUTES
public static final int MINUTES- See Also:
-
MONTHS
public static final int MONTHS- See Also:
-
CREATE
public static final int CREATE- See Also:
-
NOT
public static final int NOT- See Also:
-
NULLS
public static final int NULLS- See Also:
-
OF
public static final int OF- See Also:
-
OR
public static final int OR- See Also:
-
ORDERED
public static final int ORDERED- See Also:
-
PARTITION
public static final int PARTITION- See Also:
-
REPLACE
public static final int REPLACE- See Also:
-
RETAIN
public static final int RETAIN- See Also:
-
RETENTION
public static final int RETENTION- See Also:
-
IDENTIFIER_KW
public static final int IDENTIFIER_KW- See Also:
-
SET
public static final int SET- See Also:
-
SNAPSHOT
public static final int SNAPSHOT- See Also:
-
SNAPSHOTS
public static final int SNAPSHOTS- See Also:
-
TABLE
public static final int TABLE- See Also:
-
TAG
public static final int TAG- See Also:
-
UNORDERED
public static final int UNORDERED- See Also:
-
VERSION
public static final int VERSION- See Also:
-
WITH
public static final int WITH- See Also:
-
WRITE
public static final int WRITE- See Also:
-
TRUE
public static final int TRUE- See Also:
-
FALSE
public static final int FALSE- See Also:
-
MAP
public static final int MAP- See Also:
-
ARRAY
public static final int ARRAY- See Also:
-
PLUS
public static final int PLUS- See Also:
-
MINUS
public static final int MINUS- See Also:
-
STRING
public static final int STRING- See Also:
-
BIGINT_LITERAL
public static final int BIGINT_LITERAL- See Also:
-
SMALLINT_LITERAL
public static final int SMALLINT_LITERAL- See Also:
-
TINYINT_LITERAL
public static final int TINYINT_LITERAL- See Also:
-
INTEGER_VALUE
public static final int INTEGER_VALUE- See Also:
-
EXPONENT_VALUE
public static final int EXPONENT_VALUE- See Also:
-
DECIMAL_VALUE
public static final int DECIMAL_VALUE- See Also:
-
FLOAT_LITERAL
public static final int FLOAT_LITERAL- See Also:
-
DOUBLE_LITERAL
public static final int DOUBLE_LITERAL- See Also:
-
BIGDECIMAL_LITERAL
public static final int BIGDECIMAL_LITERAL- See Also:
-
IDENTIFIER
public static final int IDENTIFIER- See Also:
-
BACKQUOTED_IDENTIFIER
public static final int BACKQUOTED_IDENTIFIER- See Also:
-
SIMPLE_COMMENT
public static final int SIMPLE_COMMENT- See Also:
-
BRACKETED_COMMENT
public static final int BRACKETED_COMMENT- See Also:
-
WS
public static final int WS- See Also:
-
UNRECOGNIZED
public static final int UNRECOGNIZED- See Also:
-
channelNames
-
modeNames
-
ruleNames
-
VOCABULARY
public static final org.antlr.v4.runtime.Vocabulary VOCABULARY -
tokenNames
Deprecated.UseVOCABULARY
instead. -
_serializedATN
- See Also:
-
_ATN
public static final org.antlr.v4.runtime.atn.ATN _ATN
-
-
Constructor Details
-
IcebergSqlExtensionsLexer
public IcebergSqlExtensionsLexer(org.antlr.v4.runtime.CharStream input)
-
-
Method Details
-
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<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
- Specified by:
getGrammarFileName
in classorg.antlr.v4.runtime.Recognizer<Integer,
org.antlr.v4.runtime.atn.LexerATNSimulator>
-
getRuleNames
- Specified by:
getRuleNames
in classorg.antlr.v4.runtime.Recognizer<Integer,
org.antlr.v4.runtime.atn.LexerATNSimulator>
-
getSerializedATN
- Overrides:
getSerializedATN
in classorg.antlr.v4.runtime.Recognizer<Integer,
org.antlr.v4.runtime.atn.LexerATNSimulator>
-
getChannelNames
- Overrides:
getChannelNames
in classorg.antlr.v4.runtime.Lexer
-
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<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<Integer,
org.antlr.v4.runtime.atn.LexerATNSimulator>
-
VOCABULARY
instead.