|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.pds.search.core.registry.RegistryResults
public class RegistryResults
Wrapper for Registry Service PagedResponse object. Handles the paging through the results
Field Summary | |
---|---|
static int |
MAX_PAGE_LENGTH
In order to scale for very large registry products, need to page the registry output |
Constructor Summary | |
---|---|
RegistryResults(List<String> registryUrlList,
gov.nasa.pds.registry.query.RegistryQuery<?> query,
String version,
int queryMax)
Main constructor that initializes globals as needed and increments to the first registry in the list. |
|
RegistryResults(String registryUrl,
gov.nasa.pds.registry.query.RegistryQuery<?> query,
String version,
int queryMax)
Constructor for a single registryUrl. |
Method Summary | |
---|---|
int |
getPageLength()
|
List<Object> |
getResultObjects()
|
boolean |
nextPage()
Handles paging through results |
void |
performRegistryQuery(int start,
int pageLength)
Queries Registry with page beginning at start with specified page length. |
void |
setPageLength(int pageLength)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MAX_PAGE_LENGTH
Constructor Detail |
---|
public RegistryResults(String registryUrl, gov.nasa.pds.registry.query.RegistryQuery<?> query, String version, int queryMax) throws gov.nasa.pds.registry.exception.RegistryClientException
registryUrl
- query
- version
- queryMax
-
gov.nasa.pds.registry.exception.RegistryClientException
public RegistryResults(List<String> registryUrlList, gov.nasa.pds.registry.query.RegistryQuery<?> query, String version, int queryMax) throws gov.nasa.pds.registry.exception.RegistryClientException
registryUrlList
- query
- version
- queryMax
-
gov.nasa.pds.registry.exception.RegistryClientException
Method Detail |
---|
public boolean nextPage() throws gov.nasa.pds.registry.exception.RegistryServiceException, gov.nasa.pds.registry.exception.RegistryClientException, SearchCoreFatalException
gov.nasa.pds.registry.exception.RegistryServiceException
gov.nasa.pds.registry.exception.RegistryClientException
SearchCoreFatalException
public void performRegistryQuery(int start, int pageLength) throws gov.nasa.pds.registry.exception.RegistryServiceException, gov.nasa.pds.registry.exception.RegistryClientException, SearchCoreFatalException
start
- pageLength
-
gov.nasa.pds.registry.exception.RegistryServiceException
gov.nasa.pds.registry.exception.RegistryClientException
SearchCoreFatalException
public List<Object> getResultObjects()
public int getPageLength()
public void setPageLength(int pageLength)
pageLength
- the pageLength to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |