public void setRange(long fromIncl, long toExcl) {
    delegate.setRange(fromIncl, toExcl);
  }
Delegates the method to {@link Query#closeAll()}, so no exception is thrown.
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/QueryWrapper.java