9899100101102103104105106107108
// Insert the files File targetList[] = trainDbDir.listFiles(); for (int i = 0; i < targetList.length; i++) { File f = targetList[i]; if (f.getName().endsWith(".avro")) { sd.addDictionaryElt(f, f.getName()); if (i >= maxDictSize) { break; } } }