Interface SupportsTruncate


  • @PublicEvolving
    public interface SupportsTruncate
    Enables to delete all existing data in a DynamicTableSink table using TRUNCATE TABLE statement.

    For TRUNCATE TABLE statement, if the corresponding DynamicTableSink have implemented this interface, then the method executeTruncation() will be invoked in execution phase. Otherwise, Flink will throw exception directly.

    • Method Detail

      • executeTruncation

        void executeTruncation()
        Execute truncating table.

        Note: please remember to throw exception if the truncation hasn't been executed successfully, otherwise it'll be still considered to haven been executed successfully by Flink.