@InterfaceAudience.Public @InterfaceStability.Unstable public interface FutureDataInputStreamBuilder extends FSBuilder<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 by the file system, a
IllegalArgumentException
will be thrown.Modifier and Type | Method and Description |
---|---|
CompletableFuture<FSDataInputStream> |
build()
Instantiate the object which was being built.
|
CompletableFuture<FSDataInputStream> build() throws IllegalArgumentException, UnsupportedOperationException, IOException
FSBuilder
build
in interface FSBuilder<CompletableFuture<FSDataInputStream>,FutureDataInputStreamBuilder>
IllegalArgumentException
- if the parameters are not valid.UnsupportedOperationException
- if the filesystem does not support
the specific operation.IOException
- on filesystem IO errors.Copyright © 2019 Apache Software Foundation. All rights reserved.