Package com.google.refine
Class LookupCacheManager
java.lang.Object
com.google.refine.LookupCacheManager
Manage the cache of project's lookups.
- Author:
- Lu Liu
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidflushLookupsInvolvingProject(long projectID) voidflushLookupsInvolvingProjectColumn(long projectID, String columnName) Computes the ProjectLookup based on combination key, returns the cached one from the HashMap if already computed.
-
Field Details
-
_lookups
-
-
Constructor Details
-
LookupCacheManager
public LookupCacheManager()
-
-
Method Details
-
getLookup
public LookupCacheManager.ProjectLookup getLookup(long targetProject, String targetColumn) throws LookupException Computes the ProjectLookup based on combination key, returns the cached one from the HashMap if already computed.- Parameters:
targetProject- the project to look uptargetColumn- the column of the target project to look up- Returns:
- a
LookupCacheManager.ProjectLookupinstance of the lookup result - Throws:
LookupException
-
flushLookupsInvolvingProject
public void flushLookupsInvolvingProject(long projectID) -
flushLookupsInvolvingProjectColumn
-
computeLookup
- Throws:
LookupException
-