Class 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
    • 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.SolrServerException
        IOException
      • getBundles

        public org.apache.solr.common.SolrDocumentList getBundles()
                                                           throws org.apache.solr.client.solrj.SolrServerException,
                                                                  IOException
        Throws:
        org.apache.solr.client.solrj.SolrServerException
        IOException
      • getObservationals

        public org.apache.solr.common.SolrDocumentList getObservationals​(int start)
                                                                  throws org.apache.solr.client.solrj.SolrServerException,
                                                                         IOException
        Throws:
        org.apache.solr.client.solrj.SolrServerException
        IOException
      • getDocuments

        public org.apache.solr.common.SolrDocumentList getDocuments()
                                                             throws org.apache.solr.client.solrj.SolrServerException,
                                                                    IOException
        Throws:
        org.apache.solr.client.solrj.SolrServerException
        IOException
      • getContext

        public org.apache.solr.common.SolrDocument getContext​(String identifier)
                                                       throws org.apache.solr.client.solrj.SolrServerException,
                                                              IOException
        Throws:
        org.apache.solr.client.solrj.SolrServerException
        IOException
      • getValues

        public List<String> getValues​(org.apache.solr.common.SolrDocument doc,
                                      String key)
      • getResourceLinks

        public Map<String,​String> getResourceLinks​(List<String> resourceRefList)
                                                  throws org.apache.solr.client.solrj.SolrServerException,
                                                         IOException
        Throws:
        org.apache.solr.client.solrj.SolrServerException
        IOException
      • getDoiResponse

        public org.codehaus.jettison.json.JSONArray getDoiResponse​(URL url)
                                                            throws IOException,
                                                                   org.codehaus.jettison.json.JSONException
        Throws:
        IOException
        org.codehaus.jettison.json.JSONException
      • main

        public static void main​(String[] argv)
        Command line invocation.
        Parameters:
        argv - Command-line arguments.