@Test public void create() { assertEquals(DB_NAME, HiveDatabase.create(mUdbContext, mUdbConf).getName()); }
public static HiveDatabase create(UdbContext udbContext, UdbConfiguration configuration) { String connectionUri = udbContext.getConnectionUri(); if (connectionUri == null || connectionUri.isEmpty()) { throw new IllegalArgumentException( "Hive udb connection uri cannot be empty: " + connectionUri); } String hiveDbName = udbContext.getUdbDbName(); if (hiveDbName == null || hiveDbName.isEmpty()) { throw new IllegalArgumentException("Hive database name cannot be empty: " + hiveDbName); } return new HiveDatabase(udbContext, configuration, connectionUri, hiveDbName); }
HiveDatabase implements UnderDatabase { public static HiveDatabase create(UdbContext udbContext, UdbConfiguration configuration) { String connectionUri = udbContext.getConnectionUri(); if (connectionUri == null || connectionUri.isEmpty()) { throw new IllegalArgumentException( "Hive udb connection uri cannot be empty: " + connectionUri); } String hiveDbName = udbContext.getUdbDbName(); if (hiveDbName == null || hiveDbName.isEmpty()) { throw new IllegalArgumentException("Hive database name cannot be empty: " + hiveDbName); } return new HiveDatabase(udbContext, configuration, connectionUri, hiveDbName); } }
HiveDatabase implements UnderDatabase { public static HiveDatabase create(UdbContext udbContext, UdbConfiguration configuration) { String connectionUri = udbContext.getConnectionUri(); if (connectionUri == null || connectionUri.isEmpty()) { throw new IllegalArgumentException( "Hive udb connection uri cannot be empty: " + connectionUri); } String hiveDbName = udbContext.getUdbDbName(); if (hiveDbName == null || hiveDbName.isEmpty()) { throw new IllegalArgumentException("Hive database name cannot be empty: " + hiveDbName); } return new HiveDatabase(udbContext, configuration, connectionUri, hiveDbName); } private  HiveDatabase(UdbContext udbContext, UdbConfiguration configuration,
      String connectionUri, String hiveDbName); }
HiveDatabase implements UnderDatabase { public static HiveDatabase create(UdbContext udbContext, UdbConfiguration configuration) { String connectionUri = udbContext.getConnectionUri(); if (connectionUri == null || connectionUri.isEmpty()) { throw new IllegalArgumentException( "Hive udb connection uri cannot be empty: " + connectionUri); } String hiveDbName = udbContext.getUdbDbName(); if (hiveDbName == null || hiveDbName.isEmpty()) { throw new IllegalArgumentException("Hive database name cannot be empty: " + hiveDbName); } return new HiveDatabase(udbContext, configuration, connectionUri, hiveDbName); } private  HiveDatabase(UdbContext udbContext, UdbConfiguration configuration,
      String connectionUri, String hiveDbName); static HiveDatabase create(UdbContext udbContext, UdbConfiguration configuration); @Override UdbContext getUdbContext(); @Override DatabaseInfo getDatabaseInfo(); @Override String getType(); @Override String getName(); @Override List<String> getTableNames(); @Override UdbTable getTable(String tableName); }
HiveDatabase implements UnderDatabase { public static HiveDatabase create(UdbContext udbContext, UdbConfiguration configuration) { String connectionUri = udbContext.getConnectionUri(); if (connectionUri == null || connectionUri.isEmpty()) { throw new IllegalArgumentException( "Hive udb connection uri cannot be empty: " + connectionUri); } String hiveDbName = udbContext.getUdbDbName(); if (hiveDbName == null || hiveDbName.isEmpty()) { throw new IllegalArgumentException("Hive database name cannot be empty: " + hiveDbName); } return new HiveDatabase(udbContext, configuration, connectionUri, hiveDbName); } private  HiveDatabase(UdbContext udbContext, UdbConfiguration configuration,
      String connectionUri, String hiveDbName); static HiveDatabase create(UdbContext udbContext, UdbConfiguration configuration); @Override UdbContext getUdbContext(); @Override DatabaseInfo getDatabaseInfo(); @Override String getType(); @Override String getName(); @Override List<String> getTableNames(); @Override UdbTable getTable(String tableName);  }