|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.fs.Options.CreateOpts
public static class Options.CreateOpts
Class to support the varargs for create() options.
Nested Class Summary | |
---|---|
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
|
Method Summary | ||
---|---|---|
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
|
setOpt(T newValue,
Options.CreateOpts... opts)
set an option |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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 passed
protected 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 opts
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |