Package com.inadco.hbl.client.impl.scanner

Examples of com.inadco.hbl.client.impl.scanner.FilteringScanSpecScanner


            Callable<FilteringScanSpecScanner> callable = new Callable<FilteringScanSpecScanner>() {

                @Override
                public FilteringScanSpecScanner call() throws IOException, HblException {
                    return new FilteringScanSpecScanner(ss, tpool, startSplitKey, endSplitKey, enforcedCuboidTableName);
                }
            };

            filteringScannerConstructors.add(es.submit(callable));
        }
        List<FilteringScanSpecScanner> filteringScanners = new ArrayList<FilteringScanSpecScanner>();

        // launch first scanner
        // in the context of this thread

        IOException lastExc = null;
        try {
            FilteringScanSpecScanner fscanner =
                new FilteringScanSpecScanner(firstSpec, tpool, startSplitKey, endSplitKey, enforcedCuboidTableName);
            closeables.addFirst(fscanner);
            filteringScanners.add(fscanner);
        } catch (IOException exc) {
            lastExc = exc;
            s_log.error(lastExc);
        }

        // wait for all other parallel dudes to complete.
        for (Future<FilteringScanSpecScanner> fsss : filteringScannerConstructors) {
            try {
                FilteringScanSpecScanner fscanner = fsss.get();
                closeables.addFirst(fscanner);
                filteringScanners.add(fscanner);
            } catch (ExecutionException exc) {
                Throwable thr = exc.getCause();
                if (thr instanceof IOException)
View Full Code Here

TOP

Related Classes of com.inadco.hbl.client.impl.scanner.FilteringScanSpecScanner

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.