public class InputStream extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
InputStream.Builder |
Modifier and Type | Field and Description |
---|---|
NormalDistStats |
execTime |
String |
fromComponent |
GroupingType |
groupingType |
String |
id |
NormalDistStats |
processTime |
String |
toComponent |
Constructor and Description |
---|
InputStream(String fromComponent,
String toComponent,
String id,
NormalDistStats execTime,
NormalDistStats processTime,
GroupingType groupingType)
Create a new input stream to a bolt.
|
Modifier and Type | Method and Description |
---|---|
static InputStream |
fromConf(Map<String,Object> conf)
Create an output stream from a config.
|
GlobalStreamId |
gsid()
Get the global stream id for this input stream.
|
InputStream |
remap(Map<String,String> remappedComponents,
Map<GlobalStreamId,GlobalStreamId> remappedStreams)
Remap the names of components.
|
InputStream |
replaceShuffleWithLocalOrShuffle()
Replace all SHUFFLE groupings with LOCAL_OR_SHUFFLE.
|
Map<String,Object> |
toConf()
Convert this to a conf.
|
public final String fromComponent
public final String toComponent
public final String id
public final NormalDistStats execTime
public final NormalDistStats processTime
public final GroupingType groupingType
public InputStream(String fromComponent, String toComponent, String id, NormalDistStats execTime, NormalDistStats processTime, GroupingType groupingType)
fromComponent
- the source component of the stream.id
- the id of the streamexecTime
- exec time statsprocessTime
- process time statspublic static InputStream fromConf(Map<String,Object> conf)
conf
- the config to read from.public GlobalStreamId gsid()
public InputStream remap(Map<String,String> remappedComponents, Map<GlobalStreamId,GlobalStreamId> remappedStreams)
remappedComponents
- old name to new name of components.remappedStreams
- old ID to new ID of streams.public InputStream replaceShuffleWithLocalOrShuffle()
Copyright © 2023 The Apache Software Foundation. All rights reserved.