Interface HRegion.BulkLoadListener

All Known Implementing Classes:
SecureBulkLoadManager.SecureBulkLoadListener
Enclosing class:
HRegion

public static interface HRegion.BulkLoadListener
Listener class to enable callers of bulkLoadHFile() to perform any necessary pre/post processing of a given bulkload call
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    doneBulkLoad(byte[] family, String srcPath)
    Called after a successful HFile load
    void
    failedBulkLoad(byte[] family, String srcPath)
    Called after a failed HFile load
    prepareBulkLoad(byte[] family, String srcPath, boolean copyFile, String customStaging)
    Called before an HFile is actually loaded
  • Method Details

    • prepareBulkLoad

      String prepareBulkLoad(byte[] family, String srcPath, boolean copyFile, String customStaging) throws IOException
      Called before an HFile is actually loaded
      Parameters:
      family - family being loaded to
      srcPath - path of HFile
      Returns:
      final path to be used for actual loading
      Throws:
      IOException
    • doneBulkLoad

      void doneBulkLoad(byte[] family, String srcPath) throws IOException
      Called after a successful HFile load
      Parameters:
      family - family being loaded to
      srcPath - path of HFile
      Throws:
      IOException
    • failedBulkLoad

      void failedBulkLoad(byte[] family, String srcPath) throws IOException
      Called after a failed HFile load
      Parameters:
      family - family being loaded to
      srcPath - path of HFile
      Throws:
      IOException