public EventHubSystemProducer.PartitioningMethod getPartitioningMethod(String systemName) {
    String partitioningMethod = get(String.format(CONFIG_PRODUCER_PARTITION_METHOD, systemName),
            DEFAULT_CONFIG_PRODUCER_PARTITION_METHOD);
    return EventHubSystemProducer.PartitioningMethod.valueOf(partitioningMethod);

  }
Get the partition method of the systemName. By default partitioning is handled by Event Hubs.

@param systemName name of the system
@return The method the producer should use to partition the outgoing data
samza-azure/src/main/java/org/apache/samza/system/eventhub/EventHubConfig.java