public ScanInfo build() {
    if (maxVersions == null && ttl == null && keepDeletedCells == null) {
      return scanInfo;
    }
    return scanInfo.customize(getMaxVersions(), getTTL(), getKeepDeletedCells(), getMinVersions(),
      getTimeToPurgeDeletes());
  }
Helper class for CP hooks to change max versions and TTL.
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/CustomizedScanInfoBuilder.java