public interface TWriter
T-Writer endpoints give access to data sources under a tree-based model.
| Modifier and Type | Method and Description |
|---|---|
org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> |
add(org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> trees)
Adds one or more
Trees to the bound source. |
org.gcube.data.trees.data.Tree |
add(org.gcube.data.trees.data.Tree tree)
Adds a
Tree to the bound source. |
org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> |
add(URI locator)
Adds one or more
Trees to the bound source. |
org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> |
update(org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> deltas)
Updates one or more
Trees in the bound source. |
org.gcube.data.trees.data.Tree |
update(org.gcube.data.trees.data.Tree delta)
Updates a tree in the bound source.
|
org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> |
update(URI locator)
Updates one or more
Trees in the bound source. |
org.gcube.data.trees.data.Tree add(org.gcube.data.trees.data.Tree tree)
throws InvalidTreeException
Tree to the bound source.tree - the treeInvalidTreeException - if the tree does not conform to the data type of the source or if it is invalid for
additionorg.gcube.common.clients.exceptions.DiscoveryException - if the proxy is created in discovery mode but no service endpoints could be discoveredorg.gcube.common.clients.exceptions.UnsupportedOperationException - if the bound source does not support the operationorg.gcube.common.clients.exceptions.UnsupportedRequestException - if the bound source does not support this particular requestorg.gcube.common.clients.exceptions.ServiceException - if the call fails for any other errororg.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> add(org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> trees)
Trees to the bound source.trees - a Stream of TreesStream of added Treesorg.gcube.common.clients.exceptions.DiscoveryException - if, in discovery mode, there is no service for the bound sourceorg.gcube.common.clients.exceptions.UnsupportedOperationException - if the bound source does not support the operationorg.gcube.common.clients.exceptions.UnsupportedRequestException - if the bound source does not support this particular requestorg.gcube.common.clients.exceptions.ServiceException - if the call fails for any other errororg.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> add(URI locator)
Trees to the bound source.locator - a locator to a resultset of TreesStream of added Treesorg.gcube.common.clients.exceptions.DiscoveryException - if, in discovery mode, there is no service for the bound sourceorg.gcube.common.clients.exceptions.UnsupportedOperationException - if the bound source does not support the operationorg.gcube.common.clients.exceptions.UnsupportedRequestException - if the bound source does not support this particular requestorg.gcube.common.clients.exceptions.ServiceException - if the call fails for any other errororg.gcube.data.trees.data.Tree update(org.gcube.data.trees.data.Tree delta)
throws InvalidTreeException,
UnknownTreeException
delta - the delta tree that captures the updateUnknownTreeException - if the delta tree does not identify a tree in the sourceInvalidTreeException - if the delta tree is invalidorg.gcube.common.clients.exceptions.DiscoveryException - if the proxy is created in discovery mode but no service endpoints could be discoveredorg.gcube.common.clients.exceptions.UnsupportedOperationException - if the bound source does not support the operationorg.gcube.common.clients.exceptions.UnsupportedRequestException - if the bound source does not support this particular requestorg.gcube.common.clients.exceptions.ServiceException - if the call fails for any other errororg.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> update(org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> deltas)
Trees in the bound source.deltas - a Stream of delta TreesStream of updated trees Treesorg.gcube.common.clients.exceptions.DiscoveryException - if, in discovery mode, there is no service for the bound sourceorg.gcube.common.clients.exceptions.UnsupportedOperationException - if the bound source does not support the operationorg.gcube.common.clients.exceptions.UnsupportedRequestException - if the bound source does not support this particular requestorg.gcube.common.clients.exceptions.ServiceException - if the call fails for any other errororg.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> update(URI locator)
Trees in the bound source.locator - a locator to a resultset of delta TreesStream of updated Treesorg.gcube.common.clients.exceptions.DiscoveryException - if, in discovery mode, there is no service for the bound sourceorg.gcube.common.clients.exceptions.UnsupportedOperationException - if the bound source does not support the operationorg.gcube.common.clients.exceptions.UnsupportedRequestException - if the bound source does not support this particular requestorg.gcube.common.clients.exceptions.ServiceException - if the call fails for any other errorCopyright © 2016. All Rights Reserved.