public class DataResource extends java.lang.Object implements IResource
| Modifier and Type | Method and Description |
|---|---|
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() |
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()
public IResource getParent()
IResourcepublic boolean isRootLevel()
public boolean isKeyspaceLevel()
public boolean isColumnFamilyLevel()
public java.lang.String getKeyspace()
public java.lang.String getColumnFamily()
public boolean hasParent()
IResourcepublic boolean exists()
public 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 © 2015 The Apache Software Foundation