Package org.openmetadata.service.jdbi3
Interface CollectionDAO.UsageDAO
-
- Enclosing interface:
- CollectionDAO
public static interface CollectionDAO.UsageDAO
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classCollectionDAO.UsageDAO.UsageDetailsMapper
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcomputePercentile(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 functionvoiddelete(String id)UsageDetailsgetLatestUsage(String id)Get latest usage recordList<UsageDetails>getUsageById(String id, String date, int days)voidinsertOrReplaceCount(String date, String id, String entityType, int count1)voidinsertOrUpdateCount(String date, String id, String entityType, int count1)
-
-
-
Method Detail
-
insertOrReplaceCount
void insertOrReplaceCount(String date, String id, String entityType, int count1)
-
insertOrUpdateCount
void insertOrUpdateCount(String date, String id, String entityType, int count1)
-
getUsageById
List<UsageDetails> getUsageById(String id, String date, int days)
-
getLatestUsage
UsageDetails getLatestUsage(String id)
Get latest usage record
-
delete
void delete(String 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
-
-