public static class DataManagingApp.VideoCuttingStream extends Stream
Stream.Port
Modifier and Type | Field and Description |
---|---|
(package private) int |
maxFramePerFragment
|
static DataType |
OUTPUT_TYPE
|
private static long |
serialVersionUID
|
static Stream.Port |
VIDEO_URL_PORT
|
loggerSingleton
Constructor and Description |
---|
VideoCuttingStream(DataManagingApp.AppPropertyCenter propCenter)
Initialize necessary components of a Stream object.
|
Modifier and Type | Method and Description |
---|---|
void |
addToGlobalStream(Map<DataType,org.apache.spark.streaming.api.java.JavaPairDStream<UUID,TaskData>> globalStreamMap)
Add streaming actions to the global
TaskData stream.
|
List<Stream.Port> |
getPorts()
Get input ports of the stream.
|
public static final Stream.Port VIDEO_URL_PORT
private static final long serialVersionUID
public static final DataType OUTPUT_TYPE
int maxFramePerFragment
public VideoCuttingStream(DataManagingApp.AppPropertyCenter propCenter) throws Exception
propCenter
- System property center.Exception
- On failure
creating singleton.
public void addToGlobalStream(Map<DataType,org.apache.spark.streaming.api.java.JavaPairDStream<UUID,TaskData>> globalStreamMap)
TaskData
stream.
This global stream contains pre-deserialized TaskData messages, so as to save time.
addToGlobalStream
in
class Stream
globalStreamMap
- A map of streams. The key of an entry is the
topic name,
which must be one of the DataType
.
The value is a filtered stream.
public List<Stream.Port> getPorts()
Stream