Class Intersections

java.lang.Object
io.nosqlbench.engine.extensions.computefunctions.Intersections

public class Intersections extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static int
    count(int[] reference, int[] sample)
     
    static int
    count(long[] reference, long[] sample)
     
    static int
    count(long[] reference, long[] sample, int limit)
     
    static int[]
    find(int[] reference, int[] sample)
     
    static long[]
    find(long[] reference, long[] sample)
     
    static int
    firstMatchingIndex(int[] reference, int[] sample, int limit)
     
    static int
    firstMatchingIndex(long[] reference, long[] sample, int limit)
    Return a non-negative index of the first value in the sample array which is present in the reference array, OR, return a negative number.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Intersections

      public Intersections()
  • Method Details

    • firstMatchingIndex

      public static int firstMatchingIndex(long[] reference, long[] sample, int limit)
      Return a non-negative index of the first value in the sample array which is present in the reference array, OR, return a negative number. This returns array index which start at 0, not rank, which is starts at 1.
    • firstMatchingIndex

      public static int firstMatchingIndex(int[] reference, int[] sample, int limit)
    • count

      public static int count(int[] reference, int[] sample)
    • count

      public static int count(long[] reference, long[] sample)
    • count

      public static int count(long[] reference, long[] sample, int limit)
    • find

      public static int[] find(int[] reference, int[] sample)
    • find

      public static long[] find(long[] reference, long[] sample)