public class BulkImporter extends Object
Modifier and Type | Class and Description |
---|---|
static class |
BulkImporter.AssignmentStats |
Constructor and Description |
---|
BulkImporter(ServerContext context,
long tid,
String tableId,
boolean setTime) |
Modifier and Type | Method and Description |
---|---|
static List<String> |
bulkLoad(ServerContext context,
long tid,
String tableId,
List<String> files,
boolean setTime) |
static List<TabletLocator.TabletLocation> |
findOverlappingTablets(ServerContext context,
VolumeManager fs,
TabletLocator locator,
org.apache.hadoop.fs.Path file) |
static List<TabletLocator.TabletLocation> |
findOverlappingTablets(ServerContext context,
VolumeManager fs,
TabletLocator locator,
org.apache.hadoop.fs.Path file,
KeyExtent failed) |
static List<TabletLocator.TabletLocation> |
findOverlappingTablets(ServerContext context,
VolumeManager vm,
TabletLocator locator,
org.apache.hadoop.fs.Path file,
org.apache.hadoop.io.Text startRow,
org.apache.hadoop.io.Text endRow) |
protected static org.apache.hadoop.io.Text |
getStartRowForExtent(KeyExtent extent) |
BulkImporter.AssignmentStats |
importFiles(List<String> files) |
public BulkImporter(ServerContext context, long tid, String tableId, boolean setTime)
public static List<String> bulkLoad(ServerContext context, long tid, String tableId, List<String> files, boolean setTime) throws IOException
IOException
public BulkImporter.AssignmentStats importFiles(List<String> files) throws IOException
IOException
public static List<TabletLocator.TabletLocation> findOverlappingTablets(ServerContext context, VolumeManager fs, TabletLocator locator, org.apache.hadoop.fs.Path file) throws Exception
Exception
public static List<TabletLocator.TabletLocation> findOverlappingTablets(ServerContext context, VolumeManager fs, TabletLocator locator, org.apache.hadoop.fs.Path file, KeyExtent failed) throws Exception
Exception
protected static org.apache.hadoop.io.Text getStartRowForExtent(KeyExtent extent)
public static List<TabletLocator.TabletLocation> findOverlappingTablets(ServerContext context, VolumeManager vm, TabletLocator locator, org.apache.hadoop.fs.Path file, org.apache.hadoop.io.Text startRow, org.apache.hadoop.io.Text endRow) throws Exception
Exception
Copyright © 2011–2019 The Apache Software Foundation. All rights reserved.