Interface IndexFieldDataCache.Listener

All Known Implementing Classes:
ShardFieldData
Enclosing interface:
IndexFieldDataCache

public static interface IndexFieldDataCache.Listener
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    onCache​(ShardId shardId, String fieldName, org.apache.lucene.util.Accountable ramUsage)
    Called after the fielddata is loaded during the cache phase
    default void
    onRemoval​(ShardId shardId, String fieldName, boolean wasEvicted, long sizeInBytes)
    Called after the fielddata is unloaded
  • Method Details

    • onCache

      default void onCache(ShardId shardId, String fieldName, org.apache.lucene.util.Accountable ramUsage)
      Called after the fielddata is loaded during the cache phase
    • onRemoval

      default void onRemoval(ShardId shardId, String fieldName, boolean wasEvicted, long sizeInBytes)
      Called after the fielddata is unloaded