Class TableReference
- java.lang.Object
-
- com.palantir.atlasdb.keyvalue.api.TableReference
-
public final class TableReference extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static TableReference
create(Namespace namespace, String tableName)
static TableReference
createFromFullyQualifiedName(String fullTableName)
Creates a table reference based on fullTableName.static TableReference
createLowerCased(TableReference table)
static TableReference
createUnsafe(String fullTableName)
Deprecated.please use createFromFullyQualifiedName, if fullTableName includes the namespace, or createWithEmptyNamespace, if you're passing in a system table name.static TableReference
createWithEmptyNamespace(String tableName)
Creates a table reference with an empty namespace, based on tablename.boolean
equals(Object obj)
static TableReference
fromInternalTableName(String tableName)
Deprecated.usescreateUnsafe(java.lang.String)
, which is itself deprecated.static TableReference
fromString(String tableReferenceAsString)
Namespace
getNamespace()
String
getQualifiedName()
String
getTablename()
Deprecated.Please usegetTableName()
, which is consistent with broader AtlasDB naming conventions.String
getTableName()
int
hashCode()
boolean
isFullyQualifiedName()
static boolean
isFullyQualifiedName(String tableName)
String
toString()
-
-
-
Method Detail
-
createFromFullyQualifiedName
public static TableReference createFromFullyQualifiedName(String fullTableName)
Creates a table reference based on fullTableName. fullTableName is assumed to be of the format namespace.tableName, and must contain a dot.
-
create
public static TableReference create(Namespace namespace, String tableName)
-
createWithEmptyNamespace
public static TableReference createWithEmptyNamespace(String tableName)
Creates a table reference with an empty namespace, based on tablename. This should only be used when creating a TableReference for a system table.
-
createLowerCased
public static TableReference createLowerCased(TableReference table)
-
createUnsafe
@Deprecated public static TableReference createUnsafe(String fullTableName)
Deprecated.please use createFromFullyQualifiedName, if fullTableName includes the namespace, or createWithEmptyNamespace, if you're passing in a system table name.
-
fromInternalTableName
@Deprecated public static TableReference fromInternalTableName(String tableName)
Deprecated.usescreateUnsafe(java.lang.String)
, which is itself deprecated.
-
getNamespace
public Namespace getNamespace()
-
getTablename
@Deprecated public String getTablename()
Deprecated.Please usegetTableName()
, which is consistent with broader AtlasDB naming conventions.
-
getTableName
public String getTableName()
-
getQualifiedName
public String getQualifiedName()
-
isFullyQualifiedName
public static boolean isFullyQualifiedName(String tableName)
-
isFullyQualifiedName
public boolean isFullyQualifiedName()
-
fromString
public static TableReference fromString(String tableReferenceAsString)
-
-