Package org.openrefine
Class FacetCountCacheManager
- java.lang.Object
-
- org.openrefine.FacetCountCacheManager
-
public class FacetCountCacheManager extends Object
Holds a cache of facet counts, to be used by the facetCount GREL function.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FacetCountCacheManager.FacetCount
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,FacetCountCacheManager.FacetCount>
_cache
-
Constructor Summary
Constructors Constructor Description FacetCountCacheManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected FacetCountCacheManager.FacetCount
computeFacetCount(Grid grid, String columnName, String expression, long changeId, long projectId)
StringValuesFacetState
getFacetState(long targetProjectId, String expression, String columnName)
-
-
-
Field Detail
-
_cache
protected final Map<String,FacetCountCacheManager.FacetCount> _cache
-
-
Method Detail
-
getFacetState
public StringValuesFacetState getFacetState(long targetProjectId, String expression, String columnName) throws FacetCountException
- Throws:
FacetCountException
-
computeFacetCount
protected FacetCountCacheManager.FacetCount computeFacetCount(Grid grid, String columnName, String expression, long changeId, long projectId) throws FacetCountException
- Throws:
FacetCountException
-
-