|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.data.tml.clients.ReaderClient
public class ReaderClient
A TReaderClient implementation.
| Constructor Summary | |
|---|---|
ReaderClient(org.gcube.common.clients.Client<org.gcube.data.tm.stubs.TReaderPortType> client)
|
|
ReaderClient(org.apache.axis.message.addressing.EndpointReferenceType endpoint)
Creates an instance to read from a service at a given endpoint. |
|
ReaderClient(org.gcube.common.clients.gcore.StatefulQuery query)
Creates an instance for reading from a data source discovered with a given query. |
|
ReaderClient(String sourceId)
Creates an instance for reading from a given data source. |
|
| Method Summary | |
|---|---|
org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> |
get()
Returns all the Trees in the bound source. |
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 bound source which match a given Pattern. |
org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> |
get(org.gcube.data.streams.Stream<String> identifiers)
Returns Trees in the bound source with given identifiers. |
org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> |
get(org.gcube.data.streams.Stream<String> identifiers,
org.gcube.data.trees.patterns.Pattern pattern)
Returns Trees in the bound source from their identifiers, after pruning them with a Pattern. |
org.gcube.data.trees.data.Tree |
get(String id)
Returns a Tree in the bound source with a given identifier. |
org.gcube.data.trees.data.Tree |
get(String id,
org.gcube.data.trees.patterns.Pattern pattern)
Returns a Tree in the bound source with a given identifier, after pruning it with a Pattern. |
org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> |
get(URI loc)
Returns Trees in the bound source with given identifiers. |
org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> |
get(URI loc,
org.gcube.data.trees.patterns.Pattern pattern)
Returns Trees in the bound source from their identifiers, after pruning them with a Pattern. |
Element |
getAsElement(String id)
Returns a Tree in the bound source with a given identifier. |
Element |
getAsElement(String id,
org.gcube.data.trees.patterns.Pattern pattern)
Returns a Tree in the bound source with a given identifier, after pruning it with a Pattern. |
org.gcube.data.trees.data.Node |
getNode(String... path)
Returns a Node in the bound source from its path in a tree, i.e. |
Element |
getNodeAsElement(String... ids)
Returns a Node in the bound source from its path in a tree, Returns a Node from its in a tree,
i.e. |
org.gcube.data.streams.Stream<org.gcube.data.trees.data.Node> |
getNodes(org.gcube.data.streams.Stream<org.gcube.data.tm.stubs.Path> paths)
Returns Nodes from their paths in a tree, i.e. |
org.gcube.data.streams.Stream<org.gcube.data.trees.data.Node> |
getNodes(URI paths)
Returns Nodes from their paths in a tree, i.e. |
static org.gcube.data.trees.data.Node |
resolve(URI uri)
Resolves a content URI in a scope and, optionally, with a given security manager. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReaderClient(org.gcube.common.clients.Client<org.gcube.data.tm.stubs.TReaderPortType> client)
public ReaderClient(org.gcube.common.clients.gcore.StatefulQuery query)
query - the query.public ReaderClient(String sourceId)
sourceId - the source identifierpublic ReaderClient(org.apache.axis.message.addressing.EndpointReferenceType endpoint)
endpoint - the service endpoint| Method Detail |
|---|
public static org.gcube.data.trees.data.Node resolve(URI uri)
throws IllegalArgumentException,
URISyntaxException,
org.gcube.common.clients.DiscoveryException,
UnsupportedOperationException,
UnknownPathException,
Exception
uri - the URI
Node identified by the URI
IllegalArgumentException - if the input scope is null
URISyntaxException - if the URI is not a content URI
org.gcube.common.clients.DiscoveryException - if a resolver for the URI cannot be found in the given scope
UnsupportedOperationException - if the target plugin does not support the operation
UnknownPathException - if the URI cannot be resolved to a tree or tree node
Exception - if the operation fails for an unexpected error
public Element getAsElement(String id,
org.gcube.data.trees.patterns.Pattern pattern)
throws UnknownTreeException,
UnsupportedOperationException,
org.gcube.common.clients.DiscoveryException,
Exception
TReaderClientTree in the bound source with a given identifier, after pruning it with a Pattern.
getAsElement in interface TReaderClientid - the tree identifierpattern - the pattern
Element representation of the tree
UnknownTreeException - if the identifier does not identify a tree in the bound source
UnsupportedOperationException - if the bound source does not support the operation
org.gcube.common.clients.DiscoveryException - if, in discovery mode, there is no service for the bound source
UnsupportedRequestException - if the bound source does not support this particular request
Exception - if the operation fails for an unexpected error
public org.gcube.data.trees.data.Tree get(String id)
throws UnknownTreeException,
org.gcube.common.clients.DiscoveryException,
UnsupportedOperationException,
Exception
TReaderClientTree in the bound source with a given identifier.
get in interface TReaderClientid - the tree identifier
UnknownTreeException - if the identifier does not identify a tree in the bound source
org.gcube.common.clients.DiscoveryException - if, in discovery mode, there is no service for the bound source
UnsupportedOperationException - if the bound source does not support the operation
UnsupportedRequestException - if the bound source does not support this particular request
Exception - if the operation fails for an unexpected error
public org.gcube.data.trees.data.Tree get(String id,
org.gcube.data.trees.patterns.Pattern pattern)
throws UnknownTreeException,
org.gcube.common.clients.DiscoveryException,
UnsupportedOperationException,
Exception
TReaderClientTree in the bound source with a given identifier, after pruning it with a Pattern.
get in interface TReaderClientid - the tree identifierpattern - the pattern
Element representation of the tree
UnknownTreeException - if the identifier does not identify a tree in the bound source
org.gcube.common.clients.DiscoveryException - if, in discovery mode, there is no service for the bound source
UnsupportedOperationException - if the bound source does not support the operation
UnsupportedRequestException - if the bound source does not support this particular request
Exception - if the operation fails for an unexpected error
public Element getAsElement(String id)
throws org.gcube.common.clients.DiscoveryException,
UnsupportedOperationException,
UnknownTreeException,
Exception
TReaderClientTree in the bound source with a given identifier.
getAsElement in interface TReaderClientid - the tree identifier
Element representation of the tree
org.gcube.common.clients.DiscoveryException - if, in discovery mode, there is no service for the bound source
UnsupportedOperationException - if the bound source does not support the operation
UnknownTreeException - if the identifier does not identify a tree in the bound source
UnsupportedRequestException - if the bound source does not support this particular request
Exception - if the operation fails for an unexpected error
public org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> get(URI loc,
org.gcube.data.trees.patterns.Pattern pattern)
throws org.gcube.common.clients.DiscoveryException,
UnsupportedOperationException,
Exception
TReaderClientTrees in the bound source from their identifiers, after pruning them with a Pattern.
get in interface TReaderClientloc - a locator to a Resultset of tree identifierspattern - the pattern
Stream of resolved Trees
org.gcube.common.clients.DiscoveryException - if, in discovery mode, there is no service for the bound source
UnsupportedOperationException - if the bound source does not support the operation
UnsupportedRequestException - if the bound source does not support this particular request
Exception - if the operation fails for an unexpected error
public org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> get(org.gcube.data.streams.Stream<String> identifiers,
org.gcube.data.trees.patterns.Pattern pattern)
throws org.gcube.common.clients.DiscoveryException,
UnsupportedOperationException,
Exception
TReaderClientTrees in the bound source from their identifiers, after pruning them with a Pattern.
get in interface TReaderClientidentifiers - a Stream of tree identifierspattern - the pattern
Stream of resolved Trees
org.gcube.common.clients.DiscoveryException - if, in discovery mode, there is no service for the bound source
UnsupportedOperationException - if the bound source does not support the operation
UnsupportedRequestException - if the bound source does not support this particular request
Exception - if the operation fails for an unexpected error
public org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> get(URI loc)
throws org.gcube.common.clients.DiscoveryException,
UnsupportedOperationException,
Exception
TReaderClientTrees in the bound source with given identifiers.
get in interface TReaderClientloc - a locator to a Result Set with tree identifiers
Stream of resolved Trees
org.gcube.common.clients.DiscoveryException - if, in discovery mode, there is no service for the bound source
UnsupportedOperationException - if the bound source does not support the operation
UnsupportedRequestException - if the bound source does not support this particular request
Exception - if the operation fails for an unexpected error
public org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> get(org.gcube.data.streams.Stream<String> identifiers)
throws org.gcube.common.clients.DiscoveryException,
UnsupportedOperationException,
Exception
TReaderClientTrees in the bound source with given identifiers.
get in interface TReaderClientidentifiers - a Stream of tree identifiers
Stream of resolved Trees
org.gcube.common.clients.DiscoveryException - if, in discovery mode, there is no service for the bound source
UnsupportedOperationException - if the bound source does not support the operation
UnsupportedRequestException - if the bound source does not support this particular request
Exception - if the operation fails for an unexpected error
public org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> get(org.gcube.data.trees.patterns.Pattern pattern)
throws org.gcube.common.clients.DiscoveryException,
UnsupportedOperationException,
Exception
TReaderClientTrees in the bound source which match a given Pattern.
get in interface TReaderClientpattern - the pattern
Stream of matching Trees
org.gcube.common.clients.DiscoveryException - if, in discovery mode, there is no service for the bound source
UnsupportedOperationException - if the bound source does not support the operation
UnsupportedRequestException - if the bound source does not support this particular request
Exception - if the operation fails for an unexpected error
public org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> get()
throws org.gcube.common.clients.DiscoveryException,
UnsupportedOperationException,
Exception
TReaderClientTrees in the bound source.
get in interface TReaderClientStream of matching Trees
org.gcube.common.clients.DiscoveryException - if, in discovery mode, there is no service for the bound source
UnsupportedOperationException - if the bound source does not support the operation
UnsupportedRequestException - if the bound source does not support this particular request
Exception - if the operation fails for an unexpected error
public Element getNodeAsElement(String... ids)
throws IllegalArgumentException,
org.gcube.common.clients.DiscoveryException,
UnsupportedOperationException,
UnknownPathException,
Exception
TReaderClientNode in the bound source from its path in a tree, Returns a Node from its in a tree,
i.e. the list of identifiers of the nodes that connect it to the root of the tree.
getNodeAsElement in interface TReaderClientids - the node identifiers.
Element representation of the node
org.gcube.common.clients.DiscoveryException - if, in discovery mode, there is no service for the bound source
UnsupportedOperationException - if the bound source does not support the operation
UnknownPathException - if the identifiers do not identify a node in the bound source
UnsupportedRequestException - if the bound source does not support this particular request
Exception - if the operation fails for an unexpected error
IllegalArgumentException
public org.gcube.data.trees.data.Node getNode(String... path)
throws IllegalArgumentException,
org.gcube.common.clients.DiscoveryException,
UnsupportedOperationException,
UnknownPathException,
Exception
TReaderClientNode in the bound source from its path in a tree, i.e. the list of of one or more identifiers
of the nodes that connect it to the root of the tree.
getNode in interface TReaderClientpath - the node identifiers
org.gcube.common.clients.DiscoveryException - if, in discovery mode, there is no service for the bound source
UnsupportedOperationException - if the bound source does not support the operation
UnknownPathException - if the identifiers do not identify a node in the bound source
UnsupportedRequestException - if the bound source does not support this particular request
Exception - if the operation fails for an unexpected error
IllegalArgumentException
public org.gcube.data.streams.Stream<org.gcube.data.trees.data.Node> getNodes(org.gcube.data.streams.Stream<org.gcube.data.tm.stubs.Path> paths)
throws org.gcube.common.clients.DiscoveryException,
UnsupportedOperationException,
Exception
TReaderClientNodes from their paths in a tree, i.e. lists of identifiers of the nodes that connect them to the
root of a tree.
getNodes in interface TReaderClientpaths - a Stream of Paths
Stream of Nodes
org.gcube.common.clients.DiscoveryException - if, in discovery mode, there is no service for the bound source
UnsupportedOperationException - if the bound source does not support the operation
UnsupportedRequestException - if the bound source does not support this particular request
Exception - if the operation fails for an unexpected error
public org.gcube.data.streams.Stream<org.gcube.data.trees.data.Node> getNodes(URI paths)
throws org.gcube.common.clients.DiscoveryException,
UnsupportedOperationException,
Exception
TReaderClientNodes from their paths in a tree, i.e. lists of identifiers of the nodes that connect them to the
root of a tree.
getNodes in interface TReaderClientpaths - a locator to a ResultSet of paths.
Stream of Nodes
org.gcube.common.clients.DiscoveryException - if, in discovery mode, there is no service for the bound source
UnsupportedOperationException - if the bound source does not support the operation
UnsupportedRequestException - if the bound source does not support this particular 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 | |||||||||