本文整理汇总了Java中com.thinkaurelius.titan.graphdb.query.vertex.BaseVertexCentricQuery类的典型用法代码示例。如果您正苦于以下问题:Java BaseVertexCentricQuery类的具体用法?Java BaseVertexCentricQuery怎么用?Java BaseVertexCentricQuery使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
BaseVertexCentricQuery类属于com.thinkaurelius.titan.graphdb.query.vertex包,在下文中一共展示了BaseVertexCentricQuery类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: relations
import com.thinkaurelius.titan.graphdb.query.vertex.BaseVertexCentricQuery; //导入依赖的package包/类
private List<SliceQuery> relations(RelationCategory returnType) {
if (name==null) {
if (hasSingleType()) name = getSingleType().getName();
else throw new IllegalStateException("Need to specify an explicit name for this query");
}
try {
BaseVertexCentricQuery vq = super.constructQuery(returnType);
List<SliceQuery> queries = new ArrayList<SliceQuery>(vq.numSubQueries());
for (int i = 0; i < vq.numSubQueries(); i++) {
BackendQueryHolder<SliceQuery> bq = vq.getSubQuery(i);
SliceQuery sq = bq.getBackendQuery();
queries.add(sq.updateLimit(bq.isFitted() ? vq.getLimit() : hardQueryLimit));
}
return queries;
} finally {
tx.rollback();
}
}
示例2: StandardQueryDescription
import com.thinkaurelius.titan.graphdb.query.vertex.BaseVertexCentricQuery; //导入依赖的package包/类
public StandardQueryDescription(int numVertices, BaseVertexCentricQuery query) {
this(numVertices, query.getCondition(), query.getOrders(), query, convert(query));
}
示例3: convert
import com.thinkaurelius.titan.graphdb.query.vertex.BaseVertexCentricQuery; //导入依赖的package包/类
private static List<StandardSubQuery> convert(BaseVertexCentricQuery query) {
List<StandardSubQuery> result = new ArrayList<StandardSubQuery>(query.numSubQueries());
for (int i=0;i<query.numSubQueries();i++) result.add(new StandardSubQuery(query.getSubQuery(i)));
return result;
}