private static void explicitOverlapTest(final ISchemaVersion schemaVersion) throws IOException {
  final Writer output=openOutput(schemaVersion,"explicit_explicit",TestType.UNION);
  final Random random=new Random(randomLong());
  final HLL hll=newHLL(HLLType.EMPTY);
  final HLL emptyHLL=newHLL(HLLType.EMPTY);
  cumulativeUnionLine(output,hll,emptyHLL,schemaVersion);
  for (int i=0; i < EXPLICIT_THRESHOLD; i++) {
    final HLL explicitHLL=newHLL(HLLType.EXPLICIT);
    explicitHLL.addRaw(random.nextLong());
    cumulativeUnionLine(output,hll,explicitHLL,schemaVersion);
    cumulativeUnionLine(output,hll,explicitHLL,schemaVersion);
  }
  output.flush();
  output.close();
}

private static void explicitOverlapTest ( final ISchemaVersion schemaVersion ) throws IOException { final Writer output = openOutput ( schemaVersion , "explicit_explicit" , TestType . UNION ) ; final Random random = new Random ( randomLong ( ) ) ; final HLL hll = newHLL ( HLLType . EMPTY ) ; final HLL emptyHLL = newHLL ( HLLType . EMPTY ) ; cumulativeUnionLine ( output , hll , emptyHLL , schemaVersion ) ; for ( int i = 0 ; i < EXPLICIT_THRESHOLD ; i ++ ) { final HLL explicitHLL = newHLL ( HLLType . EXPLICIT ) ; explicitHLL . addRaw ( random . nextLong ( ) ) ; cumulativeUnionLine ( output , hll , explicitHLL , schemaVersion ) ; cumulativeUnionLine ( output , hll , explicitHLL , schemaVersion ) ; } output . flush ( ) ; output . close ( ) ; }
unions an empty accumulator with explicit hlls , each having a single random value , twice in a row to verify that the set properties are satisfied . format : cumulative union tests : - empty u explicit - explicit u explicit
