map method

  1. @override
Tuple<Ta, Tb> map(
  1. List<QueryResult> results
)
override

Implementation

@override
Tuple<Ta, Tb> map(List<QueryResult> results) {
  final mainResult = main.map(results);
  if (mainResult == null) {
    throw PersistenceException.internal(
        'MainResult of TupleJoinQuerySource is null.');
  }

  final resultB = joinB.bean.map(results);
  if (innerJoin && resultB == null) {
    throw PersistenceException.internal(
        'ResultB of TupleJoinQuerySource is null but innerJoin == true.');
  }

  return Tuple(mainResult, resultB as Tb);
}