joinAsOf method
Implementation
LazyFrame joinAsOf(
LazyFrame other, {
required Expr leftOn,
required Expr rightOn,
AsOfJoinOptions options = const AsOfJoinOptions(),
}) {
_runtime._requireLazy(other);
_runtime._requireExpr(leftOn);
_runtime._requireExpr(rightOn);
final fields = options._toJson();
final leases = _leaseAll([
_owner,
other._owner,
leftOn._owner,
rightOn._owner,
]);
try {
return _runtime._adoptLazy(
_runtime._client.invokeSync('lazyJoinAsOf', {
'left': leases[0].handle.toString(),
'right': leases[1].handle.toString(),
'leftOn': leases[2].handle.toString(),
'rightOn': leases[3].handle.toString(),
...fields,
}),
);
} finally {
_releaseAll(leases);
}
}