public static class MapReduceSettings.Builder extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
backend |
protected String |
baseUrl |
protected int |
maxShardRetries |
protected int |
maxSliceRetries |
protected int |
millisPerSlice |
protected String |
module |
protected String |
workerQueueName |
Constructor and Description |
---|
MapReduceSettings.Builder() |
MapReduceSettings.Builder(MapReduceSettings settings) |
MapReduceSettings.Builder(MapSettings settings) |
Modifier and Type | Method and Description |
---|---|
MapReduceSettings |
build() |
protected MapReduceSettings.Builder |
self() |
B |
setBackend(String backend)
Deprecated.
Use modules instead.
|
B |
setBaseUrl(String baseUrl)
Sets the base URL that will be used for all requests related to this job.
|
MapReduceSettings.Builder |
setBucketName(String bucketName)
Sets the GCS bucket that will be used for temporary files.
|
MapReduceSettings.Builder |
setMapFanout(int mapFanout)
The maximum number of files the map stage will write to at the same time.
|
B |
setMaxShardRetries(int maxShardRetries)
The number of times a Shard can fail before it gives up and fails the whole job.
|
B |
setMaxSliceRetries(int maxSliceRetries)
The number of times a Slice can fail before triggering a shard retry.
|
MapReduceSettings.Builder |
setMaxSortMemory(Long maxMemory)
The maximum memory the sort stage should allocate (in bytes).
|
MapReduceSettings.Builder |
setMergeFanin(int mergeFanin)
Number of files the merge stage will read at the same time.
|
B |
setMillisPerSlice(int millisPerSlice)
Sets how long a worker will process items before endSlice is called and progress is
checkpointed to datastore.
|
B |
setModule(String module)
Specifies the Module that the job will run on.
|
MapReduceSettings.Builder |
setSortBatchPerEmitBytes(int sortBatchPerEmitBytes)
Size (in bytes) of items to batch together in the output of the sort.
|
MapReduceSettings.Builder |
setSortReadTimeMillis(int sortReadTimeMillis)
The maximum length of time sort should spend reading input before it starts sorting it and
writing it out.
|
B |
setWorkerQueueName(String workerQueueName)
Sets the TaskQueue that will be used to queue the job's tasks.
|
protected String baseUrl
protected String module
protected String backend
protected String workerQueueName
protected int millisPerSlice
protected int maxShardRetries
protected int maxSliceRetries
public MapReduceSettings.Builder()
public MapReduceSettings.Builder(MapReduceSettings settings)
public MapReduceSettings.Builder(MapSettings settings)
protected MapReduceSettings.Builder self()
public MapReduceSettings.Builder setBucketName(String bucketName)
null
the app's default bucket will be used.public MapReduceSettings.Builder setMapFanout(int mapFanout)
public MapReduceSettings.Builder setMaxSortMemory(Long maxMemory)
public MapReduceSettings.Builder setSortReadTimeMillis(int sortReadTimeMillis)
public MapReduceSettings.Builder setSortBatchPerEmitBytes(int sortBatchPerEmitBytes)
public MapReduceSettings.Builder setMergeFanin(int mergeFanin)
public MapReduceSettings build()
public B setBaseUrl(String baseUrl)
public B setModule(String module)
null
, it will run on the current module.@Deprecated public B setBackend(String backend)
public B setWorkerQueueName(String workerQueueName)
public B setMillisPerSlice(int millisPerSlice)
public B setMaxShardRetries(int maxShardRetries)
public B setMaxSliceRetries(int maxSliceRetries)
Copyright © 2015 Google. All rights reserved.