ResultItem
- the type of a result itempublic class LazyQueryResult<ResultItem>
extends java.util.AbstractSequentialList<ResultItem>
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
m_query |
static java.lang.String |
rcs_id |
Constructor and Description |
---|
LazyQueryResult(javax.xml.xquery.XQConnection xqConnection,
LazyQueryResultParser<ResultItem> resultParser,
java.lang.String query,
java.lang.String countQuery,
java.lang.String positionQueryPart1,
java.lang.String positionQueryPart2)
Construct a LazyQueryResult from a query.
|
LazyQueryResult(javax.xml.xquery.XQConnection xqConnection,
LazyQueryResultParser<ResultItem> resultParser,
java.lang.String query,
java.lang.String countQuery,
java.lang.String positionQueryPart1,
java.lang.String positionQueryPart2,
javax.xml.xquery.XQResultSequence resultSequence)
Alternates constructor for use with a prepared query.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close a LazyQueryResponse, releasing any resources.
|
protected void |
finalize() |
protected int |
getRepositioningLimit()
Returns repositioning limit, i.e. the minimum distance (counted
in number of result items) from the current position, that will
cause a repositioning query to be issued.
|
java.util.ListIterator<ResultItem> |
listIterator(int index) |
int |
size() |
add, addAll, get, iterator, remove, set
add, clear, equals, hashCode, indexOf, lastIndexOf, listIterator, removeRange, subList
public static final java.lang.String rcs_id
protected java.lang.String m_query
public LazyQueryResult(javax.xml.xquery.XQConnection xqConnection, LazyQueryResultParser<ResultItem> resultParser, java.lang.String query, java.lang.String countQuery, java.lang.String positionQueryPart1, java.lang.String positionQueryPart2) throws javax.xml.xquery.XQException
xqConnection
- an XQJ connection (cursoring should be enabled!).resultParser
- the result item parser.query
- the plain query.countQuery
- the count query.positionQueryPart1
- the first part of the position query.positionQueryPart2
- the second part of the position query.javax.xml.xquery.XQException
- if an internal error occurs.public LazyQueryResult(javax.xml.xquery.XQConnection xqConnection, LazyQueryResultParser<ResultItem> resultParser, java.lang.String query, java.lang.String countQuery, java.lang.String positionQueryPart1, java.lang.String positionQueryPart2, javax.xml.xquery.XQResultSequence resultSequence) throws javax.xml.xquery.XQException
xqConnection
- an XQJ connection (cursoring should be enabled!)resultParser
- the result item parserquery
- the plain querycountQuery
- the count querypositionQueryPart1
- the first part of the position querypositionQueryPart2
- the second part of the position queryresultSequence
- a result sequence to be used for the initial chunkjavax.xml.xquery.XQException
- if an internal error occurs.public void close()
public int size()
size
in interface java.util.Collection<ResultItem>
size
in interface java.util.List<ResultItem>
size
in class java.util.AbstractCollection<ResultItem>
public java.util.ListIterator<ResultItem> listIterator(int index)
listIterator
in interface java.util.List<ResultItem>
listIterator
in class java.util.AbstractSequentialList<ResultItem>
protected int getRepositioningLimit()
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable