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_ATNprotected static org.antlr.v4.runtime.dfa.DFA[]_decisionToDFAstatic java.lang.String_serializedATNprotected static org.antlr.v4.runtime.atn.PredictionContextCache_sharedContextCachestatic intADDstatic intALTERstatic intARRAYstatic intASstatic intASCstatic intBACKQUOTED_IDENTIFIERstatic intBIGDECIMAL_LITERALstatic intBIGINT_LITERALstatic intBRACKETED_COMMENTstatic intBRANCHstatic intBYstatic intCALLstatic java.lang.String[]channelNamesstatic intCREATEstatic intDAYSstatic intDECIMAL_VALUEstatic intDESCstatic intDISTRIBUTEDstatic intDOUBLE_LITERALstatic intDROPstatic intEXISTSstatic intEXPONENT_VALUEstatic intFALSEstatic intFIELDstatic intFIELDSstatic intFIRSTstatic intFLOAT_LITERALstatic intHOURSstatic intIDENTIFIERstatic intIDENTIFIER_KWstatic intIFstatic intINTEGER_VALUEstatic intLASTstatic intLOCALLYstatic intMAPstatic intMINUSstatic intMINUTESstatic java.lang.String[]modeNamesstatic intMONTHSstatic intNOTstatic intNULLSstatic intOFstatic intORstatic intORDEREDstatic intPARTITIONstatic intPLUSstatic intREPLACEstatic intRETAINstatic intRETENTIONstatic java.lang.String[]ruleNamesstatic intSETstatic intSIMPLE_COMMENTstatic intSMALLINT_LITERALstatic intSNAPSHOTstatic intSNAPSHOTSstatic intSTRINGstatic intT__0static intT__1static intT__2static intT__3static intT__4static intTABLEstatic intTAGstatic intTINYINT_LITERALstatic java.lang.String[]tokenNamesDeprecated.UseVOCABULARYinstead.static intTRUEstatic intUNORDEREDstatic intUNRECOGNIZEDstatic intVERSIONstatic org.antlr.v4.runtime.VocabularyVOCABULARYstatic intWITHstatic intWRITEstatic intWS-
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.ATNgetATN()java.lang.String[]getChannelNames()java.lang.StringgetGrammarFileName()java.lang.String[]getModeNames()java.lang.String[]getRuleNames()java.lang.StringgetSerializedATN()java.lang.String[]getTokenNames()Deprecated.org.antlr.v4.runtime.VocabularygetVocabulary()booleanisHint()This method will be called when we see '/*' and try to match it as a bracketed comment.booleanisValidDecimal()Verify whether current token is a valid decimal token (which contains dot).booleansempred(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
-
BRANCH
public static final int BRANCH
- 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
-
DAYS
public static final int DAYS
- 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
-
EXISTS
public static final int EXISTS
- 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
-
HOURS
public static final int HOURS
- See Also:
- Constant Field Values
-
IF
public static final int IF
- 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
-
MINUTES
public static final int MINUTES
- See Also:
- Constant Field Values
-
MONTHS
public static final int MONTHS
- See Also:
- Constant Field Values
-
CREATE
public static final int CREATE
- See Also:
- Constant Field Values
-
NOT
public static final int NOT
- See Also:
- Constant Field Values
-
NULLS
public static final int NULLS
- See Also:
- Constant Field Values
-
OF
public static final int OF
- See Also:
- Constant Field Values
-
OR
public static final int OR
- 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
-
RETAIN
public static final int RETAIN
- See Also:
- Constant Field Values
-
RETENTION
public static final int RETENTION
- 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
-
SNAPSHOT
public static final int SNAPSHOT
- See Also:
- Constant Field Values
-
SNAPSHOTS
public static final int SNAPSHOTS
- See Also:
- Constant Field Values
-
TABLE
public static final int TABLE
- See Also:
- Constant Field Values
-
TAG
public static final int TAG
- See Also:
- Constant Field Values
-
UNORDERED
public static final int UNORDERED
- See Also:
- Constant Field Values
-
VERSION
public static final int VERSION
- 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
-
ARRAY
public static final int ARRAY
- 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.UseVOCABULARYinstead.
-
_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:
getTokenNamesin classorg.antlr.v4.runtime.Lexer
-
getVocabulary
public org.antlr.v4.runtime.Vocabulary getVocabulary()
- Overrides:
getVocabularyin 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:
getGrammarFileNamein classorg.antlr.v4.runtime.Recognizer<java.lang.Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>
-
getRuleNames
public java.lang.String[] getRuleNames()
- Specified by:
getRuleNamesin classorg.antlr.v4.runtime.Recognizer<java.lang.Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>
-
getSerializedATN
public java.lang.String getSerializedATN()
- Overrides:
getSerializedATNin classorg.antlr.v4.runtime.Recognizer<java.lang.Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>
-
getChannelNames
public java.lang.String[] getChannelNames()
- Overrides:
getChannelNamesin classorg.antlr.v4.runtime.Lexer
-
getModeNames
public java.lang.String[] getModeNames()
- Overrides:
getModeNamesin classorg.antlr.v4.runtime.Lexer
-
getATN
public org.antlr.v4.runtime.atn.ATN getATN()
- Specified by:
getATNin 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:
sempredin classorg.antlr.v4.runtime.Recognizer<java.lang.Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>
-
-