public class FileReadWordCountTopo extends Object
This topo helps measure speed of word count. Spout loads a file into memory on initialization, then emits the lines in an endless loop.
Modifier and Type | Field and Description |
---|---|
static String |
COUNT_ID |
static String |
COUNT_NUM |
static int |
DEFAULT_COUNT_BOLT_NUM |
static int |
DEFAULT_SPLIT_BOLT_NUM |
static int |
DEFAULT_SPOUT_NUM |
static String |
INPUT_FILE |
static String |
SPLIT_ID |
static String |
SPLIT_NUM |
static String |
SPOUT_ID |
static String |
SPOUT_NUM |
static String |
TOPOLOGY_NAME |
Constructor and Description |
---|
FileReadWordCountTopo() |
public static final String SPOUT_ID
public static final String COUNT_ID
public static final String SPLIT_ID
public static final String TOPOLOGY_NAME
public static final String SPOUT_NUM
public static final String SPLIT_NUM
public static final String COUNT_NUM
public static final String INPUT_FILE
public static final int DEFAULT_SPOUT_NUM
public static final int DEFAULT_SPLIT_BOLT_NUM
public static final int DEFAULT_COUNT_BOLT_NUM
Copyright © 2019 The Apache Software Foundation. All rights reserved.