| Modifier and Type | Field and Description |
|---|---|
| private final Object[] | |
| private final List | |
| private final Index | |
| private final IndexCursor |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Joiner | |
| public static Joiner | |
| public Joiner | createReverse()
Creates a new Joiner that is the reverse of this Joiner (the "from" and "to" tables are swapped). |
| public boolean | Returns: true if any "to" rows were deleted, false otherwiserow from the "from" table (which must include the relevant columns for this join relationship) fromRow)Deletes any rows in the "to" table based on the given columns in the "from" table. |
| public boolean | Returns: true if any "to" rows were deleted, false otherwiserow from the "from" table (which must include the relevant columns for this join relationship) fromRow)Deletes any rows in the "to" table based on the given columns in the "from" table. |
| private static boolean | deleteRowsImpl(Iterator<Row> iter)
Deletes all the rows and returns whether or not any "to"" rows were deleted. |
| public Row | findFirstRow(Map<String, ?>
row from the "from" table (which must include the relevant columns for this join relationship) fromRow)Returns the first row in the "to" table based on the given columns in the "from" table if any, |
| public Row | findFirstRow(Map<String, ?>
row from the "from" table (which must include the relevant columns for this join relationship) fromRow, Collection<String> desired columns in the from table row columnNames)Returns selected columns from the first row in the "to" table based on the given columns in the "from" table if
any, |
| public EntryIterableBuilder | |
| public EntryIterableBuilder | |
| public List | |
| public Index | |
| public Table | |
| public IndexCursor | |
| public Index | |
| public Table | |
| public boolean | |
| public boolean | |
| private void | toEntryValues(Map<String, ?> fromRow)
Fills in the entryValues with the relevant info from the given "from" table row. |
| private void | toEntryValues(Object[] fromRow)
Fills in the entryValues with the relevant info from the given "from" table row. |
| public String |
| entryValues | back to summary |
|---|---|
| private final Object[] entryValues | |
| fromCols | back to summary |
|---|---|
| private final List<? extends Index. | |
| fromIndex | back to summary |
|---|---|
| private final Index fromIndex | |
| toCursor | back to summary |
|---|---|
| private final IndexCursor toCursor | |
| Joiner | back to summary |
|---|---|
| private Joiner(Index fromIndex, IndexCursor toCursor) | |
| create | back to summary |
|---|---|
| public static Joiner create(Table fromTable, Table toTable) throws IOException Creates a new Joiner based on the foreign-key relationship between the given "from"" table and the given "to"" table.
| |
| create | back to summary |
|---|---|
| public static Joiner create(Index fromIndex) throws IOException Creates a new Joiner based on the given index which backs a foreign-key relationship. The table of the given index will be the "from" table and the table on the other end of the relationship will be the "to" table.
| |
| createReverse | back to summary |
|---|---|
| public Joiner createReverse() throws IOException Creates a new Joiner that is the reverse of this Joiner (the "from" and "to" tables are swapped). | |
| deleteRows | back to summary |
|---|---|
| public boolean deleteRows(Map<String, ?> fromRow) Deletes any rows in the "to" table based on the given columns in the "from" table. | |
| deleteRows | back to summary |
|---|---|
| public boolean deleteRows(Object[] fromRow) Deletes any rows in the "to" table based on the given columns in the "from" table.
| |
| deleteRowsImpl | back to summary |
|---|---|
| private static boolean deleteRowsImpl(Iterator<Row> iter) Deletes all the rows and returns whether or not any "to"" rows were deleted. | |
| findFirstRow | back to summary |
|---|---|
| public Row findFirstRow(Map<String, ?> fromRow) throws IOException Returns the first row in the "to" table based on the given columns in the "from" table if any, | |
| findFirstRow | back to summary |
|---|---|
| public Row findFirstRow(Map<String, ?> fromRow, Collection<String> columnNames) throws IOException Returns selected columns from the first row in the "to" table based on the given columns in the "from" table if
any,
| |
| findRows | back to summary |
|---|---|
| public EntryIterableBuilder findRows(Map<String, ?> fromRow) Returns an Iterator over all the rows in the "to" table based on the given columns in the "from" table. | |
| findRows | back to summary |
|---|---|
| public EntryIterableBuilder findRows(Object[] fromRow) Returns an Iterator with the selected columns over all the rows in the "to" table based on the given columns in the "from" table.
| |
| getColumns | back to summary |
|---|---|
| public List | |
| getFromIndex | back to summary |
|---|---|
| public Index getFromIndex() | |
| getFromTable | back to summary |
|---|---|
| public Table getFromTable() | |
| getToCursor | back to summary |
|---|---|
| public IndexCursor getToCursor() | |
| getToIndex | back to summary |
|---|---|
| public Index getToIndex() | |
| getToTable | back to summary |
|---|---|
| public Table getToTable() | |
| hasRows | back to summary |
|---|---|
| public boolean hasRows(Map<String, ?> fromRow) throws IOException Returns | |
| hasRows | back to summary |
|---|---|
| public boolean hasRows(Object[] fromRow) throws IOException Returns | |
| toEntryValues | back to summary |
|---|---|
| private void toEntryValues(Map<String, ?> fromRow) Fills in the entryValues with the relevant info from the given "from" table row.
| |
| toEntryValues | back to summary |
|---|---|
| private void toEntryValues(Object[] fromRow) Fills in the entryValues with the relevant info from the given "from" table row.
| |
| toFKString | back to summary |
|---|---|
| public String toFKString() Returns a pretty string describing the foreign key relationship backing this Joiner. | |