Commit ba3a7e43 authored by Robert Butora's avatar Robert Butora
Browse files

votable: adds count of subsurveys with datacube(s) found

parent fa3050c3
Loading
Loading
Loading
Loading
+17 −12
Original line number Diff line number Diff line
@@ -18,13 +18,17 @@ public final class XmlSerializer

   private XmlSerializer() {} // disables instatiation


   // VOTable

   public static void serializeToVoTable(PrintWriter writer, String charEncoding, SearchOutputData searchOutputData,
         boolean showDuration, long startTime_msec) throws IOException
   {
      // writer.println("<DatacubeCount> " + searchOutputData.datacubeCount + " </DatacubeCount>");

      StarTable dstable = makeSearchResultsTable( searchOutputData.subsurveyArr );
      dstable.setParameter(new DescribedValue(new DefaultValueInfo( "datacubeCount", Integer.class, "Count of datacubes from VLKB-search" ), searchOutputData.datacubeCount ) );

      dstable.setParameter(new DescribedValue(new DefaultValueInfo( "subsurveyCount", Integer.class, "Count of subsurveys with found datacube(s)" ), searchOutputData.subsurveyArr.length ) );
      dstable.setParameter(new DescribedValue(new DefaultValueInfo( "datacubeCount",  Integer.class, "Count of all datacubes from VLKB-search" ), searchOutputData.datacubeCount ) );

      StarTable[] tables = {dstable};

      BufferedWriter out = new BufferedWriter( writer );
@@ -72,6 +76,7 @@ public final class XmlSerializer
                     new Integer( dataset.overlapCode ),
                     new Integer( dataset.overlapCodeSky ),
                     new Integer( dataset.overlapCodeVel ),

                     dataset.dataType, 
                     dataset.publisherDid,