Skip to content

Commit

Permalink
Fixing javadoc issue
Browse files Browse the repository at this point in the history
Signed-off-by: Sagar Upadhyaya <[email protected]>
  • Loading branch information
sgup432 committed Sep 29, 2023
1 parent df8b26e commit 93c1172
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ public DelegatingCacheHelper getDelegatingCacheHelper() {
return this.delegatingCacheHelper;
}

/**
* Wraps existing IndexReader cache helper which internally provides a way to wrap CacheKey.
* @opensearch.internal
*/
public class DelegatingCacheHelper implements CacheHelper {
CacheHelper cacheHelper;
DelegatingCacheKey serializableCacheKey;
Expand All @@ -103,6 +107,10 @@ public void addClosedListener(ClosedListener listener) {
}
}

/**
* Wraps internal IndexReader.CacheKey and attaches a uniqueId to it which can be eventually be used instead of
* object itself for serialization purposes.
*/
public class DelegatingCacheKey {
CacheKey cacheKey;
private final UUID uniqueId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ void invalidate(CacheEntity cacheEntity, DirectoryReader reader, BytesReference
*
* @opensearch.internal
*/
protected static class Loader implements CacheLoader<Key, BytesReference> {
private static class Loader implements CacheLoader<Key, BytesReference> {

private final CacheEntity entity;
private final CheckedSupplier<BytesReference, IOException> loader;
Expand Down

0 comments on commit 93c1172

Please sign in to comment.