Package org.apache.hadoop.fs.impl

Class FutureDataInputStreamBuilderImpl

All Implemented Interfaces:
FSBuilder<CompletableFuture<FSDataInputStream>,FutureDataInputStreamBuilder>, FutureDataInputStreamBuilder

@Public @Unstable public abstract class FutureDataInputStreamBuilderImpl extends AbstractFSBuilderImpl<CompletableFuture<FSDataInputStream>,FutureDataInputStreamBuilder> implements FutureDataInputStreamBuilder
Builder for input streams and subclasses whose return value is actually a completable future: this allows for better asynchronous operation. To be more generic, AbstractFSBuilderImpl.opt(String, int) and AbstractFSBuilderImpl.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.