Class DatabaseUtils
java.lang.Object
eu.dnetlib.data.mdstore.manager.utils.DatabaseUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioneu.dnetlib.dhp.schema.mdstore.MDStoreVersioncommitMdStoreVersion(String versionId, long size) longcreateMDStore(String format, String layout, String interpretation, String dsName, String dsId, String apiId) deleteMdStore(String mdId) deleteMdStoreVersion(String versionId, boolean force) eu.dnetlib.dhp.schema.mdstore.MDStoreVersionendReading(String versionId) eu.dnetlib.dhp.schema.mdstore.MDStoreWithInfofindMdStore(String mdId) eu.dnetlib.dhp.schema.mdstore.MDStoreVersionfindVersion(String versionId) Iterable<eu.dnetlib.dhp.schema.mdstore.MDStoreWithInfo>Iterable<eu.dnetlib.dhp.schema.mdstore.MDStoreVersion>listVersions(String mdId) eu.dnetlib.dhp.schema.mdstore.MDStoreVersionprepareMdStoreVersion(String mdId) eu.dnetlib.dhp.schema.mdstore.MDStoreVersionresetReading(String versionId) voidsetHdfsBasePath(String hdfsBasePath) eu.dnetlib.dhp.schema.mdstore.MDStoreVersionstartReading(String mdId)
-
Constructor Details
-
DatabaseUtils
public DatabaseUtils()
-
-
Method Details
-
listMdStores
-
listMdStoreIDs
-
countMdStores
public long countMdStores() -
listVersions
-
listExpiredVersions
-
findMdStore
public eu.dnetlib.dhp.schema.mdstore.MDStoreWithInfo findMdStore(String mdId) throws MDStoreManagerException - Throws:
MDStoreManagerException
-
findVersion
public eu.dnetlib.dhp.schema.mdstore.MDStoreVersion findVersion(String versionId) throws MDStoreManagerException - Throws:
MDStoreManagerException
-
createMDStore
-
deleteMdStore
- Throws:
MDStoreManagerException
-
startReading
public eu.dnetlib.dhp.schema.mdstore.MDStoreVersion startReading(String mdId) throws MDStoreManagerException - Throws:
MDStoreManagerException
-
endReading
public eu.dnetlib.dhp.schema.mdstore.MDStoreVersion endReading(String versionId) throws MDStoreManagerException - Throws:
MDStoreManagerException
-
resetReading
public eu.dnetlib.dhp.schema.mdstore.MDStoreVersion resetReading(String versionId) throws MDStoreManagerException - Throws:
MDStoreManagerException
-
prepareMdStoreVersion
-
commitMdStoreVersion
public eu.dnetlib.dhp.schema.mdstore.MDStoreVersion commitMdStoreVersion(String versionId, long size) throws MDStoreManagerException - Throws:
MDStoreManagerException
-
deleteMdStoreVersion
- Throws:
MDStoreManagerException
-
listValidHdfsPaths
-
getHdfsBasePath
-
setHdfsBasePath
-