public class SelectStatement extends Object implements FilterableStatement
Modifier and Type | Field and Description |
---|---|
static SelectStatement |
COUNT_ONE |
static SelectStatement |
SELECT_ONE |
Modifier | Constructor and Description |
---|---|
protected |
SelectStatement(TableNode from,
HintNode hint,
boolean isDistinct,
List<AliasedNode> select,
ParseNode where,
List<ParseNode> groupBy,
ParseNode having,
List<OrderByNode> orderBy,
LimitNode limit,
int bindCount,
boolean isAggregate,
boolean hasSequence,
List<SelectStatement> selects,
Map<String,UDFParseNode> udfParseNodes) |
public static final SelectStatement SELECT_ONE
public static final SelectStatement COUNT_ONE
protected SelectStatement(TableNode from, HintNode hint, boolean isDistinct, List<AliasedNode> select, ParseNode where, List<ParseNode> groupBy, ParseNode having, List<OrderByNode> orderBy, LimitNode limit, int bindCount, boolean isAggregate, boolean hasSequence, List<SelectStatement> selects, Map<String,UDFParseNode> udfParseNodes)
public static SelectStatement create(SelectStatement select, HintNode hint)
public SelectStatement combine(ParseNode where)
public static SelectStatement create(SelectStatement select, List<AliasedNode> selects)
public static SelectStatement create(SelectStatement select, List<OrderByNode> orderBy, LimitNode limit, boolean isAggregate)
public void toSQL(ColumnResolver resolver, StringBuilder buf)
public boolean isDistinct()
isDistinct
in interface FilterableStatement
public LimitNode getLimit()
getLimit
in interface FilterableStatement
public int getBindCount()
getBindCount
in interface BindableStatement
public TableNode getFrom()
public HintNode getHint()
getHint
in interface FilterableStatement
public List<AliasedNode> getSelect()
public ParseNode getWhere()
getWhere
in interface FilterableStatement
public List<ParseNode> getGroupBy()
public ParseNode getHaving()
public List<OrderByNode> getOrderBy()
getOrderBy
in interface FilterableStatement
public boolean isAggregate()
isAggregate
in interface FilterableStatement
public boolean hasSequence()
public PhoenixStatement.Operation getOperation()
getOperation
in interface BindableStatement
public boolean isJoin()
public SelectStatement getInnerSelectStatement()
public boolean isUnion()
public List<SelectStatement> getSelects()
public boolean hasWildcard()
public Map<String,UDFParseNode> getUdfParseNodes()
Copyright © 2015 Apache Software Foundation. All Rights Reserved.