public CompletableFuture executeOpenFile()

in hadoop-api-shim/src/main/java/org/apache/hadoop/fs/shim/impl/OpenFileThroughClassicAPI.java [47:59]


  public CompletableFuture<FSDataInputStream> executeOpenFile(
      final OpenFileBuilder source)
      throws IllegalArgumentException, UnsupportedOperationException, IOException {

    Path path = fileSystem.makeQualified(source.getPath());
    LOG.debug("Opening file at {} through builder API", path);

    if (!source.getMandatoryKeys().isEmpty()) {
      throw new IllegalArgumentException("Mandatory keys not supported");
    }
    return eval(() ->
        fileSystem.open(source.getPath()));
  }