public class DataResource extends java.lang.Object implements IResource
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<Permission> |
applicablePermissions()
Returns the set of Permissions that may be applied to this resource
Certain permissions are not applicable to particular types of resources.
|
boolean |
equals(java.lang.Object o) |
boolean |
exists() |
static DataResource |
fromName(java.lang.String name)
Parses a data resource name into a DataResource instance.
|
java.lang.String |
getKeyspace() |
java.lang.String |
getName() |
IResource |
getParent()
Gets next resource in the hierarchy.
|
java.lang.String |
getTable() |
int |
hashCode() |
boolean |
hasParent()
Indicates whether or not this resource has a parent in the hierarchy.
|
boolean |
isKeyspaceLevel() |
boolean |
isRootLevel() |
boolean |
isTableLevel() |
static DataResource |
keyspace(java.lang.String keyspace)
Creates a DataResource representing a keyspace.
|
static DataResource |
root() |
static DataResource |
table(java.lang.String keyspace,
java.lang.String table)
Creates a DataResource instance representing a table.
|
java.lang.String |
toString() |
public static DataResource root()
public static DataResource keyspace(java.lang.String keyspace)
keyspace - Name of the keyspace.public static DataResource table(java.lang.String keyspace, java.lang.String table)
keyspace - Name of the keyspace.table - Name of the table.public static DataResource fromName(java.lang.String name)
name - Name of the data resource.public java.lang.String getName()
public IResource getParent()
IResourcepublic boolean isRootLevel()
public boolean isKeyspaceLevel()
public boolean isTableLevel()
public java.lang.String getKeyspace()
public java.lang.String getTable()
public boolean hasParent()
IResourcepublic boolean exists()
public java.util.Set<Permission> applicablePermissions()
IResourceapplicablePermissions in interface IResourcepublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2018 The Apache Software Foundation