Package com.inadco.hbl.client.impl

Examples of com.inadco.hbl.client.impl.PreparedAggregateQueryImpl


                try {
                    Configuration conf = context.getConfiguration();
                    HblQueryClient hblQueryClient = new HblQueryClient(conf);
                    HblInputSplit hblSplit = (HblInputSplit) split;

                    PreparedAggregateQueryImpl paq = (PreparedAggregateQueryImpl) hblQueryClient.createPreparedQuery();
                    paq.prepare(getHblQuery(conf));

                    String cuboidTableName = hblSplit.getCuboidTable();
                    if (cuboidTableName == null)
                        throw new HblException("Invalid cuboid name at backend. Something in MR happened wrong.");

                    int paramNo = getParamNo(conf);
                    for (int i = 0; i < paramNo; i++)
                        paq.setHblParameter(i, getParamNo(conf));

                    ars = paq.execute(hblSplit.getStartGroupingKey(), hblSplit.getEndGroupingKey(), cuboidTableName);

                } catch (HblException exc) {
                    throw new IOException(exc);
                }
View Full Code Here


    public AggregateQuery createQuery() {
        return new AggregateQueryImpl(this, es, tpool);
    }

    public PreparedAggregateQuery createPreparedQuery() {
        return new PreparedAggregateQueryImpl(this, es, tpool);
    }
View Full Code Here

    public List<InputSplit> getSplits(JobContext context) throws IOException, InterruptedException {
        try {
            Configuration conf = context.getConfiguration();
            HblQueryClient hblQueryClient = new HblQueryClient(conf);

            PreparedAggregateQueryImpl paq = (PreparedAggregateQueryImpl) hblQueryClient.createPreparedQuery();
            paq.prepare(getHblQuery(conf));

            int paramNo = getParamNo(conf);
            for (int i = 0; i < paramNo; i++)
                paq.setHblParameter(i, getParamNo(conf));

            List<ScanSpec> scanSpecs = paq.generateScanSpecs(null, null);

            String cuboidTableName = null;
            byte[] startKey = null;
            byte[] endKey = null;
            int groupKeyLen = 0;
View Full Code Here

TOP

Related Classes of com.inadco.hbl.client.impl.PreparedAggregateQueryImpl

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.