|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gcube.contentmanagement.contentmanager.plugin.delegates.ManagerDelegate
org.gcube.contentmanagement.contentmanager.plugin.delegates.ReadDelegate
public abstract class ReadDelegate
The delegate of a ReadManager
.
Constructor Summary | |
---|---|
ReadDelegate()
|
Method Summary | |
---|---|
abstract RemoteIterator<GDoc> |
get(Predicate projection)
Returns all the gDoc documents, requesting the application of a projection over each of them. |
RemoteIterator<GDoc> |
get(RSIterator<java.lang.String> iterator,
Predicate projection)
Returns zero or more gDoc documents from their identifiers,
requesting the preliminary application of a filter and a projection over each of them. |
abstract GDoc |
get(java.lang.String id,
Predicate projection)
Returns a gDoc document from its identifier,
requesting the preliminary application of a filter and a projection over it. |
Node |
getNode(java.lang.String... path)
Returns a gDoc document node from the path of identifiers which connects it to the root. |
RemoteIterator<Node> |
getNodes(RSIterator<Path> iterator)
Returns the document nodes identified by corresponding Path s into documents of the target collection. |
Methods inherited from class org.gcube.contentmanagement.contentmanager.plugin.delegates.ManagerDelegate |
---|
getCollection, setCollection |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReadDelegate()
Method Detail |
---|
public abstract GDoc get(java.lang.String id, Predicate projection) throws UnknownDocumentException, GCUBEException, java.lang.Exception
gDoc
document from its identifier,
requesting the preliminary application of a filter and a projection over it.
id
- the identifier.projection
- the projection predicate, or null
if no projection is required.filter
- the filter predicate, or null
if no filter is required..
UnknownDocumentException
- if the document is unknown.
java.lang.Exception
- if the document could not be returned for a local error.
GCUBEException
- if the document could not be returned for a remote error.public RemoteIterator<GDoc> get(RSIterator<java.lang.String> iterator, Predicate projection) throws java.lang.Exception, GCUBEException
gDoc
documents from their identifiers,
requesting the preliminary application of a filter and a projection over each of them.
a
- remote iterator over document identifiers.projection
- the projection predicate.filter
- the filter predicate.
java.lang.Exception
- if the locator to the remote resultset could not be returned for a local error.
GCUBEException
- if the locator to the remote resultset could not be returned for a remote error.public RemoteIterator<Node> getNodes(RSIterator<Path> iterator) throws java.lang.Exception, GCUBEException
Path
s into documents of the target collection.
a
- locator to a ResultSet of paths.
GCUBEException
- if the document nodes could not be returned for a generic remote error.
java.lang.Exception
- if the document nodes could not be returned for a generic local error.public Node getNode(java.lang.String... path) throws UnknownPathFault, java.lang.Exception
gDoc
document node from the path of identifiers which connects it to the root.
ids
- the identifiers that form of the path.
UnknownPathException
- if the path does not lead to a document node.
java.lang.Exception
- if the document node could not be returned.
UnknownPathFault
public abstract RemoteIterator<GDoc> get(Predicate projection) throws java.lang.Exception, GCUBEException
gDoc
documents, requesting the application of a projection over each of them.
projection
- the projection predicate.
java.lang.Exception
- if the locator to the remote resultset could not be returned for a local error.
GCUBEException
- if the locator to the remote resultset could not be returned for a remote error.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |