Module org.elasticsearch.server
Class FieldDataStats.GlobalOrdinalsStats
java.lang.Object
org.elasticsearch.index.fielddata.FieldDataStats.GlobalOrdinalsStats
- Enclosing class:
FieldDataStats
The global ordinal stats. Keeps track of total build time for all fields that support global ordinals.
Also keeps track of build time per field and the maximum unique value on a shard level.
Global ordinals can speed up sorting and aggregations, but can be expensive to build (dependents on number of unique values). Each time a refresh happens global ordinals need to be rebuilt. These stats should give more insight on these costs.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
-
Constructor Summary
ConstructorsConstructorDescriptionGlobalOrdinalsStats
(long buildTimeMillis, Map<String, FieldDataStats.GlobalOrdinalsStats.GlobalOrdinalFieldStats> fieldGlobalOrdinalsStats) -
Method Summary
-
Constructor Details
-
GlobalOrdinalsStats
public GlobalOrdinalsStats(long buildTimeMillis, Map<String, FieldDataStats.GlobalOrdinalsStats.GlobalOrdinalFieldStats> fieldGlobalOrdinalsStats)
-
-
Method Details
-
getBuildTimeMillis
public long getBuildTimeMillis() -
getFieldGlobalOrdinalsStats
@Nullable public Map<String,FieldDataStats.GlobalOrdinalsStats.GlobalOrdinalFieldStats> getFieldGlobalOrdinalsStats() -
equals
-
hashCode
public int hashCode()
-