@Override
  public int hashCode() {
    return getName().hashCode();
  }
Returns the prefix of the String key that precedes the first "|" in the key.

@throws ClassCastException if the key is not an instance of String
@throws IllegalArgumentException if the key does not contain at least one "|".
geode-core/src/main/java/org/apache/geode/cache/util/StringPrefixPartitionResolver.java