@Override public List<?> makeRow(NamespaceMeta object) { return Lists.newArrayList(object.getName(), object.getDescription(), NamespaceCommandUtils.prettyPrintNamespaceConfigCLI(object.getConfig())); } }).build();
@Override public List<?> makeRow(NamespaceMeta object) { return Lists.newArrayList(object.getName(), object.getDescription(), NamespaceCommandUtils.prettyPrintNamespaceConfigCLI(object.getConfig())); } }).build();
@Override public List<?> makeRow(NamespaceMeta object) { return Lists.newArrayList(object.getName(), object.getDescription(), NamespaceCommandUtils.prettyPrintNamespaceConfigCLI(object.getConfig())); } }).build();
@Override public List<?> makeRow(NamespaceMeta object) { return Lists.newArrayList(object.getName(), object.getDescription(), NamespaceCommandUtils.prettyPrintNamespaceConfigCLI(object.getConfig())); } }).build();
NamespaceMeta.Builder builder = new NamespaceMeta.Builder(existingMeta); if (namespaceMeta.getDescription() != null) { builder.setDescription(namespaceMeta.getDescription());
NamespaceMeta.Builder builder = new NamespaceMeta.Builder(existingMeta); if (namespaceMeta.getDescription() != null) { builder.setDescription(namespaceMeta.getDescription());
public Builder(NamespaceMeta meta) { this.name = meta.getName(); this.description = meta.getDescription(); NamespaceConfig config = meta.getConfig(); if (config != null) { this.schedulerQueueName = config.getSchedulerQueueName(); this.rootDirectory = config.getRootDirectory(); this.hbaseNamespace = config.getHbaseNamespace(); this.hiveDatabase = config.getHiveDatabase(); this.principal = config.getPrincipal(); this.groupName = config.getGroupName(); this.keytabURIWithoutVersion = config.getKeytabURIWithoutVersion(); this.keytabURIVersion = config.getKeytabURIVersion(); this.exploreAsPrincipal = config.isExploreAsPrincipal(); } }
public Builder(NamespaceMeta meta) { this.name = meta.getName(); this.description = meta.getDescription(); NamespaceConfig config = meta.getConfig(); if (config != null) { this.schedulerQueueName = config.getSchedulerQueueName(); this.rootDirectory = config.getRootDirectory(); this.hbaseNamespace = config.getHbaseNamespace(); this.hiveDatabase = config.getHiveDatabase(); this.principal = config.getPrincipal(); this.groupName = config.getGroupName(); this.keytabURIWithoutVersion = config.getKeytabURIWithoutVersion(); this.keytabURIVersion = config.getKeytabURIVersion(); this.exploreAsPrincipal = config.isExploreAsPrincipal(); } }
NamespaceMeta namespaceMeta = namespaceAdmin.get(namespaceId); Assert.assertEquals(namespaceId.getNamespace(), namespaceMeta.getName()); Assert.assertEquals("", namespaceMeta.getDescription()); Assert.assertEquals("describes " + namespaceId.getNamespace(), namespaceMeta.getDescription());