|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.trippi.TupleIterator
public abstract class TupleIterator
An iterator over a series of tuples. Each tuple is a Map of JRDF Node objects keyed by query binding variable names.
Field Summary | |
---|---|
static RDFFormat[] |
INPUT_FORMATS
Formats supported for reading. |
static RDFFormat[] |
OUTPUT_FORMATS
Formats supported for writing. |
Constructor Summary | |
---|---|
TupleIterator()
|
Method Summary | |
---|---|
abstract void |
close()
Release resources held by this TupleIterator. |
int |
count()
Get the number of tuples in the iterator, then close it. |
void |
finalize()
Ensure close() gets called at garbage collection time. |
static TupleIterator |
fromStream(java.io.InputStream in,
RDFFormat format)
Get an iterator over the tuples in the given stream. |
abstract boolean |
hasNext()
Return true if there are more results. |
static void |
main(java.lang.String[] args)
|
abstract java.lang.String[] |
names()
Get the names of the binding variables. |
abstract java.util.Map |
next()
Return the next result. |
java.util.List |
nextTriples(TriplePattern[] patterns)
Return the next result as a List of Triple objects. |
void |
setAliasMap(java.util.Map aliases)
|
int |
toStream(java.io.OutputStream out,
RDFFormat format)
Serialize to the given stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final RDFFormat[] INPUT_FORMATS
fromStream(InputStream, RDFFormat)
public static final RDFFormat[] OUTPUT_FORMATS
toStream(OutputStream, RDFFormat)
Constructor Detail |
---|
public TupleIterator()
Method Detail |
---|
public abstract boolean hasNext() throws TrippiException
TrippiException
public abstract java.util.Map next() throws TrippiException
TrippiException
public abstract java.lang.String[] names() throws TrippiException
TrippiException
public abstract void close() throws TrippiException
TrippiException
public java.util.List nextTriples(TriplePattern[] patterns) throws TrippiException
TrippiException
public void finalize() throws TrippiException
finalize
in class java.lang.Object
TrippiException
public void setAliasMap(java.util.Map aliases)
public int count() throws TrippiException
TrippiException
public int toStream(java.io.OutputStream out, RDFFormat format) throws TrippiException
TrippiException
public static TupleIterator fromStream(java.io.InputStream in, RDFFormat format) throws java.io.IOException, TrippiException
java.io.IOException
TrippiException
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |