|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface TriplesIterator
Iterate over a collection of Triple instances.
Many triple store search operations may generate an indeterminate number of results. These operations return a TriplesIterator instance which may be used to iterate through the available results.
Instances are created by search operations.
| Method Summary | |
|---|---|
boolean |
atTriple()
Query the state of a Cursor instance. |
void |
close()
Discard the remote reference to the AllegroGraph cursor instance. |
long |
get_id()
Retrieve the id number of the current triple in the Cursor instance. |
UPI |
getC()
Retrieve the context node UPI of the current triple in the Cursor instance. |
ValueNode |
getContext()
Retrieve the Value instance that identifies the context of the current triple in the Cursor. |
java.lang.String |
getContextLabel()
Retrieve the string label of the context of the current triple in the Cursor instance. |
int |
getLookAhead()
Query the look-ahead value for this cursor instance. |
Triple |
getNext()
Advance the Cursor and return a Triple instance. |
UPI |
getO()
Retrieve the object node UPI of the current triple in the Cursor instance. |
ValueNode |
getObject()
Retrieve the Value instance that identifies the object of the current triple in the Cursor. |
java.lang.String |
getObjectLabel()
Retrieve the literal string for the object of the current triple in the Cursor instance. |
UPI |
getP()
Retrieve the predicate node UPI of the current triple in the Cursor instance. |
ValueNode |
getPredicate()
Retrieve the Value instance that identifies the predicate of the current triple in the Cursor. |
java.lang.String |
getPredicateLabel()
Retrieve the literal string for the predicate of the current triple in the Cursor instance. |
UPI |
getS()
Retrieve the subject node UPI of the current triple in the Cursor instance. |
ValueNode |
getSubject()
Retrieve the Value instance that identifies the subject of the current triple in the Cursor. |
java.lang.String |
getSubjectLabel()
Retrieve the literal string for the subject of the current triple in the Cursor instance. |
Triple |
getTriple()
Create a Triple instance from the current triple in the Cursor. |
boolean |
hasNext()
Query the state of a Cursor instance. |
boolean |
limitReached()
Query the state of a Cursor instance. |
Triple |
next()
Advance the Cursor and return a Triple instance. |
java.lang.String |
queryContext()
Retrieve the string label for the context of the current triple in the Cursor instance. |
java.lang.String |
queryObject()
Retrieve the string label for the object of the current triple in the Cursor instance. |
java.lang.String |
queryPredicate()
Retrieve the string label for the predicate of the current triple in the Cursor instance. |
java.lang.String |
querySubject()
Retrieve the string label for the subject of the current triple in the Cursor instance. |
TripleImpl |
queryTriple()
Create a Triple instance from the current triple in the Cursor. |
void |
remove()
Discard the current triple in the Cursor. |
void |
setLookAhead(int lh)
Set the look-ahead value for this cursor instance. |
boolean |
step()
Advance the Cursor instance to the next triple. |
Triple[] |
step(int n)
This method returns an array of Triple instances. |
java.lang.String |
toString()
Override the default method to give a more informatve representation. |
| Method Detail |
|---|
int getLookAhead()
setLookAhead(int)void setLookAhead(int lh)
A large value optimizes access in the Java application but may incur a large delay when the cursor is created.
lh - An integer. Any value less than 1 specifies the defaultLookAhead
value.long get_id()
UPI getS()
java.lang.String querySubject()
java.lang.String queryObject()
java.lang.String queryPredicate()
java.lang.String queryContext()
java.lang.String getSubjectLabel()
throws AllegroGraphException
AllegroGraphException - if there is a problem during the operation.
This method almost almost always requires a round-trip to the AllegroGraph server.
ValueNode getSubject()
throws AllegroGraphException
AllegroGraphException
ValueNode getContext()
throws AllegroGraphException
AllegroGraphExceptionUPI getP()
java.lang.String getPredicateLabel()
throws AllegroGraphException
AllegroGraphException - if there is a problem during the operation.
This method almost always requires a round-trip to the AllegroGraph server.
ValueNode getPredicate()
throws AllegroGraphException
AllegroGraphExceptionUPI getO()
UPI getC()
java.lang.String getObjectLabel()
throws AllegroGraphException
AllegroGraphException - if there is a problem during the operation.
This method almost always requires a round-trip to the AllegroGraph server.
java.lang.String getContextLabel()
throws AllegroGraphException
AllegroGraphException - if there is a problem during the operation.
This method almost always requires a round-trip to the AllegroGraph server.
ValueNode getObject()
throws AllegroGraphException
AllegroGraphExceptionTripleImpl queryTriple()
Triple getTriple()
throws AllegroGraphException
AllegroGraphExceptionTriple next()
next in interface java.util.Iterator<Triple>Triple getNext()
boolean atTriple()
boolean hasNext()
hasNext in interface java.util.Iterator<Triple>boolean limitReached()
void close()
An attempt to call next() will case an exception to be thrown.
java.lang.IllegalStateException
boolean step()
throws AllegroGraphException
AllegroGraphException
Triple[] step(int n)
throws AllegroGraphException
n - A positive integer number of instances desired.
AllegroGraphExceptionjava.lang.String toString()
toString in class java.lang.Objectvoid remove()
The program must advance the Cursor in order to access a triple again.
remove in interface java.util.Iterator<Triple>Iterator.remove()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||