@Test public void getMappedTableNameIsIdentityForTablesWithoutNamespace() throws TableMappingNotFoundException { assertThat(tableMapping.getMappedTableName(TABLE_EMPTY_NAMESPACE)).isEqualTo(TABLE_EMPTY_NAMESPACE); }
@Override public TableReference getMappedTableName(TableReference tableRef) throws TableMappingNotFoundException { if (tableRef.getNamespace().isEmptyNamespace()) { return tableRef; } TableReference shortTableName = getMappedTableRef(tableRef); validateShortName(tableRef, shortTableName); return shortTableName; }
KvTableMappingService implements TableMappingService { @Override public TableReference getMappedTableName(TableReference tableRef) throws TableMappingNotFoundException { if (tableRef.getNamespace().isEmptyNamespace()) { return tableRef; } TableReference shortTableName = getMappedTableRef(tableRef); validateShortName(tableRef, shortTableName); return shortTableName; } }
KvTableMappingService implements TableMappingService { @Override public TableReference getMappedTableName(TableReference tableRef) throws TableMappingNotFoundException { if (tableRef.getNamespace().isEmptyNamespace()) { return tableRef; } TableReference shortTableName = getMappedTableRef(tableRef); validateShortName(tableRef, shortTableName); return shortTableName; } protected  KvTableMappingService(KeyValueService kvs, LongSupplier uniqueLongSupplier, Pattern namespaceValidation); }
KvTableMappingService implements TableMappingService { @Override public TableReference getMappedTableName(TableReference tableRef) throws TableMappingNotFoundException { if (tableRef.getNamespace().isEmptyNamespace()) { return tableRef; } TableReference shortTableName = getMappedTableRef(tableRef); validateShortName(tableRef, shortTableName); return shortTableName; } protected  KvTableMappingService(KeyValueService kvs, LongSupplier uniqueLongSupplier, Pattern namespaceValidation); static KvTableMappingService create(KeyValueService kvs, LongSupplier uniqueLongSupplier); static KvTableMappingService createWithCustomNamespaceValidation(
            KeyValueService kvs,
            LongSupplier uniqueLongSupplier,
            Pattern namespaceValidation); static void createNamespaceTable(KeyValueService keyValueService); @Override TableReference addTable(TableReference tableRef); static byte[] getBytesForTableRef(TableReference tableRef); @Override void removeTable(TableReference tableRef); @Override void removeTables(Set<TableReference> tableRefs); @Override TableReference getMappedTableName(TableReference tableRef); @Override Map<TableReference, T> mapToShortTableNames(Map<TableReference, T> toMap); @Override Map<TableReference, TableReference> generateMapToFullTableNames(Set<TableReference> tableRefs); }
KvTableMappingService implements TableMappingService { @Override public TableReference getMappedTableName(TableReference tableRef) throws TableMappingNotFoundException { if (tableRef.getNamespace().isEmptyNamespace()) { return tableRef; } TableReference shortTableName = getMappedTableRef(tableRef); validateShortName(tableRef, shortTableName); return shortTableName; } protected  KvTableMappingService(KeyValueService kvs, LongSupplier uniqueLongSupplier, Pattern namespaceValidation); static KvTableMappingService create(KeyValueService kvs, LongSupplier uniqueLongSupplier); static KvTableMappingService createWithCustomNamespaceValidation(
            KeyValueService kvs,
            LongSupplier uniqueLongSupplier,
            Pattern namespaceValidation); static void createNamespaceTable(KeyValueService keyValueService); @Override TableReference addTable(TableReference tableRef); static byte[] getBytesForTableRef(TableReference tableRef); @Override void removeTable(TableReference tableRef); @Override void removeTables(Set<TableReference> tableRefs); @Override TableReference getMappedTableName(TableReference tableRef); @Override Map<TableReference, T> mapToShortTableNames(Map<TableReference, T> toMap); @Override Map<TableReference, TableReference> generateMapToFullTableNames(Set<TableReference> tableRefs); static final TableMetadata NAMESPACE_TABLE_METADATA; }