Class ShardFieldData
java.lang.Object
org.elasticsearch.index.fielddata.ShardFieldData
- All Implemented Interfaces:
IndexFieldDataCache.Listener
public class ShardFieldData extends java.lang.Object implements IndexFieldDataCache.Listener
-
Constructor Summary
Constructors Constructor Description ShardFieldData()
-
Method Summary
Modifier and Type Method Description void
onCache(ShardId shardId, java.lang.String fieldName, org.apache.lucene.util.Accountable ramUsage)
Called after the fielddata is loaded during the cache phasevoid
onRemoval(ShardId shardId, java.lang.String fieldName, boolean wasEvicted, long sizeInBytes)
Called after the fielddata is unloadedFieldDataStats
stats(java.lang.String... fields)
-
Constructor Details
-
ShardFieldData
public ShardFieldData()
-
-
Method Details
-
stats
-
onCache
public void onCache(ShardId shardId, java.lang.String fieldName, org.apache.lucene.util.Accountable ramUsage)Description copied from interface:IndexFieldDataCache.Listener
Called after the fielddata is loaded during the cache phase- Specified by:
onCache
in interfaceIndexFieldDataCache.Listener
-
onRemoval
public void onRemoval(ShardId shardId, java.lang.String fieldName, boolean wasEvicted, long sizeInBytes)Description copied from interface:IndexFieldDataCache.Listener
Called after the fielddata is unloaded- Specified by:
onRemoval
in interfaceIndexFieldDataCache.Listener
-