Class Intersections
java.lang.Object
io.nosqlbench.engine.extensions.computefunctions.Intersections
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intcount(int[] reference, int[] sample) static intcount(long[] reference, long[] sample) static intcount(long[] reference, long[] sample, int limit) static int[]find(int[] reference, int[] sample) static long[]find(long[] reference, long[] sample) static intfirstMatchingIndex(int[] reference, int[] sample, int limit) static intfirstMatchingIndex(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.
-
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)
-