Class BigQueryParser
java.lang.Object
migratedb.v1.core.internal.parser.BaseParser
migratedb.v1.core.internal.database.bigquery.BigQueryParser
- All Implemented Interfaces:
Parser
-
Nested Class Summary
Nested classes/interfaces inherited from class migratedb.v1.core.internal.parser.BaseParser
BaseParser.ParserSqlStatementIterator -
Field Summary
Fields inherited from class migratedb.v1.core.internal.parser.BaseParser
LOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidadjustBlockDepth(ParserContext context, List<Token> tokens, Token keyword, PeekingReader reader) protected BooleandetectCanExecuteInTransaction(String simplifiedStatement, List<Token> keywords) protected charprotected charprotected TokenhandleAlternativeStringLiteral(PeekingReader reader, ParserContext context, int pos, int line, int col) protected TokenhandleStringLiteral(PeekingReader reader, ParserContext context, int pos, int line, int col) protected booleanisSingleLineComment(String peek, ParserContext context, int col) protected booleanshouldAdjustBlockDepth(ParserContext context, List<Token> tokens, Token token) Methods inherited from class migratedb.v1.core.internal.parser.BaseParser
adjustDelimiter, createStatement, detectStatementType, doTokensMatchPattern, getAlternativeIdentifierQuote, getClosingIdentifierSymbol, getConfiguration, getDefaultDelimiter, getLastKeywordIndex, getLastKeywordIndex, getNextStatement, getOpeningIdentifierSymbol, getParsingContext, getPreviousToken, getTransactionalDetectionCutoff, handleCommentDirective, handleDelimiter, handleKeyword, isAlternativeStringLiteral, isCommentDirective, isDelimiter, isKeyword, isLetter, lastTokenIs, lastTokenIsOnLine, parse, parse, readIdentifier, readKeyword, replacePlaceholders, resetDelimiter, shouldDiscard, supportsPeekingMultipleLines, tokenAtIndexIs
-
Constructor Details
-
BigQueryParser
-
-
Method Details
-
getValidKeywords
- Overrides:
getValidKeywordsin classBaseParser
-
getIdentifierQuote
protected char getIdentifierQuote()- Overrides:
getIdentifierQuotein classBaseParser
-
getAlternativeStringLiteralQuote
protected char getAlternativeStringLiteralQuote()- Overrides:
getAlternativeStringLiteralQuotein classBaseParser
-
isSingleLineComment
- Overrides:
isSingleLineCommentin classBaseParser
-
detectCanExecuteInTransaction
- Overrides:
detectCanExecuteInTransactionin classBaseParser
-
handleStringLiteral
protected Token handleStringLiteral(PeekingReader reader, ParserContext context, int pos, int line, int col) throws IOException - Overrides:
handleStringLiteralin classBaseParser- Throws:
IOException
-
handleAlternativeStringLiteral
protected Token handleAlternativeStringLiteral(PeekingReader reader, ParserContext context, int pos, int line, int col) throws IOException - Overrides:
handleAlternativeStringLiteralin classBaseParser- Throws:
IOException
-
shouldAdjustBlockDepth
- Overrides:
shouldAdjustBlockDepthin classBaseParser
-
adjustBlockDepth
protected void adjustBlockDepth(ParserContext context, List<Token> tokens, Token keyword, PeekingReader reader) - Overrides:
adjustBlockDepthin classBaseParser
-