Interface TableProcedureInterface
- All Known Implementing Classes:
AbstractStateMachineNamespaceProcedure,AbstractStateMachineRegionProcedure,AbstractStateMachineTableProcedure,AssignProcedure,CloneSnapshotProcedure,CloseRegionProcedure,CreateNamespaceProcedure,CreateTableProcedure,DeleteNamespaceProcedure,DeleteTableProcedure,DisableTableProcedure,EnableTableProcedure,FlushRegionProcedure,FlushTableProcedure,GCMergedRegionsProcedure,GCMultipleMergedRegionsProcedure,GCRegionProcedure,InitializeStoreFileTrackerProcedure,InitMetaProcedure,LockProcedure,MergeTableRegionsProcedure,ModifyColumnFamilyStoreFileTrackerProcedure,ModifyNamespaceProcedure,ModifyStoreFileTrackerProcedure,ModifyTableDescriptorProcedure,ModifyTableProcedure,ModifyTableStoreFileTrackerProcedure,MoveRegionProcedure,OpenRegionProcedure,RegionRemoteProcedureBase,RegionTransitionProcedure,ReopenTableRegionsProcedure,RestoreSnapshotProcedure,SnapshotProcedure,SnapshotRegionProcedure,SnapshotVerifyProcedure,SplitTableRegionProcedure,TransitRegionStateProcedure,TruncateRegionProcedure,TruncateTableProcedure,UnassignProcedure
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.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the table the procedure is operating onGiven an operation type we can take decisions about what to do with pending operations.
-
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.
-