Interface TableCreateOptionsProvider

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

@Public @FunctionalInterface public interface TableCreateOptionsProvider extends Serializable
Supplies per-destination TableCreateOptions for tables created under CreateDisposition.CREATE_IF_NEEDED.

This is the creation-metadata hook referenced by TableDestination: destinations stay pure table identity, while partitioning and clustering are resolved here. It is invoked only when the sink finds a destination missing and CreateDisposition.CREATE_IF_NEEDED permits creation, not for an existing table or per record.

  • Method Details

    • optionsFor

      TableCreateOptions optionsFor(TableDestination destination)
      Returns the creation options for the given destination.
      Parameters:
      destination - the destination table to create
      Returns:
      the creation options, never null