The heart of the topology will be a Trident state implementation responsible for translating Trident tuples into graph structures and persisting them. Recall that a Trident state implementation consists of three components:
StateFactoryinterface defines the method Trident uses to create the persistent
State: The Trident
Stateinterface defines the
commit()methods that are called before and after a Trident batch partition is written to the backing store. If the write succeeds (that is, all tuples are processed without error), Trident will call the
StateUpdaterinterface defines the
updateState()method that is called to update the state, ...