public class TwitterStream extends Object
The input is a JSON text file with lines separated by newline characters.
Usage: TwitterStream <text path>
If no parameters are provided, the program is run with default data from
TwitterStreamData.
This example shows how to:
| Modifier and Type | Class and Description |
|---|---|
static class |
TwitterStream.SelectEnglishAndTokenizeFlatMap
Make sentence from english tweets.
|
static class |
TwitterStream.SelectMaxOccurence
Implements a user-defined FlatMapFunction that check if the word's current occurence
is higher than the maximum occurence.
|
| Constructor and Description |
|---|
TwitterStream() |
Copyright © 2014 The Apache Software Foundation. All rights reserved.