Interface GlobalOrdinalsAccounting

All Known Implementing Classes:
GlobalOrdinalsIndexFieldData

public interface GlobalOrdinalsAccounting
An interface global ordinals index field data instances can implement in order to keep track of building time costs. There is no global ordinal field data interface, so this is its own thing now.

This is a little bit similar to Accountable. The building time is a big cost for global ordinals and one of its downsides. Each time the an IndexReader gets re-opened, then global ordinals need to be rebuild. The cost depends on the cardinality of the field.

  • Method Details

    • getValueCount

      long getValueCount()
      Returns:
      unique value count of global ordinals implementing this interface.
    • getBuildingTime

      TimeValue getBuildingTime()
      Returns:
      the total time spent building this global ordinal instance.