All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.yahoo.sketches.tuple.HeapArrayOfDoublesIntersection Maven / Gradle / Ivy

There is a newer version: 0.13.4
Show newest version
/*
 * Copyright 2015-16, Yahoo! Inc.
 * Licensed under the terms of the Apache License 2.0. See LICENSE file at the project root for terms.
 */

package com.yahoo.sketches.tuple;

/**
 * On-heap implementation of intersection set operation for tuple sketches of type
 * ArrayOfDoubles.
 */
final class HeapArrayOfDoublesIntersection extends ArrayOfDoublesIntersection {

  /**
   * Creates an instance of a HeapArrayOfDoublesIntersection with a custom update seed
   * @param numValues number of double values associated with each key
   * @param seed See seed
   */
  HeapArrayOfDoublesIntersection(final int numValues, final long seed) {
    super(numValues, seed);
  }

  @Override
  protected ArrayOfDoublesQuickSelectSketch createSketch(final int size, final int numValues, 
      final long seed) {
    return new HeapArrayOfDoublesQuickSelectSketch(size, 0, 1f, numValues, seed);
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy