public class BasicQueryResult extends java.lang.Object implements QueryResult
| Modifier and Type | Class and Description |
|---|---|
class |
BasicQueryResult.BasicQueryResultIterator
The internal query result iterator supports all
iterator methods plus close, allowing early release
of resources.
|
| Constructor and Description |
|---|
BasicQueryResult(QueryResultHelper qrh)
Creates new BasicQueryResult
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(java.lang.Object obj)
This method throws UnsupportedOperationException because
the collection is read-only.
|
boolean |
addAll(java.util.Collection collection)
This method throws UnsupportedOperationException because
the collection is read-only.
|
void |
clear()
This method throws UnsupportedOperationException because
the collection is read-only.
|
void |
close()
This method closes the result set, closes all open iterators, and releases
all resources that might be held by the result.
|
boolean |
contains(java.lang.Object obj)
This method delegates to the result collection method.
|
boolean |
containsAll(java.util.Collection collection)
This method delegates to the result collection method.
|
boolean |
equals(java.lang.Object obj)
This method delegates to the result collection method.
|
int |
hashCode()
This method delegates to the result collection method.
|
boolean |
isEmpty()
This method delegates to the result collection method.
|
java.util.Iterator |
iterator()
This method delegates to the result collection method.
|
boolean |
remove(java.lang.Object obj)
This method throws UnsupportedOperationException because
the collection is read-only.
|
boolean |
removeAll(java.util.Collection collection)
This method throws UnsupportedOperationException because
the collection is read-only.
|
boolean |
retainAll(java.util.Collection collection)
This method throws UnsupportedOperationException because
the collection is read-only.
|
int |
size()
This method delegates to the result collection method.
|
java.lang.Object[] |
toArray()
This method delegates to the result collection method.
|
java.lang.Object[] |
toArray(java.lang.Object[] obj)
This method delegates to the result collection method.
|
public BasicQueryResult(QueryResultHelper qrh)
qrh - the query result helper provided
by the query parser.public void close()
close in interface QueryResultpublic boolean retainAll(java.util.Collection collection)
retainAll in interface java.util.Collectioncollection - ignored.public boolean contains(java.lang.Object obj)
contains in interface java.util.Collectionobj - the object to be tested.true if the result collection contains
the parameter object.public java.lang.Object[] toArray(java.lang.Object[] obj)
toArray in interface java.util.Collectionobj - an array into which to place the
objects from the result collection.public java.util.Iterator iterator()
iterator in interface java.lang.Iterableiterator in interface java.util.Collectionpublic java.lang.Object[] toArray()
toArray in interface java.util.Collectionpublic boolean removeAll(java.util.Collection collection)
removeAll in interface java.util.Collectioncollection - ignored.public boolean remove(java.lang.Object obj)
remove in interface java.util.Collectionobj - ignored.public void clear()
clear in interface java.util.Collectionpublic boolean addAll(java.util.Collection collection)
addAll in interface java.util.Collectioncollection - ignored.public int size()
size in interface java.util.Collectionpublic boolean containsAll(java.util.Collection collection)
containsAll in interface java.util.Collectioncollection - a collection of elements to be tested.true if the result collection contains all of the
elements in the parameter collection.public boolean add(java.lang.Object obj)
add in interface java.util.Collectionobj - ignored.public boolean isEmpty()
isEmpty in interface java.util.Collectiontrue if the result collection is empty.public boolean equals(java.lang.Object obj)
equals in interface java.util.Collectionequals in class java.lang.Objectobj - the object to which to compare this object.true if the result collection is equal to the parameter
collection.public int hashCode()
hashCode in interface java.util.CollectionhashCode in class java.lang.ObjectCopyright © 2005-2012 Apache Software Foundation. All Rights Reserved.