Tabnine Logo
Admin
Code IndexAdd Tabnine to your IDE (free)

How to use
Admin
in
com.mapr.db

Best Java code snippets using com.mapr.db.Admin (Showing top 7 results out of 315)

origin: apache/drill

@AfterClass
public static void cleanupTests() throws Exception {
 synchronized (MaprDBTestsSuite.class) {
  if (initCount.decrementAndGet() == 0) {
   HBaseTestsSuite.tearDownCluster();
   admin.close();
  }
 }
}
origin: apache/drill

Table createOrGetTable(String tableName, int recordNum) {
 if (admin.tableExists(tableName)) {
  return MapRDBImpl.getTable(tableName);
  // admin.deleteTable(tableName);
 }
 else {
  TableDescriptor desc = new TableDescriptorImpl(new Path(tableName));
  int splits = (recordNum / SPLIT_SIZE) - (((recordNum % SPLIT_SIZE) > 1)? 0 : 1);
  String[] splitsStr = new String[splits];
  StringBuilder strBuilder = new StringBuilder("Splits:");
  for (int i = 0; i < splits; ++i) {
   splitsStr[i] = String.format("%d", (i+1)*SPLIT_SIZE);
   strBuilder.append(splitsStr[i] + ", ");
  }
  System.out.print(strBuilder.toString());
  return admin.createTable(desc, splitsStr);
 }
}
origin: apache/drill

try {
 Set<DrillIndexDescriptor> idxSet = new HashSet<>();
 Collection<IndexDesc> indexes = admin().getTableIndexes(new Path(tableName));
 if (indexes.size() == 0 ) {
  logger.error("No index returned from Admin.getTableIndexes for table {}", tableName);
origin: apache/drill

Admin admin = MaprDBTestsSuite.getAdmin();
if (admin != null) {
 if (admin.tableExists(PRIMARY_TABLE_NAME)) {
  admin.deleteTable(PRIMARY_TABLE_NAME);
origin: apache/drill

@AfterClass
public static void cleanupTableIndexes() throws Exception {
 Admin admin = MaprDBTestsSuite.getAdmin();
 if (admin != null) {
  if (admin.tableExists(PRIMARY_TABLE_NAME)) {
 //     admin.deleteTable(PRIMARY_TABLE_NAME);
  }
 }
 test(defaultnonCoveringSelectivityThreshold);
}
origin: apache/drill

DBTests.setTableStatsSendInterval(1);
if (admin.tableExists(tablePath)) {
origin: org.apache.drill.contrib/drill-format-mapr

try {
 Set<DrillIndexDescriptor> idxSet = new HashSet<>();
 Collection<IndexDesc> indexes = admin().getTableIndexes(new Path(tableName));
 if (indexes.size() == 0 ) {
  logger.error("No index returned from Admin.getTableIndexes for table {}", tableName);
com.mapr.dbAdmin

Most used methods

  • close
  • createTable
  • deleteTable
  • getTableIndexes
  • tableExists

Popular in Java

  • Parsing JSON documents to java classes using gson
  • scheduleAtFixedRate (Timer)
  • putExtra (Intent)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top 17 Free Sublime Text Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now