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, wait
completeVisit, visitAggregation, visitGroupBy, visitOrderBy, visitSimpleSelect
public static ESQuery rewrite(ESDriverConfig config, String hql) throws LensException
LensException
public static ESQuery rewrite(ESDriverConfig config, org.apache.hadoop.hive.ql.parse.ASTNode rootQueryNode) throws LensException
LensException
public void visitFrom(String database, String table)
visitFrom
in interface ASTVisitor
public void visitLimit(int limit)
visitLimit
in interface ASTVisitor
public void visitCriteria(ASTCriteriaVisitor visitedSubTree)
visitCriteria
in interface ASTVisitor
public void visitAllCols()
visitAllCols
in interface ASTVisitor
public ESQuery getQuery()
Copyright © 2014–2016 Apache Software Foundation. All rights reserved.