public class HashJoinEngine extends Object
Modifier and Type | Method and Description |
---|---|
static Cursor |
makeJoinCursor(Cursor leftCursor,
JoinableClause joinableClause,
boolean descending,
Closer closer)
Creates a cursor that represents the join of with .
|
public static Cursor makeJoinCursor(Cursor leftCursor, JoinableClause joinableClause, boolean descending, Closer closer)
JoinType.isRighty()
) or on
the right-hand side (for lefty joins; see JoinType.isLefty()
). Columns that start with the
joinable clause's prefix (see JoinableClause.getPrefix()
) will come from the Joinable's column selector
factory, and all other columns will come from the leftCursor's column selector factory.
Ensuring that the joinable clause's prefix does not conflict with any columns from "leftCursor" is the
responsibility of the caller. If there is such a conflict (for example, if the joinable clause's prefix is "j.",
and the leftCursor has a field named "j.j.abrams"), then the field from the leftCursor will be shadowed and will
not be queryable through the returned Cursor. This happens even if the right-hand joinable doesn't actually have a
column with this name.Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.