@InterfaceAudience.Private @InterfaceStability.Unstable public class PipesBuilder extends Object implements Builder<Pipes>
Pipes.
The properties of the builder can only be set once, an attempt to set them a second time will trigger
an IllegalStateException. The properties that are lists are an exception to this rule, of course multiple
elements can be added / removed.
Builder instances can be used to build several elements, although properties already set cannot be changed after
a call to build() either.| Constructor and Description |
|---|
PipesBuilder()
Creates a new
PipesBuilder. |
| Modifier and Type | Method and Description |
|---|---|
Pipes |
build()
Creates a new
Pipes object with the properties stores in this builder. |
PipesBuilder |
withInputformat(String inputformat)
Registers an input format with this builder.
|
PipesBuilder |
withMap(String map)
Registers a mapper with this builder.
|
PipesBuilder |
withPartitioner(String partitioner)
Registers a partitioner with this builder.
|
PipesBuilder |
withProgram(String program)
Registers an executable program with this builder.
|
PipesBuilder |
withReduce(String reduce)
Registers a reducer with this builder.
|
PipesBuilder |
withWriter(String writer)
Registers a writer with this builder.
|
public PipesBuilder()
PipesBuilder.public PipesBuilder withMap(String map)
map - The mapper to register with this builder.public PipesBuilder withReduce(String reduce)
reduce - The reducer to register with this builder.public PipesBuilder withInputformat(String inputformat)
inputformat - The input format to register with this builder.public PipesBuilder withPartitioner(String partitioner)
partitioner - The partitioner to register with this builder.public PipesBuilder withWriter(String writer)
writer - The writer to register with this builder.public PipesBuilder withProgram(String program)
program - The executable program to register with this builder.public Pipes build()
Copyright © 2021 Apache Software Foundation. All rights reserved.