public class CreateFileBuilder extends org.apache.hadoop.fs.FSDataOutputStreamBuilder<org.apache.hadoop.fs.FSDataOutputStream,CreateFileBuilder>
Modifier and Type | Class and Description |
---|---|
static interface |
CreateFileBuilder.CreateFileBuilderCallbacks
Callbacks for creating the file.
|
static class |
CreateFileBuilder.CreateFileOptions
Create file options as built from the builder set or the classic
entry point.
|
Modifier and Type | Field and Description |
---|---|
static EnumSet<org.apache.hadoop.fs.CreateFlag> |
CREATE_NO_OVERWRITE_FLAGS
Flag set to create without overwrite.
|
static EnumSet<org.apache.hadoop.fs.CreateFlag> |
CREATE_OVERWRITE_FLAGS
Flag set to create with overwrite.
|
static CreateFileBuilder.CreateFileOptions |
OPTIONS_CREATE_FILE_NO_OVERWRITE
Classic create file option set: no overwrite.
|
static CreateFileBuilder.CreateFileOptions |
OPTIONS_CREATE_FILE_OVERWRITE
Classic create file option set: overwriting.
|
static CreateFileBuilder.CreateFileOptions |
OPTIONS_CREATE_FILE_PERFORMANCE
Performance create options.
|
Constructor and Description |
---|
CreateFileBuilder(org.apache.hadoop.fs.FileSystem fileSystem,
org.apache.hadoop.fs.Path path,
CreateFileBuilder.CreateFileBuilderCallbacks callbacks)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.fs.FSDataOutputStream |
build() |
EnumSet<org.apache.hadoop.fs.CreateFlag> |
getFlags()
make the flag getter public.
|
CreateFileBuilder |
getThisBuilder() |
CreateFileBuilder |
withFlags(EnumSet<org.apache.hadoop.fs.CreateFlag> flags)
Pass flags down.
|
append, blockSize, bufferSize, checksumOpt, create, getBlockSize, getBufferSize, getChecksumOpt, getFS, getPermission, getProgress, getReplication, isRecursive, overwrite, permission, progress, recursive, replication
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, rejectUnknownMandatoryKeys
public static final EnumSet<org.apache.hadoop.fs.CreateFlag> CREATE_OVERWRITE_FLAGS
public static final EnumSet<org.apache.hadoop.fs.CreateFlag> CREATE_NO_OVERWRITE_FLAGS
public static final CreateFileBuilder.CreateFileOptions OPTIONS_CREATE_FILE_OVERWRITE
public static final CreateFileBuilder.CreateFileOptions OPTIONS_CREATE_FILE_NO_OVERWRITE
public static final CreateFileBuilder.CreateFileOptions OPTIONS_CREATE_FILE_PERFORMANCE
public CreateFileBuilder(@Nonnull org.apache.hadoop.fs.FileSystem fileSystem, @Nonnull org.apache.hadoop.fs.Path path, @Nonnull CreateFileBuilder.CreateFileBuilderCallbacks callbacks)
fileSystem
- fs; used by superclass.path
- qualified path to createcallbacks
- callbacks.public CreateFileBuilder getThisBuilder()
getThisBuilder
in class org.apache.hadoop.fs.FSDataOutputStreamBuilder<org.apache.hadoop.fs.FSDataOutputStream,CreateFileBuilder>
public org.apache.hadoop.fs.FSDataOutputStream build() throws IOException
build
in interface org.apache.hadoop.fs.FSBuilder<org.apache.hadoop.fs.FSDataOutputStream,CreateFileBuilder>
build
in class org.apache.hadoop.fs.FSDataOutputStreamBuilder<org.apache.hadoop.fs.FSDataOutputStream,CreateFileBuilder>
IOException
public CreateFileBuilder withFlags(EnumSet<org.apache.hadoop.fs.CreateFlag> flags)
flags
- input flags.public EnumSet<org.apache.hadoop.fs.CreateFlag> getFlags()
getFlags
in class org.apache.hadoop.fs.FSDataOutputStreamBuilder<org.apache.hadoop.fs.FSDataOutputStream,CreateFileBuilder>
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.