Class ShardRequestCache

java.lang.Object
org.opensearch.index.cache.request.ShardRequestCache

@PublicApi(since="1.0.0") public final class ShardRequestCache extends Object
Tracks the portion of the request cache in use for a particular shard.
Opensearch.api:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    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
     
    void
     
    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)
     
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ShardRequestCache

      public ShardRequestCache()
  • Method Details

    • stats

      public RequestCacheStats 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)