|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cassandra.auth.DataResource
public class DataResource
The primary type of resource in Cassandra. Used to represent a column family or a keyspace or the root level "data" resource. "data" - the root level data resource. "data/keyspace_name" - keyspace-level data resource. "data/keyspace_name/column_family_name" - cf-level data resource.
Method Summary | |
---|---|
static DataResource |
columnFamily(java.lang.String keyspace,
java.lang.String columnFamily)
Creates a DataResource instance representing a column family. |
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 |
getColumnFamily()
|
java.lang.String |
getKeyspace()
|
java.lang.String |
getName()
|
IResource |
getParent()
Gets next resource in the hierarchy. |
int |
hashCode()
|
boolean |
hasParent()
Indicates whether or not this resource has a parent in the hierarchy. |
boolean |
isColumnFamilyLevel()
|
boolean |
isKeyspaceLevel()
|
boolean |
isRootLevel()
|
static DataResource |
keyspace(java.lang.String keyspace)
Creates a DataResource representing a keyspace. |
static DataResource |
root()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static DataResource root()
public static DataResource keyspace(java.lang.String keyspace)
keyspace
- Name of the keyspace.
public static DataResource columnFamily(java.lang.String keyspace, java.lang.String columnFamily)
keyspace
- Name of the keyspace.columnFamily
- Name of the column family.
public static DataResource fromName(java.lang.String name)
name
- Name of the data resource.
public java.lang.String getName()
getName
in interface IResource
public IResource getParent()
IResource
getParent
in interface IResource
public boolean isRootLevel()
public boolean isKeyspaceLevel()
public boolean isColumnFamilyLevel()
public java.lang.String getKeyspace()
public java.lang.String getColumnFamily()
public boolean hasParent()
IResource
hasParent
in interface IResource
public boolean exists()
exists
in interface IResource
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |