class NoneFormat implements Format {

  @Override
  public Serde<List<?>> getSerde(
      final PersistenceSchema schema,
      final Map<String, String> formatProperties,
      final KsqlConfig ksqlConfig,
      final Supplier<SchemaRegistryClient> srClientFactory
  ) {
    FormatProperties.validateProperties(name(), formatProperties, getSupportedProperties());
    SerdeUtils.throwOnUnsupportedFeatures(schema.features(), supportedFeatures());

    if (!schema.columns().isEmpty()) {
      throw new KsqlException("The '" + NAME
          + "' format can only be used when no columns are defined. Got: " + schema.columns());
    }

    return new KsqlVoidSerde<>();
  }

}