public class BaseRepository extends Object implements Repository
Repository implementation| Constructor and Description |
|---|
BaseRepository(Request request) |
| Modifier and Type | Method and Description |
|---|---|
String |
description()
Returns the description of the repository.
|
org.gcube.data.trees.data.Tree |
get(String id,
List<Set> sets)
Retrieves a
Tree with a given identifier from one of a number of
sets in the repository. |
org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> |
getAllIn(List<Set> sets)
Retrieves all trees in a number of sets of the repository.
|
List<Set> |
getSetsWith(List<String> setIds)
Retrieve sets of the repository with given identifiers
|
String |
metadataFormat() |
String |
name()
Returns the name of the repository.
|
Summary |
summary(List<Set> sets)
Returns a
Summary of a number of sets of the repository. |
String |
url()
Returns the URL of the repository.
|
public String url()
url in interface Repositorypublic String metadataFormat()
public String name()
name in interface Repositorypublic String description()
description in interface Repositorypublic org.gcube.data.trees.data.Tree get(String id, List<Set> sets) throws org.gcube.data.tmf.api.exceptions.UnknownTreeException, Exception
Tree with a given identifier from one of a number of
sets in the repository.get in interface Repositoryid - the identifiersets - the setsorg.gcube.data.tmf.api.exceptions.UnknownTreeException - if there is no tree in the sets with the given identifierException - if the operation fails for any other errorpublic org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> getAllIn(List<Set> sets)
getAllIn in interface Repositorysets - the setspublic Summary summary(List<Set> sets) throws Exception
Summary of a number of sets of the repository.summary in interface Repositorysets - the setsException - if the summary cannot be returnedpublic List<Set> getSetsWith(List<String> setIds)
getSetsWith in interface RepositorysetIds - the identifiersCopyright © 2015. All Rights Reserved.