public abstract class ESVisitor extends Object implements ASTVisitor
ASTVisitor.OrderBy| Modifier and Type | Method and Description |
|---|---|
ESQuery |
getQuery() |
static ESQuery |
rewrite(ESDriverConfig config,
org.apache.hadoop.hive.ql.parse.ASTNode rootQueryNode) |
static ESQuery |
rewrite(ESDriverConfig config,
String hql) |
void |
visitAllCols() |
void |
visitCriteria(ASTCriteriaVisitor visitedSubTree) |
void |
visitFrom(String database,
String table) |
void |
visitLimit(int limit) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompleteVisit, visitAggregation, visitGroupBy, visitOrderBy, visitSimpleSelectpublic static ESQuery rewrite(ESDriverConfig config, String hql) throws LensException
LensExceptionpublic static ESQuery rewrite(ESDriverConfig config, org.apache.hadoop.hive.ql.parse.ASTNode rootQueryNode) throws LensException
LensExceptionpublic void visitFrom(String database, String table)
visitFrom in interface ASTVisitorpublic void visitLimit(int limit)
visitLimit in interface ASTVisitorpublic void visitCriteria(ASTCriteriaVisitor visitedSubTree)
visitCriteria in interface ASTVisitorpublic void visitAllCols()
visitAllCols in interface ASTVisitorpublic ESQuery getQuery()
Copyright © 2014–2018 Apache Software Foundation. All rights reserved.