|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface HGSearchResult<T>
Represents the result set of a HyperGraph query.
| Field Summary | |
|---|---|
static HGRandomAccessResult<? extends java.lang.Object> |
EMPTY
This object represents an empty HGSearchResult. |
| Method Summary | |
|---|---|
void |
close()
Free all system resources held up by the result set and invalidate it for further use. |
T |
current()
Returns the current element in the result set. |
boolean |
isOrdered()
Return true if the elements in this search result are in ordered
and false otherwise. |
| Methods inherited from interface org.hypergraphdb.TwoWayIterator |
|---|
hasPrev, prev |
| Methods inherited from interface java.util.Iterator |
|---|
hasNext, next, remove |
| Field Detail |
|---|
static final HGRandomAccessResult<? extends java.lang.Object> EMPTY
This object represents an empty HGSearchResult. Calls to
hasPrev or hasNext will always return false.
Calls to current, next or prev will always
throw a NoSuchElementException.
| Method Detail |
|---|
T current()
Returns the current element in the result set. If there is no current element,
java.util.NoSuchElementException is thrown. There
is no current element in one of two cases: either the
result set is empty or the next method was never
invoked.
HGSearchResult.void close()
Free all system resources held up by the result set and invalidate it for further use.
close in interface CloseMeboolean isOrdered()
Return true if the elements in this search result are in ordered
and false otherwise. It is assumed that when elements are ordered,
they are instances of java.lang.Comparable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||