@@ -0,0 +1,2810 @@
+package gov.nih.nci.evs.browser.test.valueset;%0D%0A%0D%0Aimport gov.nih.nci.evs.browser.properties.*;%0D%0Aimport gov.nih.nci.evs.browser.test.utils.*;%0D%0Aimport gov.nih.nci.evs.browser.utils.*;%0D%0A%0D%0Aimport java.net.*;%0D%0Aimport java.util.*;%0D%0A%0D%0Aimport org.LexGrid.LexBIG.Exceptions.*;%0D%0Aimport org.LexGrid.LexBIG.Impl.*;%0D%0Aimport org.LexGrid.LexBIG.Utility.LBConstants.*;%0D%0Aimport org.lexgrid.valuesets.*;%0D%0Aimport org.lexgrid.valuesets.dto.*;%0D%0A%0D%0Apublic class Bar %7B%0D%0A    public static void main(String args%5B%5D) throws Exception %7B%0D%0A        args = SetupEnv.getInstance().parse(args);%0D%0A        String evsServiceUrl =%0D%0A            NCItBrowserProperties%0D%0A                .getProperty(NCItBrowserProperties.EVS_SERVICE_URL);%0D%0A        System.out.println(%22EVS_SERVICE_URL: %22 + evsServiceUrl);%0D%0A        System.out.println(%22%22);%0D%0A        System.out.println(Utils.SEPARATOR);%0D%0A        new Bar().testGetValueSets();%0D%0A    %7D%0D%0A%0D%0A    public void testGetValueSets()%7B%0D%0A        System.out.println(%22Before VSDS init%22);%0D%0A         //LexEVSValueSetDefinitionServices vsdServ = LexEVSServiceHolder.instance().getLexEVSAppService().getLexEVSValueSetDefinitionServices();%0D%0A         LexEVSValueSetDefinitionServices vsdServ = RemoteServerUtil.getLexEVSValueSetDefinitionServices();%0D%0A          CodedNodeSetImpl nodeSet = null;%0D%0A         Date start = new Date();       %0D%0A         try %7B%0D%0A             List%3CString%3E vsdDefURIs = vsdServ.listValueSetDefinitionURIs();%0D%0A             for(String s: vsdDefURIs)%7B%0D%0A                 System.out.println(s);%0D%0A            Date vsStart = new Date();%0D%0A              ResolvedValueSetCodedNodeSet nodes = vsdServ.getValueSetDefinitionEntitiesForTerm(%22cell%22, MatchAlgorithms.LuceneQuery.name(), new URI(s), null, null);%0D%0A            Date vsStop = new Date();%0D%0A            long vsTime = vsStop.getTime() - vsStart.getTime();%0D%0A            System.out.println(%22Value Set resolve time: %22 + (vsTime %3C 1000? vsTime + %22 milliseconds%22: vsTime / 1000 + %22 seconds%22));%0D%0A              if(nodes != null)%7B%0D%0A           if(nodeSet != null)%7B%0D%0A        //  nodeSet = (CodedNodeSetImpl) nodeSet.union(nodes.getCodedNodeSet());%0D%0A           %7D%0D%0A           else%7B%0D%0A        //     nodeSet = (CodedNodeSetImpl) nodes.getCodedNodeSet();%0D%0A           %7D%0D%0A              %7D%0D%0A%0D%0A             %7D%0D%0A        //   nodeSet.resolve(null,null,null);%0D%0A        %7D catch (LBException e) %7B%0D%0A            // TODO Auto-generated catch block%0D%0A            e.printStackTrace();%0D%0A        %7D catch (URISyntaxException e) %7B%0D%0A            // TODO Auto-generated catch block%0D%0A            e.printStackTrace();%0D%0A        %7D%0D%0A         Date stop = new Date();%0D%0A         long ta = start.getTime();%0D%0A         long tb = stop.getTime();%0D%0A         %0D%0A         long diff = tb - ta;%0D%0A         System.out.println(%22elapsed time: %22 + (diff %3C 1000? diff + %22 milliseconds%22: diff / 1000 + %22 seconds%22));%0D%0A    %7D%0D%0A%7D%0D%0A

Improve performance of value set search functions. * Scott's Bar.java test program.