Modifier and Type | Class and Description |
---|---|
static interface |
BulkSerialize.Input |
static interface |
BulkSerialize.Output |
Constructor and Description |
---|
BulkSerialize() |
Modifier and Type | Method and Description |
---|---|
static LoadMappingIterator |
getUpdatedLoadMapping(String bulkDir,
Table.ID tableId,
BulkSerialize.Input input)
Read in both maps and change all the file names in the mapping to the new names.
|
static LoadMappingIterator |
readLoadMapping(String bulkDir,
Table.ID tableId,
BulkSerialize.Input input)
Read Json array of Bulk.Mapping into LoadMappingIterator
|
static Map<String,String> |
readRenameMap(String bulkDir,
BulkSerialize.Input input)
Reads the serialized rename file.
|
static void |
writeLoadMapping(SortedMap<KeyExtent,Bulk.Files> loadMapping,
String sourceDir,
BulkSerialize.Output output)
Serialize bulk load mapping to
|
static void |
writeRenameMap(Map<String,String> oldToNewNameMap,
String bulkDir,
BulkSerialize.Output output)
Writes rename file to JSON.
|
public static void writeLoadMapping(SortedMap<KeyExtent,Bulk.Files> loadMapping, String sourceDir, BulkSerialize.Output output) throws IOException
IOException
public static LoadMappingIterator readLoadMapping(String bulkDir, Table.ID tableId, BulkSerialize.Input input) throws IOException
IOException
public static void writeRenameMap(Map<String,String> oldToNewNameMap, String bulkDir, BulkSerialize.Output output) throws IOException
IOException
public static Map<String,String> readRenameMap(String bulkDir, BulkSerialize.Input input) throws IOException
IOException
public static LoadMappingIterator getUpdatedLoadMapping(String bulkDir, Table.ID tableId, BulkSerialize.Input input) throws IOException
IOException
Copyright © 2011–2019 The Apache Software Foundation. All rights reserved.