public void advance(int duplicateCount) {

    currentLogical += currentDuplicateCount;

    currentDuplicateCount -= duplicateCount;
    if (currentDuplicateCount == 0) {
      seriesPosition++;
      currentIsAllNull = seriesIsAllNull[seriesPosition];
      currentDuplicateCount = duplicateCounts[seriesPosition];

      if (!currentIsAllNull) {
        nonNullKeyPosition++;
        currentHashCode = hashCodes[nonNullKeyPosition];
        setNextNonNullKey(nonNullKeyPosition);
      }
    }
  }
Implementation of when a one key series or a serialized key series is being presented.
ql/src/java/org/apache/hadoop/hive/ql/exec/vector/keyseries/VectorKeySeriesSingleImpl.java