Class MDStoreController
java.lang.Object
eu.dnetlib.common.controller.AbstractDnetController
eu.dnetlib.data.mdstore.manager.controller.MDStoreController
@RestController
@RequestMapping("/mdstores")
public class MDStoreController
extends AbstractDnetController
-
Nested Class Summary
Nested classes/interfaces inherited from class eu.dnetlib.common.controller.AbstractDnetController
AbstractDnetController.ErrorMessage -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncommitVersion(String versionId) eu.dnetlib.dhp.schema.mdstore.MDStoreVersioncommitVersion(String versionId, long size) eu.dnetlib.dhp.schema.mdstore.MDStoreWithInfocreateMDStore(String format, String layout, String interpretation, String dsName, String dsId, String apiId) deleteVersion(String versionId, boolean force) eu.dnetlib.dhp.schema.mdstore.MDStoreVersionendReading(String versionId) Iterable<eu.dnetlib.dhp.schema.mdstore.MDStoreWithInfo>find()fixHdfsInconsistencies(boolean delete) eu.dnetlib.dhp.schema.mdstore.MDStoreWithInfogetMdStore(String mdId) eu.dnetlib.dhp.schema.mdstore.MDStoreVersiongetVersion(String versionId) info()listMdstoreParquet(String mdId, long limit) listVersionFiles(String versionId) listVersionParquet(String versionId, long limit) Iterable<eu.dnetlib.dhp.schema.mdstore.MDStoreVersion>listVersions(String mdId) eu.dnetlib.dhp.schema.mdstore.MDStoreVersionprepareNewVersion(String mdId) eu.dnetlib.dhp.schema.mdstore.MDStoreVersionresetReading(String versionId) protected voidsetDatabaseUtils(DatabaseUtils databaseUtils) protected voidsetHdfsClient(HdfsClient hdfsClient) eu.dnetlib.dhp.schema.mdstore.MDStoreVersionstartReading(String mdId) Methods inherited from class eu.dnetlib.common.controller.AbstractDnetController
handleException
-
Constructor Details
-
MDStoreController
public MDStoreController()
-
-
Method Details
-
find
-
findIdentifiers
-
getMdStore
@GetMapping("/mdstore/{mdId}") public eu.dnetlib.dhp.schema.mdstore.MDStoreWithInfo getMdStore(@PathVariable String mdId) throws MDStoreManagerException - Throws:
MDStoreManagerException
-
startReading
@GetMapping("/mdstore/{mdId}/startReading") public eu.dnetlib.dhp.schema.mdstore.MDStoreVersion startReading(@PathVariable String mdId) throws MDStoreManagerException - Throws:
MDStoreManagerException
-
createMDStore
@GetMapping("/new/{format}/{layout}/{interpretation}") public eu.dnetlib.dhp.schema.mdstore.MDStoreWithInfo createMDStore(@PathVariable String format, @PathVariable String layout, @PathVariable String interpretation, @RequestParam(required=true) String dsName, @RequestParam(required=true) String dsId, @RequestParam(required=true) String apiId) throws MDStoreManagerException - Throws:
MDStoreManagerException
-
delete
@DeleteMapping("/mdstore/{mdId}") public StatusResponse delete(@PathVariable String mdId) throws MDStoreManagerException - Throws:
MDStoreManagerException
-
listVersions
@GetMapping("/mdstore/{mdId}/versions") public Iterable<eu.dnetlib.dhp.schema.mdstore.MDStoreVersion> listVersions(@PathVariable String mdId) throws MDStoreManagerException - Throws:
MDStoreManagerException
-
prepareNewVersion
@GetMapping("/mdstore/{mdId}/newVersion") public eu.dnetlib.dhp.schema.mdstore.MDStoreVersion prepareNewVersion(@PathVariable String mdId) -
commitVersion
@GetMapping("/version/{versionId}/commit/{size}") public eu.dnetlib.dhp.schema.mdstore.MDStoreVersion commitVersion(@PathVariable String versionId, @PathVariable long size) throws MDStoreManagerException - Throws:
MDStoreManagerException
-
commitVersion
@GetMapping("/version/{versionId}/abort") public StatusResponse commitVersion(@PathVariable String versionId) throws MDStoreManagerException - Throws:
MDStoreManagerException
-
getVersion
@GetMapping("/version/{versionId}") public eu.dnetlib.dhp.schema.mdstore.MDStoreVersion getVersion(@PathVariable String versionId) throws MDStoreManagerException - Throws:
MDStoreManagerException
-
deleteVersion
@DeleteMapping("/version/{versionId}") public StatusResponse deleteVersion(@PathVariable String versionId, @RequestParam(required=false,defaultValue="false") boolean force) throws MDStoreManagerException - Throws:
MDStoreManagerException
-
endReading
@GetMapping("/version/{versionId}/endReading") public eu.dnetlib.dhp.schema.mdstore.MDStoreVersion endReading(@PathVariable String versionId) throws MDStoreManagerException - Throws:
MDStoreManagerException
-
resetReading
@GetMapping("/version/{versionId}/resetReading") public eu.dnetlib.dhp.schema.mdstore.MDStoreVersion resetReading(@PathVariable String versionId) throws MDStoreManagerException - Throws:
MDStoreManagerException
-
deleteExpiredVersions
-
fixHdfsInconsistencies
@GetMapping("/hdfs/inconsistencies") public Set<String> fixHdfsInconsistencies(@RequestParam(required=false,defaultValue="false") boolean delete) throws MDStoreManagerException - Throws:
MDStoreManagerException
-
info
-
listVersionFiles
@GetMapping("/version/{versionId}/parquet/files") public Set<String> listVersionFiles(@PathVariable String versionId) throws MDStoreManagerException - Throws:
MDStoreManagerException
-
listVersionParquet
@GetMapping("/version/{versionId}/parquet/content/{limit}") public List<Map<String,String>> listVersionParquet(@PathVariable String versionId, @PathVariable long limit) throws MDStoreManagerException - Throws:
MDStoreManagerException
-
listMdstoreParquet
@GetMapping("/mdstore/{mdId}/parquet/content/{limit}") public List<Map<String,String>> listMdstoreParquet(@PathVariable String mdId, @PathVariable long limit) throws MDStoreManagerException - Throws:
MDStoreManagerException
-
setDatabaseUtils
-
setHdfsClient
-