/** * Return the list of tables stored in this key value service. Requires a quorum of Cassandra nodes to be reachable * and agree on schema versions. * <p> * This will not contain the names of any hidden tables (e. g., the _metadata table). * * @return a set of TableReferences (table names) for all the visible tables * * @throws AtlasDbDependencyException if fewer than a quorum of Cassandra nodes are reachable, or the cluster * cannot come to an agreement on schema versions. */ @Override public Set<TableReference> getAllTableNames() { return cassandraTables.getTableReferencesWithoutFiltering() .filter(tr -> !HiddenTables.isHidden(tr)) .collect(Collectors.toSet()); }
if (HiddenTables.isHidden(tableRef)) { continue;
@Test public void shouldSayMetadataIsHidden() { assertThat(HiddenTables.isHidden(AtlasDbConstants.DEFAULT_METADATA_TABLE), is(true)); }
@Test public void shouldSayPersistedLocksTableIsHidden() { assertThat(HiddenTables.isHidden(AtlasDbConstants.PERSISTED_LOCKS_TABLE), is(true)); } }
@Test public void shouldSayTimestampIsHidden() { assertThat(HiddenTables.isHidden(AtlasDbConstants.TIMESTAMP_TABLE), is(true)); }
updatedCfs.add(clientSideCf); } else if (!HiddenTables.isHidden(tableRef)) {
@Test public void shouldSayAnOldStyleLocksTableIsHidden() { assertThat(HiddenTables.isHidden(TableReference.createWithEmptyNamespace("_locks")), is(true)); }
@Test public void shouldSayANamespacedTableIsNotHidden() { assertThat(HiddenTables.isHidden(TableReference.createFromFullyQualifiedName("namespace.table")), is(false)); }
@Test public void shouldSayANewStyleLocksTableIsHidden() { assertThat(HiddenTables.isHidden(TableReference.createWithEmptyNamespace("_locks_aaaa_123")), is(true)); }
@Test public void shouldSayANonNamespacedVisibleTableIsNotHidden() { assertThat(HiddenTables.isHidden(TableReference.createWithEmptyNamespace("table")), is(false)); }
/** * Return the list of tables stored in this key value service. Requires a quorum of Cassandra nodes to be reachable * and agree on schema versions. * <p> * This will not contain the names of any hidden tables (e. g., the _metadata table). * * @return a set of TableReferences (table names) for all the visible tables * * @throws AtlasDbDependencyException if fewer than a quorum of Cassandra nodes are reachable, or the cluster * cannot come to an agreement on schema versions. */ @Override public Set<TableReference> getAllTableNames() { return cassandraTables.getTableReferencesWithoutFiltering() .filter(tr -> !HiddenTables.isHidden(tr)) .collect(Collectors.toSet()); }
if (HiddenTables.isHidden(tableRef)) { continue;
updatedCfs.add(clientSideCf); } else if (!HiddenTables.isHidden(tableRef)) {