FSBuilder<java.util.concurrent.CompletableFuture<FSDataInputStream>,FutureDataInputStreamBuilder>, FutureDataInputStreamBuilder@Public @Unstable public abstract class FutureDataInputStreamBuilderImpl extends AbstractFSBuilderImpl<java.util.concurrent.CompletableFuture<FSDataInputStream>,FutureDataInputStreamBuilder> implements FutureDataInputStreamBuilder
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.UNKNOWN_MANDATORY_KEY| Modifier | Constructor | Description |
|---|---|---|
protected |
FutureDataInputStreamBuilderImpl(FileContext fc,
Path path) |
Construct from a
FileContext. |
protected |
FutureDataInputStreamBuilderImpl(FileSystem fileSystem,
Path path) |
Constructor.
|
|
FutureDataInputStreamBuilderImpl(FileSystem fileSystem,
PathHandle pathHandle) |
Constructor with PathHandle.
|
| Modifier and Type | Method | Description |
|---|---|---|
FutureDataInputStreamBuilder |
bufferSize(int bufSize) |
Set the size of the buffer to be used.
|
FutureDataInputStreamBuilder |
builder() |
Get the builder.
|
protected int |
getBufferSize() |
|
protected FileSystem |
getFS() |
|
protected FileStatus |
getStatus() |
Get any status set in
withFileStatus(FileStatus). |
FutureDataInputStreamBuilder |
getThisBuilder() |
Get the cast builder.
|
FutureDataInputStreamBuilder |
withFileStatus(FileStatus st) |
A FileStatus may be provided to the open request.
|
getMandatoryKeys, getOptionalKeys, getOptionalPath, getOptionalPathHandle, getOptions, getPath, getPathHandle, must, must, must, must, must, must, must, mustDouble, mustLong, opt, opt, opt, opt, opt, opt, opt, optDouble, optLong, rejectUnknownMandatoryKeys, rejectUnknownMandatoryKeysclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmust, must, must, must, must, must, must, mustDouble, mustLong, opt, opt, opt, opt, opt, opt, opt, optDouble, optLongbuildprotected FutureDataInputStreamBuilderImpl(@Nonnull
FileContext fc,
@Nonnull
Path path)
throws java.io.IOException
FileContext.fc - FileContextpath - path.java.io.IOException - failureprotected FutureDataInputStreamBuilderImpl(@Nonnull
FileSystem fileSystem,
@Nonnull
Path path)
fileSystem - owner FS.path - pathpublic FutureDataInputStreamBuilderImpl(@Nonnull
FileSystem fileSystem,
@Nonnull
PathHandle pathHandle)
fileSystem - owner FS.pathHandle - path handleprotected FileSystem getFS()
protected int getBufferSize()
public FutureDataInputStreamBuilder bufferSize(int bufSize)
bufSize - buffer size.public FutureDataInputStreamBuilder builder()
public FutureDataInputStreamBuilder getThisBuilder()
AbstractFSBuilderImplgetThisBuilder in class AbstractFSBuilderImpl<java.util.concurrent.CompletableFuture<FSDataInputStream>,FutureDataInputStreamBuilder>public FutureDataInputStreamBuilder withFileStatus(@Nullable FileStatus st)
FutureDataInputStreamBuilderwithFileStatus in interface FutureDataInputStreamBuilderst - status: may be nullprotected FileStatus getStatus()
withFileStatus(FileStatus).Copyright © 2008–2025 Apache Software Foundation. All rights reserved.