Package org.openmetadata.service.jdbi3
Interface CollectionDAO.UsageDAO
- Enclosing interface:
- CollectionDAO
public static interface CollectionDAO.UsageDAO
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidcomputePercentile(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 functionvoidgetLatestUsage(String id) Get latest usage recordgetUsageById(UUID id, String date, int days) voidinsertOrReplaceCount(String date, UUID id, String entityType, int count1) voidinsertOrUpdateCount(String date, UUID id, String entityType, int count1)
-
Method Details
-
insertOrReplaceCount
-
insertOrUpdateCount
-
getUsageById
-
getLatestUsage
Get latest usage record -
delete
-
computePercentile
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
-