Modifier and Type | Class and Description |
---|---|
static class |
MongoState.Options |
Modifier | Constructor and Description |
---|---|
protected |
MongoState(Map<String,Object> map,
MongoState.Options options) |
Modifier and Type | Method and Description |
---|---|
List<List<Values>> |
batchRetrieve(List<TridentTuple> tridentTuples)
Batch retrieve values.
|
void |
beginCommit(Long txid) |
void |
commit(Long txid) |
protected void |
prepare() |
void |
updateState(List<TridentTuple> tuples,
TridentCollector collector)
Update Mongo state.
|
protected MongoState(Map<String,Object> map, MongoState.Options options)
protected void prepare()
public void beginCommit(Long txid)
beginCommit
in interface State
public void updateState(List<TridentTuple> tuples, TridentCollector collector)
Update Mongo state.
tuples
- trident tuplescollector
- trident collectorpublic List<List<Values>> batchRetrieve(List<TridentTuple> tridentTuples)
Batch retrieve values.
tridentTuples
- trident tuplesCopyright © 2020 The Apache Software Foundation. All rights reserved.