public class TreeStreams extends Object
| Modifier and Type | Class and Description |
|---|---|
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 and Description |
|---|
TreeStreams() |
| Modifier and Type | Method and Description |
|---|---|
static org.gcube.data.streams.Stream<Node> |
nodesIn(URI locator)
Converts a Result Set with
Nodes into a Stream. |
static <T> org.gcube.data.streams.dsl.publish.PublishRsWithClause<Node> |
publishNodesIn(org.gcube.data.streams.Stream<Node> stream)
Publishes a
Stream of Nodes as a result set. |
static <T> org.gcube.data.streams.dsl.publish.PublishRsWithClause<Tree> |
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. |
public static org.gcube.data.streams.Stream<Tree> treesIn(URI locator) throws Exception
Trees into a Stream.locator - the Result Set locatorException - if the conversion could not be performedpublic static org.gcube.data.streams.Stream<Node> nodesIn(URI locator) throws Exception
Nodes into a Stream.locator - the Result Set locatorException - 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 iteratorCopyright © 2018. All Rights Reserved.