本文整理汇总了Java中org.apache.cassandra.auth.DataResource类的典型用法代码示例。如果您正苦于以下问题:Java DataResource类的具体用法?Java DataResource怎么用?Java DataResource使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
DataResource类属于org.apache.cassandra.auth包,在下文中一共展示了DataResource类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: maybeCorrectResource
import org.apache.cassandra.auth.DataResource; //导入依赖的package包/类
public static IResource maybeCorrectResource(IResource resource, ClientState state) throws InvalidRequestException
{
if (DataResource.class.isInstance(resource))
{
DataResource dataResource = (DataResource) resource;
if (dataResource.isTableLevel() && dataResource.getKeyspace() == null)
return DataResource.table(state.getKeyspace(), dataResource.getTable());
}
return resource;
}
开发者ID:scylladb,项目名称:scylla-tools-java,代码行数:11,代码来源:AuthorizationStatement.java
示例2: resource
import org.apache.cassandra.auth.DataResource; //导入依赖的package包/类
public final IResource resource() throws RecognitionException {
IResource res = null;
DataResource r =null;
try {
// /Users/daidong/Documents/gitrepos/cassandra-trunk/src/java/org/apache/cassandra/cql3/Cql.g:865:5: (r= dataResource )
// /Users/daidong/Documents/gitrepos/cassandra-trunk/src/java/org/apache/cassandra/cql3/Cql.g:865:7: r= dataResource
{
pushFollow(FOLLOW_dataResource_in_resource5030);
r=dataResource();
state._fsp--;
res = r;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return res;
}
开发者ID:daidong,项目名称:GraphTrek,代码行数:28,代码来源:CqlParser.java
示例3: resource
import org.apache.cassandra.auth.DataResource; //导入依赖的package包/类
public final IResource resource() throws RecognitionException {
IResource res = null;
DataResource r = null;
try {
// /home/rajatsub/Documents/UIUC/RA/Cassandra/CassandraCodeBase/cassandra-trunk/src/java/org/apache/cassandra/cql3/Cql.g:735:5: (r= dataResource )
// /home/rajatsub/Documents/UIUC/RA/Cassandra/CassandraCodeBase/cassandra-trunk/src/java/org/apache/cassandra/cql3/Cql.g:735:7: r= dataResource
{
pushFollow(FOLLOW_dataResource_in_resource4204);
r=dataResource();
state._fsp--;
res = r;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return res;
}
开发者ID:rajath26,项目名称:cassandra-trunk,代码行数:29,代码来源:CqlParser.java
示例4: protectedResources
import org.apache.cassandra.auth.DataResource; //导入依赖的package包/类
public Set<DataResource> protectedResources() {
access.log(Level.DEBUG, "Data Resource asked for: it's",dataResource.isEmpty()?"":"not","empty");
return dataResource;
}
开发者ID:att,项目名称:AAF,代码行数:5,代码来源:AAFBase.java
示例5: PermissionAlteringStatement
import org.apache.cassandra.auth.DataResource; //导入依赖的package包/类
protected PermissionAlteringStatement(Set<Permission> permissions, IResource resource, String username)
{
this.permissions = permissions;
this.resource = (DataResource) resource;
this.username = username;
}
开发者ID:vcostet,项目名称:cassandra-kmean,代码行数:7,代码来源:PermissionAlteringStatement.java
示例6: maybeCorrectResource
import org.apache.cassandra.auth.DataResource; //导入依赖的package包/类
public static DataResource maybeCorrectResource(DataResource resource, ClientState state) throws InvalidRequestException
{
if (resource.isColumnFamilyLevel() && resource.getKeyspace() == null)
return DataResource.columnFamily(state.getKeyspace(), resource.getColumnFamily());
return resource;
}
开发者ID:vcostet,项目名称:cassandra-kmean,代码行数:7,代码来源:AuthorizationStatement.java
注:本文中的org.apache.cassandra.auth.DataResource类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论