org.trippi.nodegraph
Interface TripleResults

All Superinterfaces:
org.jrdf.util.ClosableIterator, java.util.Iterator

public interface TripleResults
extends org.jrdf.util.ClosableIterator

A ClosableIterator of Triple objects, with several built-in convenience methods.

Author:
cwilper@cs.cornell.edu

Method Summary
 org.jrdf.graph.Triple[] all()
          Get all triples as an array and automatically close the iterator.
 int count()
          Get the number of items in the iterator and automatically close it.
 org.jrdf.graph.Triple first()
          Get the first triple and automatically close the iterator.
 
Methods inherited from interface org.jrdf.util.ClosableIterator
close
 
Methods inherited from interface java.util.Iterator
hasNext, next, remove
 

Method Detail

first

org.jrdf.graph.Triple first()
Get the first triple and automatically close the iterator.


all

org.jrdf.graph.Triple[] all()
Get all triples as an array and automatically close the iterator.


count

int count()
Get the number of items in the iterator and automatically close it.