@InterfaceAudience.Private @InterfaceStability.Unstable public class StreamingBuilder extends Object implements Builder<Streaming>
Streaming.
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 |
|---|
StreamingBuilder()
Creates a new
StreamingBuilder. |
| Modifier and Type | Method and Description |
|---|---|
Streaming |
build()
Creates a new
Streaming object with the properties stores in this builder. |
StreamingBuilder |
withEnv(String env)
Registers an environment variable with this builder.
|
StreamingBuilder |
withMapper(String mapper)
Registers a mapper with this builder.
|
StreamingBuilder |
withRecordReader(String recordReader)
Registers a record reader with this builder.
|
StreamingBuilder |
withRecordReaderMapping(String recordReaderMapping)
Registers a record reader mapping with this builder.
|
StreamingBuilder |
withReducer(String reducer)
Registers a reducer with this builder.
|
public StreamingBuilder()
StreamingBuilder.public StreamingBuilder withMapper(String mapper)
mapper - The mapper to register with this builder.public StreamingBuilder withReducer(String reducer)
reducer - The reducer to register with this builder.public StreamingBuilder withRecordReader(String recordReader)
recordReader - The record reader to register with this builder.public StreamingBuilder withRecordReaderMapping(String recordReaderMapping)
recordReaderMapping - The record reader mapping to register with this builder.public StreamingBuilder withEnv(String env)
env - The environment variable to register with this builder.public Streaming build()
Copyright © 2021 Apache Software Foundation. All rights reserved.