public class RegistryResults extends Object
Modifier and Type | Field and Description |
---|---|
static int |
MAX_PAGE_LENGTH
In order to scale for very large registry products, need to page the registry output
|
Constructor and Description |
---|
RegistryResults(List<String> registryUrlList,
RegistryQuery<?> query,
int queryMax)
Constructor for list of registry urls.
|
RegistryResults(List<String> registryUrlList,
RegistryQuery<?> query,
int queryMax,
List<ResultsFilter> resultsFilterList)
Main constructor that initializes globals as needed and increments to the first registry in the list.
|
RegistryResults(String registryUrl,
RegistryQuery<?> query,
int queryMax)
Constructor for a single registryUrl.
|
RegistryResults(String registryUrl,
RegistryQuery<?> query,
int queryMax,
List<ResultsFilter> resultsFilterList)
Constructor for a single registryUrl.
|
Modifier and Type | Method and Description |
---|---|
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) |
public static final int MAX_PAGE_LENGTH
public RegistryResults(String registryUrl, RegistryQuery<?> query, int queryMax) throws RegistryClientException
registryUrl
- query
- version
- queryMax
- RegistryClientException
public RegistryResults(String registryUrl, RegistryQuery<?> query, int queryMax, List<ResultsFilter> resultsFilterList) throws RegistryClientException
registryUrl
- query
- version
- queryMax
- RegistryClientException
public RegistryResults(List<String> registryUrlList, RegistryQuery<?> query, int queryMax) throws RegistryClientException
registryUrlList
- query
- version
- queryMax
- RegistryClientException
public RegistryResults(List<String> registryUrlList, RegistryQuery<?> query, int queryMax, List<ResultsFilter> resultsFilterList) throws RegistryClientException
registryUrlList
- query
- version
- queryMax
- RegistryClientException
public boolean nextPage() throws RegistryServiceException, RegistryClientException
RegistryServiceException
RegistryClientException
public void performRegistryQuery(int start, int pageLength) throws RegistryServiceException, RegistryClientException
start
- pageLength
- RegistryServiceException
RegistryClientException
SearchCoreFatalException
public int getPageLength()
public void setPageLength(int pageLength)
pageLength
- the pageLength to setCopyright © 2010–2016 Planetary Data System. All rights reserved.