@Override
  public List<LockInfo> extractData(ResultSet rs) throws SQLException, DataAccessException {
    List<LockInfo> result = new ArrayList<>();
    while (rs.next()) {
      try {
        result.add(new LockInfo(rs));
      } catch (MetaException e) {
        throw new MetaWrapperException(e);
      }
    }
    return result;
  }
NEVER call this function without first calling heartbeat(long, long)
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/jdbc/queries/GetLocksByLockId.java