Class ShardRequestCache
java.lang.Object
org.opensearch.index.cache.request.ShardRequestCache
Tracks the portion of the request cache in use for a particular shard.
- Opensearch.api:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
onCached
(long keyRamBytesUsed, org.opensearch.core.common.bytes.BytesReference value) void
onCached
(org.apache.lucene.util.Accountable key, org.opensearch.core.common.bytes.BytesReference value) void
onHit()
void
onMiss()
void
onRemoval
(long keyRamBytesUsed, org.opensearch.core.common.bytes.BytesReference value, boolean evicted) void
onRemoval
(org.apache.lucene.util.Accountable key, org.opensearch.core.common.bytes.BytesReference value, boolean evicted) stats()
-
Constructor Details
-
ShardRequestCache
public ShardRequestCache()
-
-
Method Details
-
stats
-
onHit
public void onHit() -
onMiss
public void onMiss() -
onCached
public void onCached(long keyRamBytesUsed, org.opensearch.core.common.bytes.BytesReference value) -
onRemoval
public void onRemoval(long keyRamBytesUsed, org.opensearch.core.common.bytes.BytesReference value, boolean evicted) -
onCached
public void onCached(org.apache.lucene.util.Accountable key, org.opensearch.core.common.bytes.BytesReference value) -
onRemoval
public void onRemoval(org.apache.lucene.util.Accountable key, org.opensearch.core.common.bytes.BytesReference value, boolean evicted)
-