class SerdeFeaturesFactory {

  public static SerdeFeatures buildKeyFeatures(
      final LogicalSchema schema,
      final Format keyFormat
  ) {
    final ImmutableSet.Builder<SerdeFeature> builder = ImmutableSet.builder();

    getKeyWrapping(schema.key().size() == 1, keyFormat)
        .ifPresent(builder::add);

    return SerdeFeatures.from(builder.build());
  }

  private  SerdeFeaturesFactory();

}