private void validateRange(long startTimestamp, long endTimestamp) throws IllegalArgumentException {
    if (startTimestamp < 0) {
      throw new IllegalArgumentException(String.format("Start timestamp :%d is less than zero", startTimestamp));
    }

    if (endTimestamp < 0) {
      throw new IllegalArgumentException(String.format("End timestamp :%d is less than zero", endTimestamp));
    }

    if (endTimestamp < startTimestamp) {
      throw new IllegalArgumentException(String.format("End timestamp :%d is less than start timestamp: %d", endTimestamp, startTimestamp));
    }
  }
Creates a {@link TimeSeriesStoreImpl} in append mode.

@param kvStore the backing kv store to use
samza-core/src/main/java/org/apache/samza/operators/impl/store/TimeSeriesStoreImpl.java