@Test public void testBelongsToRepository_True() { assertTrue(RepoAndTableUtil.belongsToRepository("myRepo__myTableName", "myRepo")); }
public static final boolean belongsToRepository(String hbaseTableName, String repositoryName) { if (repositoryName.equals(DEFAULT_REPOSITORY)) { return !hbaseTableName.contains(REPOSITORY_TABLE_SEPARATOR); } else { return hbaseTableName.startsWith(repositoryName + REPOSITORY_TABLE_SEPARATOR); } }
RepoAndTableUtil { public static final boolean belongsToRepository(String hbaseTableName, String repositoryName) { if (repositoryName.equals(DEFAULT_REPOSITORY)) { return !hbaseTableName.contains(REPOSITORY_TABLE_SEPARATOR); } else { return hbaseTableName.startsWith(repositoryName + REPOSITORY_TABLE_SEPARATOR); } } }
RepoAndTableUtil { public static final boolean belongsToRepository(String hbaseTableName, String repositoryName) { if (repositoryName.equals(DEFAULT_REPOSITORY)) { return !hbaseTableName.contains(REPOSITORY_TABLE_SEPARATOR); } else { return hbaseTableName.startsWith(repositoryName + REPOSITORY_TABLE_SEPARATOR); } }  }
RepoAndTableUtil { public static final boolean belongsToRepository(String hbaseTableName, String repositoryName) { if (repositoryName.equals(DEFAULT_REPOSITORY)) { return !hbaseTableName.contains(REPOSITORY_TABLE_SEPARATOR); } else { return hbaseTableName.startsWith(repositoryName + REPOSITORY_TABLE_SEPARATOR); } }  static final boolean belongsToRepository(String hbaseTableName, String repositoryName); static String getHBaseTableName(String repositoryName, String tableName); static boolean isValidTableName(String name); static String extractLilyTableName(String repositoryName, String hbaseTableName); static String[] getRepositoryAndTable(String hbaseTableName); static void setRepositoryOwnership(HTableDescriptor tableDescriptor, String repositoryName); static String getOwningRepository(HTableDescriptor tableDescriptor); }
RepoAndTableUtil { public static final boolean belongsToRepository(String hbaseTableName, String repositoryName) { if (repositoryName.equals(DEFAULT_REPOSITORY)) { return !hbaseTableName.contains(REPOSITORY_TABLE_SEPARATOR); } else { return hbaseTableName.startsWith(repositoryName + REPOSITORY_TABLE_SEPARATOR); } }  static final boolean belongsToRepository(String hbaseTableName, String repositoryName); static String getHBaseTableName(String repositoryName, String tableName); static boolean isValidTableName(String name); static String extractLilyTableName(String repositoryName, String hbaseTableName); static String[] getRepositoryAndTable(String hbaseTableName); static void setRepositoryOwnership(HTableDescriptor tableDescriptor, String repositoryName); static String getOwningRepository(HTableDescriptor tableDescriptor); static final String DEFAULT_REPOSITORY; static final String REPOSITORY_TABLE_SEPARATOR; static final String VALID_NAME_EXPLANATION; }