Package org.fcrepo.kernel.api.rdf
Class DefaultRdfStream
java.lang.Object
org.fcrepo.kernel.api.utils.WrappingStream<org.apache.jena.graph.Triple>
org.fcrepo.kernel.api.rdf.DefaultRdfStream
- All Implemented Interfaces:
AutoCloseable,BaseStream<org.apache.jena.graph.Triple,,Stream<org.apache.jena.graph.Triple>> Stream<org.apache.jena.graph.Triple>,RdfStream
public class DefaultRdfStream
extends WrappingStream<org.apache.jena.graph.Triple>
implements RdfStream
Implementation of a context-bearing RDF stream
- Since:
- Dec 6, 2015
- Author:
- acoburn
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.stream.Stream
Stream.Builder<T> -
Field Summary
Fields inherited from class org.fcrepo.kernel.api.utils.WrappingStream
stream -
Constructor Summary
ConstructorsConstructorDescriptionDefaultRdfStream(org.apache.jena.graph.Node node) Create an RdfStreamDefaultRdfStream(org.apache.jena.graph.Node node, Stream<org.apache.jena.graph.Triple> stream) Create an RdfStream -
Method Summary
Modifier and TypeMethodDescriptionprotected voidConcatenate a Triple stream to the existing streamdistinct()static RdfStreamfromModel(org.apache.jena.graph.Node node, org.apache.jena.rdf.model.Model model) Create an RdfStream from an existing Model.limit(long maxSize) parallel()skip(long n) sorted()sorted(Comparator<? super org.apache.jena.graph.Triple> comparator) org.apache.jena.graph.Nodetopic()Methods inherited from class org.fcrepo.kernel.api.utils.WrappingStream
allMatch, anyMatch, close, collect, collect, count, findAny, findFirst, flatMap, flatMapToDouble, flatMapToInt, flatMapToLong, forEach, forEachOrdered, isParallel, iterator, map, mapToDouble, mapToInt, mapToLong, max, min, noneMatch, reduce, reduce, reduce, spliterator, toArray, toArrayMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.stream.BaseStream
close, isParallel, iterator, spliteratorMethods inherited from interface java.util.stream.Stream
allMatch, anyMatch, collect, collect, count, dropWhile, findAny, findFirst, flatMap, flatMapToDouble, flatMapToInt, flatMapToLong, forEach, forEachOrdered, map, mapMulti, mapMultiToDouble, mapMultiToInt, mapMultiToLong, mapToDouble, mapToInt, mapToLong, max, min, noneMatch, reduce, reduce, reduce, takeWhile, toArray, toArray, toList
-
Constructor Details
-
DefaultRdfStream
Create an RdfStream- Parameters:
node- the topic of the stream
-
DefaultRdfStream
public DefaultRdfStream(org.apache.jena.graph.Node node, Stream<org.apache.jena.graph.Triple> stream) Create an RdfStream- Parameters:
node- the topic of the streamstream- the incoming stream
-
-
Method Details
-
fromModel
public static RdfStream fromModel(org.apache.jena.graph.Node node, org.apache.jena.rdf.model.Model model) Create an RdfStream from an existing Model.- Parameters:
node- The subject nodemodel- An input Model- Returns:
- a new RdfStream object
-
concat
Concatenate a Triple stream to the existing stream- Parameters:
stream- additional triples
-
topic
-
distinct
-
filter
-
limit
-
peek
-
skip
-
sorted
-
sorted
-
onClose
- Specified by:
onClosein interfaceBaseStream<org.apache.jena.graph.Triple,Stream<org.apache.jena.graph.Triple>>
-
parallel
- Specified by:
parallelin interfaceBaseStream<org.apache.jena.graph.Triple,Stream<org.apache.jena.graph.Triple>>
-
sequential
- Specified by:
sequentialin interfaceBaseStream<org.apache.jena.graph.Triple,Stream<org.apache.jena.graph.Triple>>
-
unordered
- Specified by:
unorderedin interfaceBaseStream<org.apache.jena.graph.Triple,Stream<org.apache.jena.graph.Triple>>
-