public class TransformTask<S,T> extends Configured
Modifier and Type | Class and Description |
---|---|
static class |
TransformTask.CheckEntityClass<E> |
Constructor and Description |
---|
TransformTask(View<S> from,
View<T> to,
DoFn<S,T> transform) |
Modifier and Type | Method and Description |
---|---|
long |
getCount() |
TransformTask |
noCompaction()
Do not shuffle data to writers to minimize the number of files.
|
PipelineResult |
run() |
TransformTask |
setFilesPerPartition(int filesPerPartition)
Set the number of files to create in each output partition.
|
TransformTask |
setNumWriters(int numWriters)
Set the number of concurrent writer processes.
|
TransformTask |
setWriteMode(Target.WriteMode mode)
Set the output write mode: default, overwrite, or append.
|
getConf, setConf
public long getCount()
public TransformTask noCompaction()
public TransformTask setNumWriters(int numWriters)
If set to 0, this disables compaction.
numWriters
- the number of concurrent writer processespublic TransformTask setFilesPerPartition(int filesPerPartition)
filesPerPartition
- a target number of files per output partitionpublic TransformTask setWriteMode(Target.WriteMode mode)
mode
- the output write modepublic PipelineResult run() throws IOException
IOException
Copyright © 2013–2015. All rights reserved.