public PartitionAttributesFactory<K, V> setPartitionResolver(PartitionResolver<K, V> resolver) {
    partitionAttributes.setPartitionResolver(resolver);
    return this;
  }
Sets the <code>PartitionResolver</code> for the PartitionRegion.

@param resolver the <code>PartitionResolver</code> for the PartitionRegion
@return PartitionAttributeFactory.
geode-core/src/main/java/org/apache/geode/cache/PartitionAttributesFactory.java