@Override public List<String> getAllTables(String catName, String dbName) throws MetaException { return getTables(catName, dbName, ".*"); }
@Override public List<String> getTables(String catName, String dbName, String pattern, TableType tableType) throws MetaException { try { // We only support pattern matching via jdo since pattern matching in Java // might be different than the one used by the metastore backends return getTablesInternal(catName, dbName, pattern, tableType, (pattern == null || pattern.equals(".*")), true); } catch (NoSuchObjectException e) { throw new MetaException(ExceptionUtils.getStackTrace(e)); } }
@Override public List<String> getTables(String catName, String dbName, String pattern, TableType tableType) throws MetaException { return objectStore.getTables(catName, dbName, pattern, tableType); }
@Override public List<String> getTables(String catName, String dbName, String pattern, TableType tableType) throws MetaException { try { // We only support pattern matching via jdo since pattern matching in Java // might be different than the one used by the metastore backends return getTablesInternal(catName, dbName, pattern, tableType, (pattern == null || pattern.equals(".*")), true); } catch (NoSuchObjectException e) { throw new MetaException(ExceptionUtils.getStackTrace(e)); } }
@Override public List<String> getTables(String catName, String dbName, String pattern) throws MetaException { return objectStore.getTables(catName, dbName, pattern); }
tables = objectStore.getTables(DEFAULT_CATALOG_NAME, DB1, "new*"); Assert.assertEquals(1, tables.size()); Assert.assertEquals("new" + TABLE1, tables.get(0));
@Override public List<String> getAllTables(String dbName) throws MetaException { return getTables(dbName, ".*"); }
@Override public List<String> getAllTables(String dbName) throws MetaException { return getTables(dbName, ".*"); }
@Override public List<String> getAllTables(String catName, String dbName) throws MetaException { return getTables(catName, dbName, ".*"); }
public List<String> getAllTables(String dbName) throws MetaException { return getTables(dbName, ".*"); }
public List<String> getAllTables(String dbName) throws MetaException { return getTables(dbName, ".*"); }
@Override public List<String> getTables(String dbName, String pattern) throws MetaException { return filterTables(dbName, super.getTables(dbName, pattern)); }