本文整理了Java中org.apache.hadoop.hbase.TableName.isLegalNamespaceName()
方法的一些代码示例,展示了TableName.isLegalNamespaceName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TableName.isLegalNamespaceName()
方法的具体详情如下:
包路径:org.apache.hadoop.hbase.TableName
类名称:TableName
方法名:isLegalNamespaceName
[英]Valid namespace characters are alphabetic characters, numbers, and underscores.
[中]有效的名称空间字符包括字母、数字和下划线。
代码示例来源:origin: apache/hbase
public static void isLegalNamespaceName(byte[] namespaceName) {
isLegalNamespaceName(namespaceName, 0, namespaceName.length);
}
代码示例来源:origin: apache/hbase
isLegalNamespaceName(this.namespace);
isLegalTableQualifierName(this.qualifier);
代码示例来源:origin: apache/hbase
checkInitialized();
TableName.isLegalNamespaceName(Bytes.toBytes(namespaceDescriptor.getName()));
代码示例来源:origin: apache/hbase
isLegalTableQualifierName(tableName);
} else {
isLegalNamespaceName(tableName, 0, namespaceDelimIndex);
isLegalTableQualifierName(tableName, namespaceDelimIndex + 1, tableName.length);
代码示例来源:origin: apache/hbase
checkInitialized();
TableName.isLegalNamespaceName(Bytes.toBytes(newNsDescriptor.getName()));
代码示例来源:origin: apache/hbase
@Test(expected = IllegalArgumentException.class)
public void testEmptyNamespaceName() {
for (String nn : emptyNames) {
TableName.isLegalNamespaceName(Bytes.toBytes(nn));
fail("invalid Namespace name " + nn + " should have failed with IllegalArgumentException");
}
}
代码示例来源:origin: com.aliyun.hbase/alihbase-common
public static void isLegalNamespaceName(byte[] namespaceName) {
isLegalNamespaceName(namespaceName, 0, namespaceName.length);
}
代码示例来源:origin: org.apache.hbase/hbase-common
public static void isLegalNamespaceName(byte[] namespaceName) {
isLegalNamespaceName(namespaceName, 0, namespaceName.length);
}
代码示例来源:origin: harbby/presto-connectors
public static void isLegalNamespaceName(byte[] namespaceName) {
isLegalNamespaceName(namespaceName, 0, namespaceName.length);
}
代码示例来源:origin: com.aliyun.hbase/alihbase-common
isLegalNamespaceName(this.namespace);
isLegalTableQualifierName(this.qualifier);
代码示例来源:origin: org.apache.hbase/hbase-common
isLegalNamespaceName(this.namespace);
isLegalTableQualifierName(this.qualifier);
代码示例来源:origin: harbby/presto-connectors
isLegalNamespaceName(this.namespace);
isLegalTableQualifierName(this.qualifier);
代码示例来源:origin: harbby/presto-connectors
isLegalTableQualifierName(tableName);
} else {
isLegalNamespaceName(tableName, 0, namespaceDelimIndex);
isLegalTableQualifierName(tableName, namespaceDelimIndex + 1, tableName.length);
代码示例来源:origin: com.aliyun.hbase/alihbase-common
isLegalTableQualifierName(tableName);
} else {
isLegalNamespaceName(tableName, 0, namespaceDelimIndex);
isLegalTableQualifierName(tableName, namespaceDelimIndex + 1, tableName.length);
代码示例来源:origin: org.apache.hbase/hbase-common
isLegalTableQualifierName(tableName);
} else {
isLegalNamespaceName(tableName, 0, namespaceDelimIndex);
isLegalTableQualifierName(tableName, namespaceDelimIndex + 1, tableName.length);
代码示例来源:origin: org.apache.hbase/hbase-common
@Test(expected = IllegalArgumentException.class)
public void testEmptyNamespaceName() {
for (String nn : emptyNames) {
TableName.isLegalNamespaceName(Bytes.toBytes(nn));
fail("invalid Namespace name " + nn + " should have failed with IllegalArgumentException");
}
}
代码示例来源:origin: com.aliyun.hbase/alihbase-common
@Test(expected = IllegalArgumentException.class)
public void testEmptyNamespaceName() {
for (String nn : emptyNames) {
TableName.isLegalNamespaceName(Bytes.toBytes(nn));
fail("invalid Namespace name " + nn + " should have failed with IllegalArgumentException");
}
}
代码示例来源:origin: harbby/presto-connectors
@Override
public void createNamespace(NamespaceDescriptor descriptor) throws IOException {
TableName.isLegalNamespaceName(Bytes.toBytes(descriptor.getName()));
checkNamespaceManagerReady();
if (cpHost != null) {
if (cpHost.preCreateNamespace(descriptor)) {
return;
}
}
LOG.info(getClientIdAuditPrefix() + " creating " + descriptor);
tableNamespaceManager.create(descriptor);
if (cpHost != null) {
cpHost.postCreateNamespace(descriptor);
}
}
代码示例来源:origin: harbby/presto-connectors
@Override
public void modifyNamespace(NamespaceDescriptor descriptor) throws IOException {
TableName.isLegalNamespaceName(Bytes.toBytes(descriptor.getName()));
checkNamespaceManagerReady();
if (cpHost != null) {
if (cpHost.preModifyNamespace(descriptor)) {
return;
}
}
LOG.info(getClientIdAuditPrefix() + " modify " + descriptor);
tableNamespaceManager.update(descriptor);
if (cpHost != null) {
cpHost.postModifyNamespace(descriptor);
}
}
内容来源于网络,如有侵权,请联系作者删除!