Interface PinotMetricName


  • public interface PinotMetricName
    Metric Name in Pinot.
    • Method Summary

      Modifier and Type Method Description
      boolean equals​(Object obj)
      Overrides the equals method.
      Object getMetricName()
      Returns the actual metric name.
      int hashCode()
      Overrides the hashCode method.
      String toString()
      Overrides the toString method.
    • Method Detail

      • getMetricName

        Object getMetricName()
        Returns the actual metric name.
      • equals

        boolean equals​(Object obj)
        Overrides the equals method. This is needed as PinotMetricName is used as the key of the key-value pair inside the hashmap in MetricsRegistry. Without overriding equals() and hashCode() methods, all the existing k-v pairs stored in hashmap cannot be retrieved by initializing a new key.
        Overrides:
        equals in class Object
      • hashCode

        int hashCode()
        Overrides the hashCode method. This method's contract is the same as equals() method.
        Overrides:
        hashCode in class Object
      • toString

        String toString()
        Overrides the toString method. This could be used to print out the actual metrics name instead of the memory address under this wrapper.
        Overrides:
        toString in class Object