public class UniqueResultObjectProvider extends 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.
|
Object |
getResultObject()
Instantiate the current result object.
|
void |
handleCheckedException(Exception e)
Any checked exceptions that are thrown will be passed to this method.
|
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. |
boolean |
supportsRandomAccess()
Return true if this provider supports random access.
|
public UniqueResultObjectProvider(ResultObjectProvider[] rops, StoreQuery q, QueryExpressions[] exps)
public boolean absolute(int pos)
throws Exception
ResultObjectProvidertrue if there is data at this position;
otherwise false. This may be invoked in place of
ResultObjectProvider.next().absolute in interface ResultObjectProviderExceptionpublic void close()
throws Exception
ResultObjectProviderclose in interface ResultObjectProviderclose in interface CloseableExceptionpublic Object getResultObject() throws Exception
ResultObjectProviderResultObjectProvider.next() or ResultObjectProvider.absolute(int).getResultObject in interface ResultObjectProviderExceptionpublic void handleCheckedException(Exception e)
ResultObjectProviderhandleCheckedException in interface ResultObjectProviderpublic boolean next()
throws Exception
ResultObjectProvidertrue if
there is more data; otherwise false.next in interface ResultObjectProviderExceptionpublic void open()
throws Exception
ResultObjectProviderResultObjectProvider.next(), ResultObjectProvider.absolute(int), or ResultObjectProvider.size().open in interface ResultObjectProviderExceptionpublic void reset()
throws Exception
ResultObjectProviderreset in interface ResultObjectProviderExceptionpublic int size()
throws Exception
ResultObjectProviderInteger.MAX_VALUE
if the size in unknown.size in interface ResultObjectProviderExceptionpublic boolean supportsRandomAccess()
ResultObjectProvidersupportsRandomAccess in interface ResultObjectProviderCopyright © 2006–2022 Apache Software Foundation. All rights reserved.