public static List<Pair<String,TopKStringPatterns>> readFrequentPattern(Parameters params) throws IOException {
Configuration conf = new Configuration();
FileSystem fs = FileSystem.get(new Path(params.get("output") + "/frequentPatterns").toUri(), conf);
FileStatus[] outputFiles = fs.globStatus(new Path(params.get("output") + "/frequentPatterns/part-*"));
List<Pair<String,TopKStringPatterns>> ret = new ArrayList<Pair<String,TopKStringPatterns>>();
for (FileStatus fileStatus : outputFiles) {
Path path = fileStatus.getPath();
ret.addAll(FPGrowth.readFrequentPattern(fs, conf, path));