java.lang.Object
org.apache.jena.riot.system.StreamRDFWrapper
org.apache.jena.fuseki.system.StreamRDFLimited
- All Implemented Interfaces:
org.apache.jena.riot.system.StreamRDF
public class StreamRDFLimited
extends org.apache.jena.riot.system.StreamRDFWrapper
Limit triples/quads and stop passing through after a limit is reached.
-
Constructor Summary
-
Method Summary
Methods inherited from class org.apache.jena.riot.system.StreamRDFWrapper
base, finish, get, prefix, start
-
Constructor Details
-
StreamRDFLimited
public StreamRDFLimited(org.apache.jena.riot.system.StreamRDF output, long limit)
-
-
Method Details
-
triple
public void triple(org.apache.jena.graph.Triple triple) - Specified by:
triple
in interfaceorg.apache.jena.riot.system.StreamRDF
- Overrides:
triple
in classorg.apache.jena.riot.system.StreamRDFWrapper
-
quad
public void quad(org.apache.jena.sparql.core.Quad quad) - Specified by:
quad
in interfaceorg.apache.jena.riot.system.StreamRDF
- Overrides:
quad
in classorg.apache.jena.riot.system.StreamRDFWrapper
-
getCount
public long getCount() -
getLimit
public long getLimit()
-