Skip to content

Commit

Permalink
Updates to close the JsonReader upon completion of translating the data
Browse files Browse the repository at this point in the history
to IRCT Result Set.
  • Loading branch information
JREastonMarks committed Nov 12, 2015
1 parent 1ab00f3 commit 930a1fe
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ public ActionState runQuery(Query qep) throws ResourceInterfaceException {

actionState.setResults(convertJsonToResultSet(results));
actionState.setComplete(true);
reader.close();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
Expand All @@ -313,6 +314,7 @@ public ActionState runQuery(Query qep) throws ResourceInterfaceException {

actionState.setResults(convertJsonToResultSet(results));
actionState.setComplete(true);
reader.close();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ public List<Path> getPathRelationship(Path path,
counts.getInt(i2b2Path));
}
}
jsonReader.close();
}
return paths;
} catch (KeyManagementException | NoSuchAlgorithmException
Expand Down Expand Up @@ -187,7 +188,7 @@ public ActionState runQuery(Query query) throws ResourceInterfaceException {
} else {
actionState.setResults(convertJsonToPivotResultSetonEncounter(results, false));
}

reader.close();
actionState.setComplete(true);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ public List<Path> getPathRelationship(Path path,
counts.getInt(i2b2Path));
}
}
jsonReader.close();
}
return paths;
} catch (KeyManagementException | NoSuchAlgorithmException
Expand Down

0 comments on commit 930a1fe

Please sign in to comment.