Class PrepBulkImport
- java.lang.Object
-
- org.apache.accumulo.manager.tableOps.ManagerRepo
-
- org.apache.accumulo.manager.tableOps.bulkVer2.PrepBulkImport
-
- All Implemented Interfaces:
Serializable
,ReadOnlyRepo<Manager>
,Repo<Manager>
public class PrepBulkImport extends ManagerRepo
Prepare bulk import directory. This REPO creates a bulk directory in Accumulo, list all the files in the original directory and creates a renaming file for moving the files (which happens next in BulkImportMove). The renaming file has a mapping of originalPath to newPath. The newPath will be the bulk directory in Accumulo. The renaming file is called "renames.json" and is written to the "b-" bulk directory generated here.- Since:
- 2.0.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PrepBulkImport(TableId tableId, String sourceDir, boolean setTime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Repo<Manager>
call(long tid, Manager manager)
long
isReady(long tid, Manager manager)
void
undo(long tid, Manager environment)
-
Methods inherited from class org.apache.accumulo.manager.tableOps.ManagerRepo
getName, getReturn
-
-