|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SourceReader
Returns trees and node from a data source.
Trees and nodes are expected to conform to the 'data type' of the source.
Source.reader(),
Tree,
Pattern,
RemoteIterator| Method Summary | |
|---|---|
org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> |
get(org.gcube.data.trees.patterns.Pattern pattern)
Returns all the trees in the source which match a given pattern, after pruning them with it. |
org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> |
get(org.gcube.data.streams.Stream<String> idStream,
org.gcube.data.trees.patterns.Pattern pattern)
Returns trees in the source with given identifiers, after pruning them with a given pattern. |
org.gcube.data.trees.data.Tree |
get(String id,
org.gcube.data.trees.patterns.Pattern pattern)
Returns a tree in the source with a given identifier, after pruning it with a given pattern. |
org.gcube.data.trees.data.Node |
getNode(String... path)
Returns a tree node in the source from the path of identifiers which connects it to the root of the tree. |
org.gcube.data.streams.Stream<org.gcube.data.trees.data.Node> |
getNodes(org.gcube.data.streams.Stream<org.gcube.data.tm.stubs.Path> pathStream)
Returns tree nodes in the source from the paths of identifiers which connect them to the roots of the trees. |
| Method Detail |
|---|
org.gcube.data.trees.data.Tree get(String id,
org.gcube.data.trees.patterns.Pattern pattern)
throws org.gcube.data.tml.exceptions.UnsupportedOperationException,
org.gcube.data.tml.exceptions.UnsupportedRequestException,
org.gcube.data.tml.exceptions.UnknownTreeException,
org.gcube.data.tml.exceptions.InvalidTreeException,
Exception
id - the identifierpattern - the pattern
org.gcube.data.tml.exceptions.UnknownTreeException - if the source does not contain a tree with the given
identifier
org.gcube.data.tml.exceptions.InvalidTreeException - if the Tree with the the given identifier does not
match the Pattern
org.gcube.data.tml.exceptions.UnsupportedOperationException - if the data source does not support this operation
Exception - if the operation fails for any other error
org.gcube.data.tml.exceptions.UnsupportedRequestException
org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> get(org.gcube.data.streams.Stream<String> idStream,
org.gcube.data.trees.patterns.Pattern pattern)
throws org.gcube.data.tml.exceptions.UnsupportedOperationException,
org.gcube.data.tml.exceptions.UnsupportedRequestException,
Exception
idStream - a stream of tree identifierspattern - the pattern
org.gcube.data.tml.exceptions.UnsupportedOperationException - if the data source does not support this operation
Exception - if the operation fails for an unexpected error
org.gcube.data.tml.exceptions.UnsupportedRequestException
org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> get(org.gcube.data.trees.patterns.Pattern pattern)
throws org.gcube.data.tml.exceptions.UnsupportedOperationException,
org.gcube.data.tml.exceptions.UnsupportedRequestException,
Exception
pattern - the pattern
org.gcube.data.tml.exceptions.UnsupportedOperationException - if the data source does not support this operation
org.gcube.data.tml.exceptions.UnsupportedRequestException - if the data source does not support this request
Exception - if the operation fails for an unexpected error
org.gcube.data.trees.data.Node getNode(String... path)
throws org.gcube.data.tml.exceptions.UnsupportedOperationException,
org.gcube.data.tml.exceptions.UnknownPathException,
org.gcube.data.tml.exceptions.UnsupportedRequestException,
Exception
path - the identifiers
org.gcube.data.tml.exceptions.UnknownPathException - if the path does not lead to a node
org.gcube.data.tml.exceptions.UnsupportedOperationException - if the data source does not support this operation
org.gcube.data.tml.exceptions.UnsupportedRequestException - if the data source does not support this request
Exception - if the operation fails for any other error
org.gcube.data.streams.Stream<org.gcube.data.trees.data.Node> getNodes(org.gcube.data.streams.Stream<org.gcube.data.tm.stubs.Path> pathStream)
throws org.gcube.data.tml.exceptions.UnsupportedOperationException,
Exception
pathStream - a stream of paths to the nodes
org.gcube.data.tml.exceptions.UnsupportedOperationException - if the data source does not support this operation
org.gcube.data.tml.exceptions.UnsupportedRequestException - if the data source does not support this request
Exception - if the operation fails for an unexpected error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||