- Type Parameters:
ENTRY - the type of the entry data
WEIGHT - the type of the weights on the data
RESPONSE - the type of the response to the tally
- All Implemented Interfaces:
- net.ashwork.upvote.domain.algorithm.TallyAlgorithm<ENTRY,RESPONSE>, net.ashwork.upvote.domain.algorithm.WeightedTallyAlgorithm<ENTRY,WEIGHT,RESPONSE>
public class DatabaseWeightedTallyAlgorithm<ENTRY,WEIGHT,DAO extends InsertDao<WEIGHT> & GetDao<WEIGHT>,RESPONSE>
extends java.lang.Object
implements net.ashwork.upvote.domain.algorithm.WeightedTallyAlgorithm<ENTRY,WEIGHT,RESPONSE>
An algorithm used to tally all or a specific subset of entries with some
weighted association and return some response about the tallied results.
The result of the supplied algorithm will then be persisted to some table
containing the weights.
- Since:
- 1.0.0