public boolean validate() {
    Preconditions.checkState(seriesCount > 0);
    Preconditions.checkState(seriesCount <= currentBatchSize);
    Preconditions.checkState(nonNullKeyCount >= 0);
    Preconditions.checkState(nonNullKeyCount <= seriesCount);

    validateDuplicateCount();
    return true;
  }
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