Package org.apache.jena.riot.system
Class StreamRDFCountingBase
- java.lang.Object
-
- org.apache.jena.riot.system.StreamRDFWrapper
-
- org.apache.jena.riot.system.StreamRDFCountingBase
-
- All Implemented Interfaces:
StreamRDFCounting
,StreamRDF
public class StreamRDFCountingBase extends StreamRDFWrapper implements StreamRDF, StreamRDFCounting
Wrap another StreamRDF and provide counts of items
-
-
Constructor Summary
Constructors Constructor Description StreamRDFCountingBase(StreamRDF other)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
count()
Count of triples, quads or tupleslong
countQuads()
long
countTriples()
void
quad(Quad quad)
Quad emittedvoid
triple(Triple triple)
Triple emitted-
Methods inherited from class org.apache.jena.riot.system.StreamRDFWrapper
base, finish, prefix, start
-
-
-
-
Constructor Detail
-
StreamRDFCountingBase
public StreamRDFCountingBase(StreamRDF other)
-
-
Method Detail
-
triple
public void triple(Triple triple)
Description copied from interface:StreamRDF
Triple emitted- Specified by:
triple
in interfaceStreamRDF
- Overrides:
triple
in classStreamRDFWrapper
-
quad
public void quad(Quad quad)
Description copied from interface:StreamRDF
Quad emitted- Specified by:
quad
in interfaceStreamRDF
- Overrides:
quad
in classStreamRDFWrapper
-
count
public long count()
Description copied from interface:StreamRDFCounting
Count of triples, quads or tuples- Specified by:
count
in interfaceStreamRDFCounting
-
countTriples
public long countTriples()
- Specified by:
countTriples
in interfaceStreamRDFCounting
-
countQuads
public long countQuads()
- Specified by:
countQuads
in interfaceStreamRDFCounting
-
-