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 QueryResult
public boolean retainAll(java.util.Collection collection)
retainAll
in interface java.util.Collection
collection
- ignored.public boolean contains(java.lang.Object obj)
contains
in interface java.util.Collection
obj
- 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.Collection
obj
- an array into which to place the
objects from the result collection.public java.util.Iterator iterator()
iterator
in interface java.lang.Iterable
iterator
in interface java.util.Collection
public java.lang.Object[] toArray()
toArray
in interface java.util.Collection
public boolean removeAll(java.util.Collection collection)
removeAll
in interface java.util.Collection
collection
- ignored.public boolean remove(java.lang.Object obj)
remove
in interface java.util.Collection
obj
- ignored.public void clear()
clear
in interface java.util.Collection
public boolean addAll(java.util.Collection collection)
addAll
in interface java.util.Collection
collection
- ignored.public int size()
size
in interface java.util.Collection
public boolean containsAll(java.util.Collection collection)
containsAll
in interface java.util.Collection
collection
- 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.Collection
obj
- ignored.public boolean isEmpty()
isEmpty
in interface java.util.Collection
true
if the result collection is empty.public boolean equals(java.lang.Object obj)
equals
in interface java.util.Collection
equals
in class java.lang.Object
obj
- 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.Collection
hashCode
in class java.lang.Object
Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.