org.apache.hadoop.hbase.regionserver
Interface HRegion.BulkLoadListener

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
 void doneBulkLoad(byte[] family, String srcPath)
          Called after a successful HFile load
 void failedBulkLoad(byte[] family, String srcPath)
          Called after a failed HFile load
 String prepareBulkLoad(byte[] family, String srcPath)
          Called before an HFile is actually loaded
 

Method Detail

prepareBulkLoad

String prepareBulkLoad(byte[] family,
                       String srcPath)
                       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


Copyright © 2014 The Apache Software Foundation. All Rights Reserved.