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<FileRef,Long> 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) |
protected static Mutation |
getUpdateForTabletDataFile(KeyExtent extent,
FileRef path,
FileRef mergeFile,
DataFileValue dfv,
String time,
Set<FileRef> filesInUseByScans,
String address,
ZooLock zooLock,
Set<String> unusedWalLogs,
TServerInstance lastLocation,
long flushId)
Create an update that updates a tablet
|
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) |
protected static void |
updateRootTabletDataFile(KeyExtent extent,
FileRef path,
FileRef mergeFile,
DataFileValue dfv,
String time,
Set<FileRef> filesInUseByScans,
String address,
ZooLock zooLock,
Set<String> unusedWalLogs,
TServerInstance lastLocation,
long flushId)
Update the data file for the root tablet
|
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<FileRef,Long> 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 directoryprotected static void updateRootTabletDataFile(KeyExtent extent, FileRef path, FileRef mergeFile, DataFileValue dfv, String time, Set<FileRef> filesInUseByScans, String address, ZooLock zooLock, Set<String> unusedWalLogs, TServerInstance lastLocation, long flushId)
protected static Mutation getUpdateForTabletDataFile(KeyExtent extent, FileRef path, FileRef mergeFile, DataFileValue dfv, String time, Set<FileRef> filesInUseByScans, String address, ZooLock zooLock, Set<String> unusedWalLogs, TServerInstance lastLocation, long flushId)
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.