public static class Options.CreateOpts extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Options.CreateOpts.BlockSize |
static class |
Options.CreateOpts.BufferSize |
static class |
Options.CreateOpts.BytesPerChecksum
This is not needed if ChecksumParam is specified.
|
static class |
Options.CreateOpts.ChecksumParam |
static class |
Options.CreateOpts.CreateParent |
static class |
Options.CreateOpts.Perms |
static class |
Options.CreateOpts.Progress |
static class |
Options.CreateOpts.ReplicationFactor |
Modifier and Type | Method and Description |
---|---|
static Options.CreateOpts.BlockSize |
blockSize(long bs) |
static Options.CreateOpts.BufferSize |
bufferSize(int bs) |
static Options.CreateOpts.BytesPerChecksum |
bytesPerChecksum(short crc) |
static Options.CreateOpts.ChecksumParam |
checksumParam(Options.ChecksumOpt csumOpt) |
static Options.CreateOpts.CreateParent |
createParent() |
static Options.CreateOpts.CreateParent |
donotCreateParent() |
protected static Options.CreateOpts |
getOpt(Class<? extends Options.CreateOpts> theClass,
Options.CreateOpts... opts)
Get an option of desired type
|
static Options.CreateOpts.Perms |
perms(FsPermission perm) |
static Options.CreateOpts.ReplicationFactor |
repFac(short rf) |
protected static <T extends Options.CreateOpts> |
setOpt(T newValue,
Options.CreateOpts... opts)
set an option
|
public static Options.CreateOpts.BlockSize blockSize(long bs)
public static Options.CreateOpts.BufferSize bufferSize(int bs)
public static Options.CreateOpts.ReplicationFactor repFac(short rf)
public static Options.CreateOpts.BytesPerChecksum bytesPerChecksum(short crc)
public static Options.CreateOpts.ChecksumParam checksumParam(Options.ChecksumOpt csumOpt)
public static Options.CreateOpts.Perms perms(FsPermission perm)
public static Options.CreateOpts.CreateParent createParent()
public static Options.CreateOpts.CreateParent donotCreateParent()
protected static Options.CreateOpts getOpt(Class<? extends Options.CreateOpts> theClass, Options.CreateOpts... opts)
theClass
- is the desired class of the optopts
- - not null - at least one opt must be passedprotected static <T extends Options.CreateOpts> Options.CreateOpts[] setOpt(T newValue, Options.CreateOpts... opts)
newValue
- the option to be setopts
- - the option is set into this array of optsCopyright © 2014 Apache Software Foundation. All Rights Reserved.