Interface BulkLoadObserver

All Known Implementing Classes:
AccessController

@LimitedPrivate("Coprocesssor") @Evolving public interface BulkLoadObserver
Coprocessors implement this interface to observe and mediate bulk load operations.

Exception Handling

For all functions, exception handling is done as follows:
  • Method Details

    • prePrepareBulkLoad

      Called as part of SecureBulkLoadEndpoint.prepareBulkLoad() RPC call. It can't bypass the default action, e.g., ctx.bypass() won't have effect. If you need to get the region or table name, get it from the ctx as follows: code>ctx.getEnvironment().getRegion(). Use getRegionInfo to fetch the encodedName and use getDescriptor() to get the tableName.
      Parameters:
      ctx - the environment to interact with the framework and master
      Throws:
      IOException
    • preCleanupBulkLoad

      Called as part of SecureBulkLoadEndpoint.cleanupBulkLoad() RPC call. It can't bypass the default action, e.g., ctx.bypass() won't have effect. If you need to get the region or table name, get it from the ctx as follows: code>ctx.getEnvironment().getRegion(). Use getRegionInfo to fetch the encodedName and use getDescriptor() to get the tableName.
      Parameters:
      ctx - the environment to interact with the framework and master
      Throws:
      IOException