Package gov.nasa.pds.dsview.registry
Class PDS4Search
- java.lang.Object
-
- gov.nasa.pds.dsview.registry.PDS4Search
-
public class PDS4Search extends Object
This class is used by the PDS data set view web interface to retrieve values for building the search parameter pull-down lists.- Author:
- Hyun Lee
-
-
Field Summary
Fields Modifier and Type Field Description static StringDOI_SERVER_URL
-
Constructor Summary
Constructors Constructor Description PDS4Search(String url)Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.solr.common.SolrDocumentListgetBundles()org.apache.solr.common.SolrDocumentListgetCollections()org.apache.solr.common.SolrDocumentgetContext(String identifier)org.apache.solr.common.SolrDocumentListgetDocuments()StringgetDoi(String lid, String vid)org.codehaus.jettison.json.JSONArraygetDoiResponse(URL url)org.apache.solr.common.SolrDocumentListgetObservationals(int start)Map<String,String>getResourceLinks(List<String> resourceRefList)List<String>getValues(org.apache.solr.common.SolrDocument doc, String key)static voidmain(String[] argv)Command line invocation.
-
-
-
Field Detail
-
DOI_SERVER_URL
public static final String DOI_SERVER_URL
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PDS4Search
public PDS4Search(String url)
Constructor.
-
-
Method Detail
-
getCollections
public org.apache.solr.common.SolrDocumentList getCollections() throws org.apache.solr.client.solrj.SolrServerException, IOException- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
getBundles
public org.apache.solr.common.SolrDocumentList getBundles() throws org.apache.solr.client.solrj.SolrServerException, IOException- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
getObservationals
public org.apache.solr.common.SolrDocumentList getObservationals(int start) throws org.apache.solr.client.solrj.SolrServerException, IOException- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
getDocuments
public org.apache.solr.common.SolrDocumentList getDocuments() throws org.apache.solr.client.solrj.SolrServerException, IOException- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
getContext
public org.apache.solr.common.SolrDocument getContext(String identifier) throws org.apache.solr.client.solrj.SolrServerException, IOException
- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
getResourceLinks
public Map<String,String> getResourceLinks(List<String> resourceRefList) throws org.apache.solr.client.solrj.SolrServerException, IOException
- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
getDoiResponse
public org.codehaus.jettison.json.JSONArray getDoiResponse(URL url) throws IOException, org.codehaus.jettison.json.JSONException
- Throws:
IOExceptionorg.codehaus.jettison.json.JSONException
-
getDoi
public String getDoi(String lid, String vid) throws IOException, org.codehaus.jettison.json.JSONException
- Throws:
IOExceptionorg.codehaus.jettison.json.JSONException
-
main
public static void main(String[] argv)
Command line invocation.- Parameters:
argv- Command-line arguments.
-
-