in ytdb/src/main/java/com/youtrackdb/ldbc/ytdb/OptimizedShortQuery1.java [24:41]
public void executeOperation(
LdbcShortQuery1PersonProfile operation,
TinkerPopConnectionState state,
ResultReporter resultReporter) throws DbException {
try {
GraphTraversal<?, Map<String, Object>> traversal = buildTraversal(state, operation);
if (traversal.hasNext()) {
Map<String, Object> record = traversal.next();
LdbcShortQuery1PersonProfileResult result = toResult(record);
resultReporter.report(0, result, operation);
} else {
throw new DbException("No person found with ID: " + operation.getPersonIdSQ1());
}
} catch (Exception e) {
throw new DbException("Error executing Short Query 1", e);
}
}