public class DBTests
extends com.mapr.fs.FSTests
| Constructor and Description |
|---|
DBTests() |
| Modifier and Type | Method and Description |
|---|---|
static com.mapr.db.Admin |
admin() |
static com.mapr.db.Table |
createOrReplaceTable(String table) |
static com.mapr.db.Table |
createOrReplaceTable(String table,
Map<String,String> cfPath) |
static com.mapr.db.Table |
createOrReplaceTable(String table,
String[] splitKeys) |
static com.mapr.db.Table |
createOrReplaceTable(String clusterPath,
String table,
Map<String,String> cfPathMap) |
static com.mapr.db.Table |
createTable(String table) |
static void |
deleteTables(String... tables) |
static void |
DisableJSONTableAuditing(String tablePath) |
static void |
DisableVolumeAuditing(String volume) |
static void |
EnableJSONTableAuditing(String tablePath) |
static void |
EnableVolumeAuditing(String volume) |
static String |
ExecuteShellCmd(String cmd) |
static com.mapr.db.Table |
getTable(String table) |
static org.apache.hadoop.fs.Path |
getTablePath(String table) |
static org.apache.hadoop.fs.Path |
getTablePath(String clusterPath,
String table) |
static void |
justDeleteTables(String... tables) |
static void |
rmdir(org.apache.hadoop.fs.Path path) |
static void |
setCFAce(org.apache.hadoop.fs.Path tablePath,
String family,
com.mapr.fs.proto.Dbserver.DBAccessType accessType,
String ace) |
static void |
setFieldAce(org.apache.hadoop.fs.Path tablePath,
String family,
String fieldName,
com.mapr.fs.proto.Dbserver.DBAccessType accessType,
String ace) |
static boolean |
tableExists(String table) |
public static com.mapr.db.Admin admin()
throws IOException
IOExceptionpublic static boolean tableExists(String table) throws IOException
IOExceptionpublic static com.mapr.db.Table getTable(String table) throws IOException
IOExceptionpublic static com.mapr.db.Table createTable(String table) throws IOException
IOExceptionpublic static com.mapr.db.Table createOrReplaceTable(String table) throws IOException
IOExceptionpublic static com.mapr.db.Table createOrReplaceTable(String table, String[] splitKeys) throws IOException
IOExceptionpublic static com.mapr.db.Table createOrReplaceTable(String table, Map<String,String> cfPath) throws IOException
IOExceptionpublic static com.mapr.db.Table createOrReplaceTable(String clusterPath, String table, Map<String,String> cfPathMap) throws IOException
IOExceptionpublic static void rmdir(org.apache.hadoop.fs.Path path)
throws IOException
IOExceptionpublic static void deleteTables(String... tables) throws IOException
IOExceptionpublic static void justDeleteTables(String... tables) throws IOException
IOExceptionpublic static org.apache.hadoop.fs.Path getTablePath(String table)
public static void setFieldAce(org.apache.hadoop.fs.Path tablePath,
String family,
String fieldName,
com.mapr.fs.proto.Dbserver.DBAccessType accessType,
String ace)
throws IOException
IOExceptionpublic static void setCFAce(org.apache.hadoop.fs.Path tablePath,
String family,
com.mapr.fs.proto.Dbserver.DBAccessType accessType,
String ace)
throws IOException
IOExceptionpublic static void EnableVolumeAuditing(String volume) throws Exception
Exceptionpublic static void DisableVolumeAuditing(String volume) throws Exception
Exceptionpublic static void EnableJSONTableAuditing(String tablePath) throws Exception
ExceptionCopyright © 2017 Mapr Technologies, Inc.. All rights reserved.