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)
Retrieves a
Tree with a given identifier |
org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> |
getRecords()
Retrieves all trees
|
String |
name()
Returns the name of the repository.
|
Summary |
summary()
Returns a
Summary of a number of sets of the repository. |
public String name()
name in interface Repositorypublic String description()
description in interface Repositorypublic org.gcube.data.trees.data.Tree get(String id) throws org.gcube.data.tmf.api.exceptions.UnknownTreeException, Exception
Tree with a given identifierget in interface Repositoryid - the identifierorg.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> getRecords()
throws org.gcube.data.tmf.api.exceptions.UnknownTreeException,
Exception
RepositorygetRecords in interface Repositoryorg.gcube.data.tmf.api.exceptions.UnknownTreeExceptionExceptionCopyright © 2015. All Rights Reserved.