|
Spring for Apache Hadoop | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.yarn.batch.partition.AbstractPartitionHandler
org.springframework.yarn.batch.partition.SplitterPartitionHandler
public class SplitterPartitionHandler
Implementation of Spring Batch PartitionHandler which does
partitioning based on number of input files from HDFS.
| Constructor Summary | |
|---|---|
SplitterPartitionHandler()
Instantiates a new splitter partition handler. |
|
SplitterPartitionHandler(AbstractBatchAppmaster batchAppmaster)
Instantiates a new splitter partition handler. |
|
| Method Summary | |
|---|---|
protected java.util.Map<org.springframework.batch.core.StepExecution,ContainerRequestHint> |
createRequestData(java.util.Set<org.springframework.batch.core.StepExecution> stepExecutions)
Subclass may override this method to assign a specific ContainerRequestHint to
a StepExecution. |
protected java.util.Set<org.springframework.batch.core.StepExecution> |
createSplits(org.springframework.batch.core.partition.StepExecutionSplitter stepSplitter,
org.springframework.batch.core.StepExecution stepExecution)
Creates the splits. |
| Methods inherited from class org.springframework.yarn.batch.partition.AbstractPartitionHandler |
|---|
getKeySplitLocations, getStepName, handle, setBatchAppmaster, setKeySplitLocations, setStepName, setYarnAppmaster, waitCompleteState |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SplitterPartitionHandler()
public SplitterPartitionHandler(AbstractBatchAppmaster batchAppmaster)
batchAppmaster - the batch appmaster| Method Detail |
|---|
protected java.util.Set<org.springframework.batch.core.StepExecution> createSplits(org.springframework.batch.core.partition.StepExecutionSplitter stepSplitter,
org.springframework.batch.core.StepExecution stepExecution)
throws java.lang.Exception
AbstractPartitionHandler
createSplits in class AbstractPartitionHandlerstepSplitter - the step splitterstepExecution - the step execution
java.lang.Exception - the exception
protected java.util.Map<org.springframework.batch.core.StepExecution,ContainerRequestHint> createRequestData(java.util.Set<org.springframework.batch.core.StepExecution> stepExecutions)
throws java.lang.Exception
AbstractPartitionHandlerContainerRequestHint to
a StepExecution. This would be needed in cases where step should be executed
in a specific host or rack considering data locality.
Default implementation returns an empty map.
createRequestData in class AbstractPartitionHandlerstepExecutions - Set of step executions
java.lang.Exception - If error occurred
|
Spring for Apache Hadoop | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||