public class ExtendedParser extends Object
ExtendedParser is used for parsing some special command which can't supported by CalciteParser, e.g. SET key=value contains special characters in key and value
identifier. It's also good to move some parsring here to avoid introducing new reserved keywords.| Modifier and Type | Field and Description |
|---|---|
static ExtendedParser |
INSTANCE |
| Constructor and Description |
|---|
ExtendedParser() |
| Modifier and Type | Method and Description |
|---|---|
String[] |
getCompletionHints(String statement,
int cursor)
Returns completion hints for the given statement at the given cursor position.
|
Optional<org.apache.flink.table.operations.Operation> |
parse(String statement)
Parse the input statement to the
Operation. |
public static final ExtendedParser INSTANCE
public Optional<org.apache.flink.table.operations.Operation> parse(String statement)
Operation.statement - the command to evaluatepublic String[] getCompletionHints(String statement, int cursor)
statement - Partial or slightly incorrect SQL statementcursor - cursor positionCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.