szetszwo commented on code in PR #8073:
URL: https://github.com/apache/ozone/pull/8073#discussion_r1996964647
##########
hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/utils/db/cache/TableCache.java:
##########
@@ -34,6 +34,7 @@
@Private
@Evolving
public interface TableCache<KEY, VALUE> {
+ CacheResult<?> MAY_EXIST = new
CacheResult<>(CacheResult.CacheStatus.MAY_EXIST, null);
Review Comment:
Add also `mapExist()` method. The is the Collections.emptyList() trick.
```java
static <T> CacheResult<T> mapExist() {
return CacheResult<T> MAY_EXIST;
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]