public class UniqueResultObjectProvider extends java.lang.Object implements ResultObjectProvider
| Constructor and Description |
|---|
UniqueResultObjectProvider(ResultObjectProvider[] rops,
StoreQuery q,
QueryExpressions[] exps) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
absolute(int pos)
Move to the given 0-based position.
|
void |
close()
Free the resources associated with this provider.
|
(package private) java.lang.Object |
count(java.lang.Object current,
java.lang.Object other) |
java.lang.Object |
getResultObject()
Instantiate the current result object.
|
void |
handleCheckedException(java.lang.Exception e)
Any checked exceptions that are thrown will be passed to this method.
|
(package private) java.lang.Object |
max(java.lang.Object current,
java.lang.Object other) |
(package private) java.lang.Object |
min(java.lang.Object current,
java.lang.Object other) |
boolean |
next()
Advance the input to the next position.
|
void |
open()
Open the result.
|
void |
reset()
Reset this provider.
|
int |
size()
Return the number of items in the input, or
Integer.MAX_VALUE
if the size in unknown. |
(package private) java.lang.Object |
sum(java.lang.Object current,
java.lang.Object other) |
boolean |
supportsRandomAccess()
Return true if this provider supports random access.
|
public UniqueResultObjectProvider(ResultObjectProvider[] rops, StoreQuery q, QueryExpressions[] exps)
public boolean absolute(int pos)
throws java.lang.Exception
ResultObjectProvidertrue if there is data at this position;
otherwise false. This may be invoked in place of
ResultObjectProvider.next().absolute in interface ResultObjectProviderjava.lang.Exceptionpublic void close()
throws java.lang.Exception
ResultObjectProviderclose in interface ResultObjectProviderclose in interface Closeablejava.lang.Exceptionpublic java.lang.Object getResultObject()
throws java.lang.Exception
ResultObjectProviderResultObjectProvider.next() or ResultObjectProvider.absolute(int).getResultObject in interface ResultObjectProviderjava.lang.Exceptionpublic void handleCheckedException(java.lang.Exception e)
ResultObjectProviderhandleCheckedException in interface ResultObjectProviderpublic boolean next()
throws java.lang.Exception
ResultObjectProvidertrue if
there is more data; otherwise false.next in interface ResultObjectProviderjava.lang.Exceptionjava.lang.Object count(java.lang.Object current,
java.lang.Object other)
java.lang.Object max(java.lang.Object current,
java.lang.Object other)
java.lang.Object min(java.lang.Object current,
java.lang.Object other)
java.lang.Object sum(java.lang.Object current,
java.lang.Object other)
public void open()
throws java.lang.Exception
ResultObjectProviderResultObjectProvider.next(), ResultObjectProvider.absolute(int), or ResultObjectProvider.size().open in interface ResultObjectProviderjava.lang.Exceptionpublic void reset()
throws java.lang.Exception
ResultObjectProviderreset in interface ResultObjectProviderjava.lang.Exceptionpublic int size()
throws java.lang.Exception
ResultObjectProviderInteger.MAX_VALUE
if the size in unknown.size in interface ResultObjectProviderjava.lang.Exceptionpublic boolean supportsRandomAccess()
ResultObjectProvidersupportsRandomAccess in interface ResultObjectProviderCopyright © 2006-2013 Apache Software Foundation. All Rights Reserved.