protected final boolean hasSingleType() { return types.length == 1 && schemaInspector.getRelationType(types[0]) != null; }
/** * Whether this query is asking for the value of an {@link org.janusgraph.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) { return returnType != RelationCategory.EDGE && types.length == 1 && constraints.isEmpty() && schemaInspector.getRelationType(types[0]) instanceof ImplicitKey; }
protected final RelationType getSingleType() { Preconditions.checkArgument(hasSingleType()); return schemaInspector.getRelationType(types[0]); }