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 TypeMethodDescriptionvoid
doneBulkLoad
(byte[] family, String srcPath) Called after a successful HFile loadvoid
failedBulkLoad
(byte[] family, String srcPath) Called after a failed HFile loadprepareBulkLoad
(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 tosrcPath
- path of HFile- Returns:
- final path to be used for actual loading
- Throws:
IOException
-
doneBulkLoad
Called after a successful HFile load- Parameters:
family
- family being loaded tosrcPath
- path of HFile- Throws:
IOException
-
failedBulkLoad
Called after a failed HFile load- Parameters:
family
- family being loaded tosrcPath
- path of HFile- Throws:
IOException
-