|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.data.trees.streams.TreeStreams
public class TreeStreams
Result set conversion facilities.
| Nested Class Summary | |
|---|---|
static class |
TreeStreams.NodeParser
A Generator that parses Nodes from their XML serialisation. |
static class |
TreeStreams.NodeSerialiser
A Generator that serialises Nodes to XML. |
static class |
TreeStreams.TreeParser
A Generator that parses Trees from their XML serialisation. |
static class |
TreeStreams.TreeSerialiser
A Generator that serialises Trees to XML. |
| Constructor Summary | |
|---|---|
TreeStreams()
|
|
| Method Summary | ||
|---|---|---|
static org.gcube.data.streams.Stream<Node> |
nodesIn(URI locator)
Converts a Result Set with Nodes into a Stream. |
|
static
|
publishNodesIn(org.gcube.data.streams.Stream<Node> stream)
Publishes a Stream of Nodes as a result set. |
|
static
|
publishTreesIn(org.gcube.data.streams.Stream<Tree> stream)
Publishes a Stream of Trees as a result set. |
|
static org.gcube.data.streams.Stream<Tree> |
treesIn(URI locator)
Converts a Result Set with Trees into a Stream. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TreeStreams()
| Method Detail |
|---|
public static org.gcube.data.streams.Stream<Tree> treesIn(URI locator)
throws Exception
Trees into a Stream.
locator - the Result Set locator
Exception - if the conversion could not be performed
public static org.gcube.data.streams.Stream<Node> nodesIn(URI locator)
throws Exception
Nodes into a Stream.
locator - the Result Set locator
Exception - if the conversion could not be performedpublic static <T> org.gcube.data.streams.dsl.publish.PublishRsWithClause<Tree> publishTreesIn(org.gcube.data.streams.Stream<Tree> stream)
Stream of Trees as a result set.
T - the type of the stream elementsstream - the iterator
public static <T> org.gcube.data.streams.dsl.publish.PublishRsWithClause<Node> publishNodesIn(org.gcube.data.streams.Stream<Node> stream)
Stream of Nodes as a result set.
T - the type of stream elementsstream - the stream
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||