Github user ilooner commented on a diff in the pull request: https://github.com/apache/drill/pull/984#discussion_r145575588 --- Diff: exec/java-exec/src/main/java/org/apache/drill/exec/record/selection/SelectionVector4.java --- @@ -116,6 +116,14 @@ public void clear() { } } + public static int getBatchIndex(int sv4Index) { + return (sv4Index >> 16) & 0xFFFF; + } + + public static int getRecordIndex(int sv4Index) { + return (sv4Index) & 0xFFFF; + } --- End diff -- Didn't do any performance testing. I mainly intended to use these methods for testing purposes. For example I use them in org.apache.drill.test.BatchUtils .
---