/** * Adds a mapping to store the record field {@code name} in the record key. * * <p>The underlying dataset's {@link PartitionStrategy} must have an identity partitioner for * the record field {@code name} so that the value can be recovered. * * @param name The name of a record field * @return This Builder for method chaining */ public Builder key(String name) { addField(FieldMapping.key(name)); return this; }