Package com.google.refine.io
Class ProjectMetadataUtilities
java.lang.Object
com.google.refine.io.ProjectMetadataUtilities
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ProjectMetadataprotected static ProjectMetadataloadFromFile(File metadataFile) static ProjectMetadataReconstruct the project metadata on a best efforts basis.static voidsave(ProjectMetadata projectMeta, File projectDir) protected static voidsaveToFile(ProjectMetadata projectMeta, File metadataFile)
-
Constructor Details
-
ProjectMetadataUtilities
public ProjectMetadataUtilities()
-
-
Method Details
-
save
- Throws:
IOException
-
saveToFile
- Throws:
IOException
-
load
-
recover
Reconstruct the project metadata on a best efforts basis. The name is gone, so build something descriptive from the column names. Recover the creation and modification times based on whatever files are available.- Parameters:
projectDir- the project directoryid- the project id- Returns:
-
loadFromFile
- Throws:
Exception
-