Comments only. No code changes.

This commit is contained in:
Tom Morris 2013-08-05 14:11:06 -04:00
parent 3500f20e47
commit 190a031a8a
2 changed files with 8 additions and 0 deletions

View File

@ -98,6 +98,9 @@ public class Project {
this.history = new History(this);
}
/**
* Free/dispose of project data from memory.
*/
public void dispose() {
for (OverlayModel overlayModel : overlayModels.values()) {
try {
@ -107,6 +110,7 @@ public class Project {
}
}
ProjectManager.singleton.getInterProjectModel().flushJoinsInvolvingProject(this.id);
// The rest of the project should get garbage collected when we return.
}
public Date getLastSave(){

View File

@ -55,6 +55,10 @@ import com.google.refine.RefineServlet;
import com.google.refine.model.Recon;
import com.google.refine.model.ReconCandidate;
/**
* A serializable pool of ReconCandidates indexed by ID.
*
*/
public class Pool implements Jsonizable {
final protected Map<String, Recon> recons = new HashMap<String, Recon>();