@InterfaceAudience.Public
public interface BulkLoadHFiles
HFileOutputFormat into an existing table
programmatically. Not thread safe.| 限定符和类型 | 接口和说明 |
|---|---|
static class |
BulkLoadHFiles.LoadQueueItem
Represents an HFile waiting to be loaded.
|
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
ALWAYS_COPY_FILES |
static String |
ASSIGN_SEQ_IDS |
static String |
CREATE_TABLE_CONF_KEY |
static String |
IGNORE_UNMATCHED_CF_CONF_KEY |
static String |
MAX_FILES_PER_REGION_PER_FAMILY |
static String |
RETRY_ON_IO_EXCEPTION |
| 限定符和类型 | 方法和说明 |
|---|---|
Map<BulkLoadHFiles.LoadQueueItem,ByteBuffer> |
bulkLoad(TableName tableName,
Map<byte[],List<org.apache.hadoop.fs.Path>> family2Files)
Perform a bulk load of the given directory into the given pre-existing table.
|
Map<BulkLoadHFiles.LoadQueueItem,ByteBuffer> |
bulkLoad(TableName tableName,
org.apache.hadoop.fs.Path dir)
Perform a bulk load of the given directory into the given pre-existing table.
|
static BulkLoadHFiles |
create(org.apache.hadoop.conf.Configuration conf) |
Map<BulkLoadHFiles.LoadQueueItem,ByteBuffer> bulkLoad(TableName tableName, Map<byte[],List<org.apache.hadoop.fs.Path>> family2Files) throws TableNotFoundException, IOException
tableName - the table to load intofamily2Files - map of family to List of hfilesTableNotFoundException - if table does not yet existIOExceptionMap<BulkLoadHFiles.LoadQueueItem,ByteBuffer> bulkLoad(TableName tableName, org.apache.hadoop.fs.Path dir) throws TableNotFoundException, IOException
tableName - the table to load intodir - the directory that was provided as the output path of a job using
HFileOutputFormatTableNotFoundException - if table does not yet existIOExceptionstatic BulkLoadHFiles create(org.apache.hadoop.conf.Configuration conf)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.