Package org.openrefine.history
Class HistoryEntryManager
- java.lang.Object
-
- org.openrefine.history.HistoryEntryManager
-
public class HistoryEntryManager extends Object
A utility class to load and save project histories.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classHistoryEntryManager.MetadataUtility class to help with Jackson deserialization
-
Field Summary
Fields Modifier and Type Field Description protected static StringCHANGE_SUBDIRprotected static StringGRID_CACHE_SUBDIRprotected static StringINCOMPLETE_CHANGE_SUBDIRprotected static StringINITIAL_GRID_SUBDIRprotected static StringMETADATA_FILENAME
-
Constructor Summary
Constructors Constructor Description HistoryEntryManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChangeDataStoregetChangeDataStore(Runner runner, File projectDir)The change data store associated with a projectGridCachegetGridCache(Runner runner, File projectDir)The place where to store cached intermediate grids.Historyload(Runner runner, File dir, long projectId)voidsave(History history, File dir, ProgressReporter progressReporter)Saves the history and the initial grid to a directory.
-
-
-
Field Detail
-
INITIAL_GRID_SUBDIR
protected static final String INITIAL_GRID_SUBDIR
- See Also:
- Constant Field Values
-
METADATA_FILENAME
protected static final String METADATA_FILENAME
- See Also:
- Constant Field Values
-
CHANGE_SUBDIR
protected static final String CHANGE_SUBDIR
- See Also:
- Constant Field Values
-
INCOMPLETE_CHANGE_SUBDIR
protected static final String INCOMPLETE_CHANGE_SUBDIR
- See Also:
- Constant Field Values
-
GRID_CACHE_SUBDIR
protected static final String GRID_CACHE_SUBDIR
- See Also:
- Constant Field Values
-
-
Method Detail
-
save
public void save(History history, File dir, ProgressReporter progressReporter) throws IOException
Saves the history and the initial grid to a directory.- Parameters:
dir- the directory where the history should be saved.progressReporter-- Throws:
IOException
-
load
public History load(Runner runner, File dir, long projectId) throws IOException, OperationException
- Throws:
IOExceptionOperationException
-
getChangeDataStore
public ChangeDataStore getChangeDataStore(Runner runner, File projectDir)
The change data store associated with a project- Parameters:
projectDir- the root project directory
-
-