Package hitune.analysis.mapreduce.processor.FileFilter

Examples of hitune.analysis.mapreduce.processor.FileFilter.FileFilter


            String pattern = conf.get(AnalysisProcessorConfiguration.filefilter_pattern, null);
            StringBuilder str = new StringBuilder();

            for(String path : paths){
                log.debug("path to scan: " + path);
                FileFilter filter = null;
                try {
                    filter = (FileFilter)Class.forName(filterclass).getConstructor(new Class[] { Configuration.class, String.class }).newInstance(new Object[] {conf, pattern});

                    if(str.length()!=0){
                        str.append(FileFilter.SEPARATOR);
                    }
                    str.append(filter.filter(new Path(path)));

                   
                } catch (IllegalArgumentException e) {
                    // TODO Auto-generated catch block
                    e.printStackTrace();
View Full Code Here

TOP

Related Classes of hitune.analysis.mapreduce.processor.FileFilter.FileFilter

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.