public abstract class HTableNameConverter extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
HTableNameConverter.PrefixedTableId
Used internal to HTableNameConverter, so that one parsing method can extract both the prefix and TableId.
|
| Constructor and Description |
|---|
HTableNameConverter() |
| Modifier and Type | Method and Description |
|---|---|
abstract TableId |
from(org.apache.hadoop.hbase.HTableDescriptor htd)
Returns
TableId for the table represented by the given HTableDescriptor. |
protected HTableNameConverter.PrefixedTableId |
fromHBaseTableName(String namespace,
String qualifier) |
protected String |
getHBaseTableName(String tablePrefix,
TableId tableId) |
abstract String |
getNamespacePrefix(org.apache.hadoop.hbase.HTableDescriptor htd)
Returns the prefix prepended to the namespace.
|
abstract String |
getSysConfigTablePrefix(org.apache.hadoop.hbase.HTableDescriptor htd)
Gets the system configuration table prefix.
|
protected String |
toHBaseNamespace(String hBaseNamespacePrefix,
Id.Namespace namespace) |
protected String getHBaseTableName(String tablePrefix, TableId tableId)
public abstract String getSysConfigTablePrefix(org.apache.hadoop.hbase.HTableDescriptor htd)
htd - Table descriptor for any table that can be associated with thepublic abstract TableId from(org.apache.hadoop.hbase.HTableDescriptor htd)
TableId for the table represented by the given HTableDescriptor.public abstract String getNamespacePrefix(org.apache.hadoop.hbase.HTableDescriptor htd)
protected String toHBaseNamespace(String hBaseNamespacePrefix, Id.Namespace namespace)
protected HTableNameConverter.PrefixedTableId fromHBaseTableName(String namespace, String qualifier)
Copyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.