Interface CollectionDAO.UsageDAO

Enclosing interface:
CollectionDAO

public static interface CollectionDAO.UsageDAO
  • Method Details

    • insertOrReplaceCount

      void insertOrReplaceCount(String date, UUID id, String entityType, int count1)
    • insertOrUpdateCount

      void insertOrUpdateCount(String date, UUID id, String entityType, int count1)
    • getUsageById

      List<UsageDetails> getUsageById(UUID id, String date, int days)
    • getLatestUsage

      UsageDetails getLatestUsage(String id)
      Get latest usage record
    • delete

      void delete(UUID id)
    • computePercentile

      void computePercentile(String entityType, String date)
      TODO: Not sure I get what the next comment means, but tests now use mysql 8 so maybe tests can be improved here Note not using in following percentile computation PERCENT_RANK function as unit tests use mysql5.7, and it does not have window function