public class ExtendedParser extends Object
ExtendedParser
is used for parsing some special command which can't supported by CalciteParser
, e.g. SET key=value
may contain special characters in key and value. It's
also a good idea to move some parsing strategy 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<Operation> |
parse(String statement)
Parse the input statement to the
Operation . |
public static final ExtendedParser INSTANCE
public Optional<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–2024 The Apache Software Foundation. All rights reserved.