Interface ITablePartitionService


public interface ITablePartitionService
Interface to support partition table
  • Method Details

    • isPartitionedTable

      boolean isPartitionedTable(MTable table, String trxName)
      Is table already a partitioned table in DB
      Parameters:
      table -
      trxName -
      Returns:
      true if table have been partition in DB
    • createPartitionedTable

      boolean createPartitionedTable(MTable table, String trxName, ProcessInfo processInfo)
      Make existing table a partition table
      Parameters:
      table -
      trxName -
      processInfo -
      Returns:
      true if success
    • addPartitionAndMigrateData

      boolean addPartitionAndMigrateData(MTable table, String trxName, ProcessInfo processInfo)
      Add new partition for new data and migrate data to new partition (if needed by DB)
      Parameters:
      table -
      trxName -
      processInfo -
      Returns:
      true if success
    • runPostPartitionProcess

      boolean runPostPartitionProcess(MTable table, String trxName, ProcessInfo processInfo)
      Run post partition process (if needed)
      Parameters:
      table -
      trxName -
      processInfo -
      Returns:
      true if success
    • isValidConfiguration

      String isValidConfiguration(MTable table)
      Validate partition configuration for table object
      Parameters:
      table -
      Returns:
      String error-code - null if not error
    • isValidConfiguration

      String isValidConfiguration(MColumn column)
      Validate partition configuration for column object
      Parameters:
      column -
      Returns:
      String error-code - null if not error
    • detachPartition

      void detachPartition(MTable table, X_AD_TablePartition partition, String trxName, ProcessInfo processInfo)
      Detach an attached table partition
      Parameters:
      table -
      partition -
      trxName -
      processInfo -
    • reattachPartition

      void reattachPartition(MTable table, X_AD_TablePartition partition, String trxName, ProcessInfo processInfo)
      Re-attach a detached table partition
      Parameters:
      table -
      partition -
      trxName -
      processInfo -