public class MasterMetadataUtil extends Object
Constructor and Description |
---|
MasterMetadataUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
addNewTablet(ClientContext context,
KeyExtent extent,
String path,
TServerInstance location,
Map<FileRef,DataFileValue> datafileSizes,
Map<Long,? extends Collection<FileRef>> bulkLoadedFiles,
String time,
long lastFlushID,
long lastCompactID,
ZooLock zooLock) |
static KeyExtent |
fixSplit(ClientContext context,
org.apache.hadoop.io.Text metadataEntry,
SortedMap<ColumnFQ,Value> columns,
TServerInstance tserver,
ZooLock lock) |
static void |
replaceDatafiles(ClientContext context,
KeyExtent extent,
Set<FileRef> datafilesToDelete,
Set<FileRef> scanFiles,
FileRef path,
Long compactionId,
DataFileValue size,
String address,
TServerInstance lastLocation,
ZooLock zooLock) |
static void |
replaceDatafiles(ClientContext context,
KeyExtent extent,
Set<FileRef> datafilesToDelete,
Set<FileRef> scanFiles,
FileRef path,
Long compactionId,
DataFileValue size,
String address,
TServerInstance lastLocation,
ZooLock zooLock,
boolean insertDeleteFlags) |
static void |
updateTabletDataFile(ClientContext context,
KeyExtent extent,
FileRef path,
FileRef mergeFile,
DataFileValue dfv,
String time,
Set<FileRef> filesInUseByScans,
String address,
ZooLock zooLock,
Set<String> unusedWalLogs,
TServerInstance lastLocation,
long flushId)
new data file update function adds one data file to a tablet's list
|
public static void addNewTablet(ClientContext context, KeyExtent extent, String path, TServerInstance location, Map<FileRef,DataFileValue> datafileSizes, Map<Long,? extends Collection<FileRef>> bulkLoadedFiles, String time, long lastFlushID, long lastCompactID, ZooLock zooLock)
public static KeyExtent fixSplit(ClientContext context, org.apache.hadoop.io.Text metadataEntry, SortedMap<ColumnFQ,Value> columns, TServerInstance tserver, ZooLock lock) throws AccumuloException, IOException
AccumuloException
IOException
public static void replaceDatafiles(ClientContext context, KeyExtent extent, Set<FileRef> datafilesToDelete, Set<FileRef> scanFiles, FileRef path, Long compactionId, DataFileValue size, String address, TServerInstance lastLocation, ZooLock zooLock) throws IOException
IOException
public static void replaceDatafiles(ClientContext context, KeyExtent extent, Set<FileRef> datafilesToDelete, Set<FileRef> scanFiles, FileRef path, Long compactionId, DataFileValue size, String address, TServerInstance lastLocation, ZooLock zooLock, boolean insertDeleteFlags) throws IOException
IOException
public static void updateTabletDataFile(ClientContext context, KeyExtent extent, FileRef path, FileRef mergeFile, DataFileValue dfv, String time, Set<FileRef> filesInUseByScans, String address, ZooLock zooLock, Set<String> unusedWalLogs, TServerInstance lastLocation, long flushId)
path
- should be relative to the table directoryCopyright © 2011–2018 The Apache Software Foundation. All rights reserved.