Package com.linkedin.venice.meta
Class StoreName
java.lang.Object
com.linkedin.venice.meta.StoreName
This class is a handle to refer to a store.
It intentionally does not contain any operational state related to the referenced store.
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 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 Summary