Construct a partition key for the given entity.
This is a convenient way to find the partition that a given entity would be written to, or to find a partition using objects from the entity domain.
4950515253545556575859
// access the partition strategy, which produces keys from records final PartitionStrategy partitioner = data.getDescriptor() .getPartitionStrategy(); return partitioner.partitionKeyForEntity(builder.build()); } @Override public int run(String[] args) throws Exception { // open the repository