public class TransactionalGlobalCount extends Object
This is a basic example of a transactional topology. It keeps a count of the number of tuples seen so far in a database. The source of data and the databases are mocked out as in memory maps for demonstration purposes.
Modifier and Type | Class and Description |
---|---|
static class |
TransactionalGlobalCount.BatchCount |
static class |
TransactionalGlobalCount.UpdateGlobalCount |
static class |
TransactionalGlobalCount.Value |
Modifier and Type | Field and Description |
---|---|
static Map<Integer,List<List<Object>>> |
DATA |
static Map<String,TransactionalGlobalCount.Value> |
DATABASE |
static String |
GLOBAL_COUNT_KEY |
static int |
PARTITION_TAKE_PER_BATCH |
Constructor and Description |
---|
TransactionalGlobalCount() |
public static final int PARTITION_TAKE_PER_BATCH
public static Map<String,TransactionalGlobalCount.Value> DATABASE
public static final String GLOBAL_COUNT_KEY
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.