Class BigQueryParser
- java.lang.Object
-
- migratedb.v1.core.internal.parser.BaseParser
-
- migratedb.v1.core.internal.database.bigquery.BigQueryParser
-
- All Implemented Interfaces:
Parser
public class BigQueryParser extends BaseParser
-
-
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 Constructor Description BigQueryParser(Configuration configuration, ParsingContext parsingContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidadjustBlockDepth(ParserContext context, List<Token> tokens, Token keyword, PeekingReader reader)protected BooleandetectCanExecuteInTransaction(String simplifiedStatement, List<Token> keywords)protected chargetAlternativeStringLiteralQuote()protected chargetIdentifierQuote()protected Set<String>getValidKeywords()protected 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, closeAndAddSuppressed, 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 Detail
-
BigQueryParser
public BigQueryParser(Configuration configuration, ParsingContext parsingContext)
-
-
Method Detail
-
getValidKeywords
protected Set<String> getValidKeywords()
- Overrides:
getValidKeywordsin classBaseParser
-
getIdentifierQuote
protected char getIdentifierQuote()
- Overrides:
getIdentifierQuotein classBaseParser
-
getAlternativeStringLiteralQuote
protected char getAlternativeStringLiteralQuote()
- Overrides:
getAlternativeStringLiteralQuotein classBaseParser
-
isSingleLineComment
protected boolean isSingleLineComment(String peek, ParserContext context, int col)
- Overrides:
isSingleLineCommentin classBaseParser
-
detectCanExecuteInTransaction
protected Boolean detectCanExecuteInTransaction(String simplifiedStatement, List<Token> keywords)
- 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
protected boolean shouldAdjustBlockDepth(ParserContext context, List<Token> tokens, Token token)
- Overrides:
shouldAdjustBlockDepthin classBaseParser
-
adjustBlockDepth
protected void adjustBlockDepth(ParserContext context, List<Token> tokens, Token keyword, PeekingReader reader)
- Overrides:
adjustBlockDepthin classBaseParser
-
-