FSBuilder<java.util.concurrent.CompletableFuture<FSDataInputStream>,FutureDataInputStreamBuilder>FutureDataInputStreamBuilderImpl@Public @Unstable public interface FutureDataInputStreamBuilder extends FSBuilder<java.util.concurrent.CompletableFuture<FSDataInputStream>,FutureDataInputStreamBuilder>
FSBuilder.opt(String, int) and FSBuilder.must(String, int)
variants provide implementation-agnostic way to customize the builder.
Each FS-specific builder implementation can interpret the FS-specific
options accordingly, for example:
If the option is not related to the file system, the option will be ignored.
If the option is must, but not supported/known by the file system, an
IllegalArgumentException will be thrown.| Modifier and Type | Method | Description |
|---|---|---|
java.util.concurrent.CompletableFuture<FSDataInputStream> |
build() |
Instantiate the object which was being built.
|
default FutureDataInputStreamBuilder |
withFileStatus(FileStatus status) |
A FileStatus may be provided to the open request.
|
java.util.concurrent.CompletableFuture<FSDataInputStream> build() throws java.lang.IllegalArgumentException, java.lang.UnsupportedOperationException, java.io.IOException
FSBuilderbuild in interface FSBuilder<java.util.concurrent.CompletableFuture<FSDataInputStream>,FutureDataInputStreamBuilder>java.lang.IllegalArgumentException - if the parameters are not valid.java.lang.UnsupportedOperationException - if the filesystem does not support
the specific operation.java.io.IOException - on filesystem IO errors.default FutureDataInputStreamBuilder withFileStatus(@Nullable FileStatus status)
status - status: may be nullCopyright © 2008–2025 Apache Software Foundation. All rights reserved.