This project has retired. For details please refer to its Attic page.
SimpleHQLContext (Lens 2.0.1-beta-incubating API)

org.apache.lens.cube.parse
Class SimpleHQLContext

java.lang.Object
  extended by org.apache.lens.cube.parse.SimpleHQLContext
All Implemented Interfaces:
HQLContextInterface
Direct Known Subclasses:
FactHQLContext

public abstract class SimpleHQLContext
extends Object
implements HQLContextInterface

Accepts strings of all expressions and constructs HQL query. Making this as an abstract class because it provides constructors without all expressions being set.


Field Summary
static org.apache.commons.logging.Log LOG
           
 
Method Summary
 String getFrom()
          Get from string
 String getGroupby()
          Get groupby string
 String getHaving()
          Get having string
 Integer getLimit()
          Get limit
 String getOrderby()
          Get orderby string
 String getSelect()
          Get select expression.
 String getWhere()
          Get where string
 String toHQL()
          Get the HQL query.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static org.apache.commons.logging.Log LOG
Method Detail

toHQL

public String toHQL()
             throws org.apache.hadoop.hive.ql.parse.SemanticException
Description copied from interface: HQLContextInterface
Get the HQL query.

Specified by:
toHQL in interface HQLContextInterface
Returns:
query string
Throws:
org.apache.hadoop.hive.ql.parse.SemanticException

getFrom

public String getFrom()
Description copied from interface: HQLContextInterface
Get from string

Specified by:
getFrom in interface HQLContextInterface
Returns:
from

getWhere

public String getWhere()
Description copied from interface: HQLContextInterface
Get where string

Specified by:
getWhere in interface HQLContextInterface
Returns:
where

getSelect

public String getSelect()
Description copied from interface: HQLContextInterface
Get select expression.

Specified by:
getSelect in interface HQLContextInterface
Returns:
select

getGroupby

public String getGroupby()
Description copied from interface: HQLContextInterface
Get groupby string

Specified by:
getGroupby in interface HQLContextInterface
Returns:
groupby

getHaving

public String getHaving()
Description copied from interface: HQLContextInterface
Get having string

Specified by:
getHaving in interface HQLContextInterface
Returns:
having

getOrderby

public String getOrderby()
Description copied from interface: HQLContextInterface
Get orderby string

Specified by:
getOrderby in interface HQLContextInterface
Returns:
orderby

getLimit

public Integer getLimit()
Description copied from interface: HQLContextInterface
Get limit

Specified by:
getLimit in interface HQLContextInterface
Returns:
limit


Copyright © 2014–2015 Apache Software Foundation. All rights reserved.