protected final boolean hasSingleType() { return types.length == 1 && schemaInspector.getRelationType(types[0]) != null; }
/** * Whether this query is asking for the value of an {@link com.thinkaurelius.titan.graphdb.types.system.ImplicitKey}. * </p> * Handling of implicit keys is completely distinct from "normal" query execution and handled extra * for completeness reasons. * * @param returnType * @return */ protected final boolean isImplicitKeyQuery(RelationCategory returnType) { if (returnType == RelationCategory.EDGE || types.length != 1 || !constraints.isEmpty()) return false; return schemaInspector.getRelationType(types[0]) instanceof ImplicitKey; }
protected final RelationType getSingleType() { Preconditions.checkArgument(hasSingleType()); return schemaInspector.getRelationType(types[0]); }
protected final boolean hasSingleType() { return types.length == 1 && schemaInspector.getRelationType(types[0]) != null; }
protected final boolean hasSingleType() { return types.length==1 && schemaInspector.getRelationType(types[0])!=null; }
/** * Whether this query is asking for the value of an {@link com.thinkaurelius.titan.graphdb.types.system.ImplicitKey}. * </p> * Handling of implicit keys is completely distinct from "normal" query execution and handled extra * for completeness reasons. * * @param returnType * @return */ protected final boolean isImplicitKeyQuery(RelationCategory returnType) { if (returnType == RelationCategory.EDGE || types.length != 1 || !constraints.isEmpty()) return false; return schemaInspector.getRelationType(types[0]) instanceof ImplicitKey; }
/** * Whether this query is asking for the value of an {@link com.thinkaurelius.titan.graphdb.types.system.ImplicitKey}. * </p> * Handling of implicit keys is completely distinct from "normal" query execution and handled extra * for completeness reasons. * * @param returnType * @return */ protected final boolean isImplicitKeyQuery(RelationCategory returnType) { if (returnType==RelationCategory.EDGE || types.length!=1 || !constraints.isEmpty()) return false; return schemaInspector.getRelationType(types[0]) instanceof ImplicitKey; }
protected final RelationType getSingleType() { Preconditions.checkArgument(hasSingleType()); return schemaInspector.getRelationType(types[0]); }
protected final RelationType getSingleType() { Preconditions.checkArgument(hasSingleType()); return schemaInspector.getRelationType(types[0]); }