Interface IndexNameGenerator

All Known Implementing Classes:
DefaultIndexNameGenerator
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface IndexNameGenerator
Generator for index names.
Since:
1.11.0
Author:
Michael J. Simons
  • Method Details

    • generateName

      String generateName(Index.Type type, Collection<PropertyType<?>> properties)
      Generates a name for an index with the given type for the given list of properties.
      Parameters:
      type - The type of the index
      properties - The properties to create the index for. All properties will have the same owner.
      Returns:
      A valid index name