Package org.openrefine
Class LookupCacheManager
- java.lang.Object
-
- org.openrefine.LookupCacheManager
-
public class LookupCacheManager extends Object
Manage the cache of project's lookups.- Author:
- Lu Liu
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LookupCacheManager.ProjectLookup
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,LookupCacheManager.ProjectLookup>
_lookups
static String
INDEX_COLUMN_NAME
-
Constructor Summary
Constructors Constructor Description LookupCacheManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LookupCacheManager.ProjectLookup
getLookup(long targetProject, String targetColumn)
Computes the ProjectLookup based on combination key, returns the cached one from the HashMap if already computed.
-
-
-
Field Detail
-
INDEX_COLUMN_NAME
public static final String INDEX_COLUMN_NAME
- See Also:
- Constant Field Values
-
_lookups
protected final Map<String,LookupCacheManager.ProjectLookup> _lookups
-
-
Method Detail
-
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- Throws:
LookupException
-
-