class SerdeFeaturesFactory {

  public static SerdeFeatures buildValueFeatures(
      final LogicalSchema schema,
      final Format valueFormat,
      final SerdeFeatures explicitFeatures,
      final KsqlConfig ksqlConfig
  ) {
    final boolean singleColumn = schema.value().size() == 1;

    final ImmutableSet.Builder<SerdeFeature> builder = ImmutableSet.builder();

    getValueWrapping(singleColumn, valueFormat, explicitFeatures, ksqlConfig)
        .ifPresent(builder::add);

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

  private  SerdeFeaturesFactory();

}