Package org.apache.hadoop.hbase.hbql.statement.select

Examples of org.apache.hadoop.hbase.hbql.statement.select.SelectElement


        this.aggregateQuery = this.checkIfAggregateQuery();
    }

    private boolean checkIfAggregateQuery() throws HBqlException {
        final SelectElement firstElement = this.getSelectElementList().get(0);
        final boolean firstIsAggregate = firstElement.isAnAggregateElement();
        for (final SelectElement selectElement : this.getSelectElementList()) {
            if (selectElement.isAnAggregateElement() != firstIsAggregate)
                throw new HBqlException("Cannot mix aggregate and non-aggregate select elements");
        }
        return firstIsAggregate;
View Full Code Here


    public String asString() {
        return this.getSelectStatement().asString();
    }

    public Object getValue(final HConnectionImpl conn, final int i) throws HBqlException {
        final SelectElement element = this.getSelectStatement().getSelectElementList().get(i);
        final String name = element.getElementName();
        return this.getCurrentRecord().getCurrentValue(name);
    }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hbase.hbql.statement.select.SelectElement

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.