Class StreamRDFLimited

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

    Constructors
    Constructor
    Description
    StreamRDFLimited(org.apache.jena.riot.system.StreamRDF output, long limit)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    long
     
    long
     
    void
    quad(org.apache.jena.sparql.core.Quad quad)
     
    void
    triple(org.apache.jena.graph.Triple triple)
     

    Methods inherited from class org.apache.jena.riot.system.StreamRDFWrapper

    base, finish, get, prefix, start

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 interface org.apache.jena.riot.system.StreamRDF
      Overrides:
      triple in class org.apache.jena.riot.system.StreamRDFWrapper
    • quad

      public void quad(org.apache.jena.sparql.core.Quad quad)
      Specified by:
      quad in interface org.apache.jena.riot.system.StreamRDF
      Overrides:
      quad in class org.apache.jena.riot.system.StreamRDFWrapper
    • getCount

      public long getCount()
    • getLimit

      public long getLimit()