private void validateDuplicateCount() {
    int sum = 0;
    int duplicateCount;
    for (int i = 0; i < seriesCount; i++) {
      duplicateCount = duplicateCounts[i];
      Preconditions.checkState(duplicateCount > 0);
      Preconditions.checkState(duplicateCount <= currentBatchSize);
      sum += duplicateCount;
    }
    Preconditions.checkState(sum == currentBatchSize);
  }
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