/** * Adds a key-as-column mapping to store the record field {@code name} in the given {@code * family}, using column qualifiers built from its keys or field names appended to the {@code * qualifierPrefix}. * * <p>The record field must be a map or a record. * * @param name The name of a record field * @param family The column family for storing the map or record values * @param qualifierPrefix A prefix to add when building column qualifiers * @return This Builder for method chaining */ public Builder keyAsColumn(String name, String family, String qualifierPrefix) { addField(FieldMapping.keyAsColumn(name, family, qualifierPrefix)); return this; }
/** * Adds a key-as-column mapping to store the record field {@code name} in the given {@code * family}, using its keys or fields as column qualifiers. * * <p>The record field must be a map or a record. * * @param name The name of a record field * @param family The column family for storing the map or record values * @return This Builder for method chaining */ public Builder keyAsColumn(String name, String family) { addField(FieldMapping.keyAsColumn(name, family)); return this; }