Class StoreVersionName

java.lang.Object
com.linkedin.venice.meta.StoreVersionName

public class StoreVersionName extends Object
This class is a handle to refer to a store-version. It intentionally does not contain any operational state related to the referenced store-version. It is appropriate to use as a map key. Its equals(Object) and hashCode() delegate to the same functions on the String form of the store-version name. The purpose of using this handle class rather than a String is two-fold: - It is a stronger type than String, since a String can contain anything. - It can be more performant, since shared instances are allocated once and reused thus causing less garbage, and shared instances are also faster to use as map keys (the hash code gets cached, and equality checks can be resolved by identity, in the common case).
  • Method Details

    • getName

      @Nonnull public String getName()
    • getStore

      @Nonnull public StoreName getStore()
    • getStoreName

      @Nonnull public String getStoreName()
    • getVersionNumber

      public int getVersionNumber()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object