Skip to content
Snippets Groups Projects
Commit ba3a7e43 authored by Robert Butora's avatar Robert Butora
Browse files

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

parent fa3050c3
No related branches found
No related tags found
No related merge requests found
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment