org.eigenbase.sql.advise
Class SqlSimpleParser.Query
java.lang.Object
org.eigenbase.sql.advise.SqlSimpleParser.Token
org.eigenbase.sql.advise.SqlSimpleParser.Query
- Enclosing class:
- SqlSimpleParser
static class SqlSimpleParser.Query
- extends SqlSimpleParser.Token
tokenList
private final List<SqlSimpleParser.Token> tokenList
SqlSimpleParser.Query
public SqlSimpleParser.Query(List<SqlSimpleParser.Token> tokenList)
unparse
public void unparse(StringBuilder buf)
- Overrides:
unparse
in class SqlSimpleParser.Token
simplifyList
public static void simplifyList(List<SqlSimpleParser.Token> list,
String hintToken)
simplify
public SqlSimpleParser.Query simplify(String hintToken)
purgeSelectListExcept
private void purgeSelectListExcept(String hintToken)
purgeSelect
private void purgeSelect()
purgeSelectExprsKeepAliases
private void purgeSelectExprsKeepAliases()
purgeFromExcept
private void purgeFromExcept(String hintToken)
purgeWhere
private void purgeWhere()
purgeGroupByHaving
private void purgeGroupByHaving()
purgeOrderBy
private void purgeOrderBy()
findClause
private List<SqlSimpleParser.Token> findClause(SqlSimpleParser.TokenType keyword)
contains
private boolean contains(String hintToken)