Class TableTypeRegistryUtils

java.lang.Object
org.apache.ignite.migrationtools.tablemanagement.TableTypeRegistryUtils

public class TableTypeRegistryUtils extends Object
Utility class for handling TableTypeRegistries.
  • Constructor Details

    • TableTypeRegistryUtils

      public TableTypeRegistryUtils()
  • Method Details

    • typesToEntry

      public static Map.Entry<Class<?>,Class<?>> typesToEntry(TableTypeDescriptor descriptor) throws ClassNotFoundException
      Materializes the table types into a key/value pair.
      Parameters:
      descriptor - Table Type descriptor.
      Returns:
      Materialized key/value pair of the table types.
      Throws:
      ClassNotFoundException - if one of the types is not available on the classpath.
    • typeHints

      public static TableTypeDescriptor typeHints(Class<?> keyClass, Class<?> valClass)
      Creates a table descriptor with just the supplied type hints.
      Parameters:
      keyClass - Type of the key.
      valClass - Type of the value.
      Returns:
      the new TableTypeDescriptor instance.