Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected void setup(Context context) throws IOException,
- InterruptedException {
- super.setup(context);
- localFiles =DistributedCache.getLocalCacheFiles(context.getConfiguration());
- for(Path myfile:localFiles)
- {
- String line=null;
- String nameofFile=myfile.getName();
- File file =new File(nameofFile);
- FileReader fr= new FileReader(file);
- BufferedReader br= new BufferedReader(fr);
- line=br.readLine();
- while(line!=null)
- {
- String[] arr=line.split("t");
- myMap.put(arr[0], arr[1]);
- line=br.readLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement