public class SocketTextStreamWordCount$ extends Object
To start an example socket text stream on your local machine run netcat from a command line, where the parameter specifies the port number:
nc -lk 9999
Usage:
SocketTextStreamWordCount --hostname <name> --port <n> [--output <path>]
This example shows how to:
- use StreamExecutionEnvironment.socketTextStream - write a simple Flink Streaming program in scala. - write and use user-defined functions.
Modifier and Type | Field and Description |
---|---|
static SocketTextStreamWordCount$ |
MODULE$
Static reference to the singleton instance of this Scala object.
|
Constructor and Description |
---|
SocketTextStreamWordCount$() |
public static final SocketTextStreamWordCount$ MODULE$
public void main(String[] args)
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.