Interface TableProcedureInterface

All Known Implementing Classes:
AbstractCloseTableRegionsProcedure, AbstractStateMachineNamespaceProcedure, AbstractStateMachineRegionProcedure, AbstractStateMachineTableProcedure, AssignProcedure, CloneSnapshotProcedure, CloseExcessRegionReplicasProcedure, CloseRegionProcedure, CloseTableRegionsProcedure, CreateNamespaceProcedure, CreateTableProcedure, DeleteNamespaceProcedure, DeleteTableProcedure, DisableTableProcedure, EnableTableProcedure, FlushRegionProcedure, FlushTableProcedure, GCMergedRegionsProcedure, GCMultipleMergedRegionsProcedure, GCRegionProcedure, InitializeStoreFileTrackerProcedure, InitMetaProcedure, LockProcedure, MergeTableRegionsProcedure, MigrateRSGroupProcedure, ModifyColumnFamilyStoreFileTrackerProcedure, ModifyNamespaceProcedure, ModifyStoreFileTrackerProcedure, ModifyTableDescriptorProcedure, ModifyTableProcedure, ModifyTableStoreFileTrackerProcedure, MoveRegionProcedure, OpenRegionProcedure, RegionRemoteProcedureBase, RegionTransitionProcedure, ReopenTableRegionsProcedure, RestoreSnapshotProcedure, SnapshotProcedure, SnapshotRegionProcedure, SnapshotVerifyProcedure, SplitTableRegionProcedure, TransitRegionStateProcedure, TruncateRegionProcedure, TruncateTableProcedure, UnassignProcedure

@Private public interface TableProcedureInterface
Procedures that operates on a specific Table (e.g. create, delete, snapshot, ...) must implement this interface to allow the system handle the lock/concurrency problems.
  • Field Details

    • DUMMY_NAMESPACE_TABLE_NAME

      Used for acquire/release lock for namespace related operations, just a place holder as we do not have namespace table any more.
  • Method Details

    • getTableName

      Returns the name of the table the procedure is operating on
    • getTableOperationType

      Given an operation type we can take decisions about what to do with pending operations. e.g. if we get a delete and we have some table operation pending (e.g. add column) we can abort those operations.
      Returns:
      the operation type that the procedure is executing.