public static enum ApiHdfsReplicationArguments.ReplicationStrategy extends Enum<ApiHdfsReplicationArguments.ReplicationStrategy>
Enum Constant and Description |
---|
DYNAMIC
Distributes file replication tasks in small sets to the mappers, and
as each mapper is done processing its set of tasks, it picks up and
processes the next unallocated set of tasks.
|
STATIC
Distributes file replication tasks among the mappers up front, trying to
achieve a uniform distribution based on the file sizes.
|
Modifier and Type | Method and Description |
---|---|
static ApiHdfsReplicationArguments.ReplicationStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ApiHdfsReplicationArguments.ReplicationStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ApiHdfsReplicationArguments.ReplicationStrategy STATIC
public static final ApiHdfsReplicationArguments.ReplicationStrategy DYNAMIC
public static ApiHdfsReplicationArguments.ReplicationStrategy[] values()
for (ApiHdfsReplicationArguments.ReplicationStrategy c : ApiHdfsReplicationArguments.ReplicationStrategy.values()) System.out.println(c);
public static ApiHdfsReplicationArguments.ReplicationStrategy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © Cloudera, Inc. Released under Apache License, Version 2.0.