private static void globalUnionTest(final ISchemaVersion schemaVersion) throws IOException {
  final Writer output=openOutput(schemaVersion,"comprehensive",TestType.UNION);
  final HLL hll=newHLL(HLLType.EMPTY);
  final HLL emptyHLL=newHLL(HLLType.EMPTY);
  cumulativeUnionLine(output,hll,emptyHLL,schemaVersion);
  for (int i=0; i < 1000; i++) {
    final HLL randomHLL=generateRandomHLL();
    cumulativeUnionLine(output,hll,randomHLL,schemaVersion);
  }
  output.flush();
  output.close();
}

private static void globalUnionTest ( final ISchemaVersion schemaVersion ) throws IOException { final Writer output = openOutput ( schemaVersion , "comprehensive" , TestType . UNION ) ; final HLL hll = newHLL ( HLLType . EMPTY ) ; final HLL emptyHLL = newHLL ( HLLType . EMPTY ) ; cumulativeUnionLine ( output , hll , emptyHLL , schemaVersion ) ; for ( int i = 0 ; i < 1000 ; i ++ ) { final HLL randomHLL = generateRandomHLL ( ) ; cumulativeUnionLine ( output , hll , randomHLL , schemaVersion ) ; } output . flush ( ) ; output . close ( ) ; }
unions an empty accumulator with random hlls . format : cumulative union tests : - hopefully all union possibilities
