public void close() { for (Column pkColumn : table.getPrimaryKeyIncludingInternal().getColumns()) { inIndex.set(pkColumn.getPosition(), true); } if (table.getParentJoin() != null) { for (JoinColumn joinColumn : table.getParentJoin().getJoinColumns()) { inIndex.set(joinColumn.getChild().getPosition(), true); } } }
private static int columnPosition( Map<? extends Table, Integer> flattenedRowOffsets, Column column) { int position = column.getPosition(); Integer offset = flattenedRowOffsets.get(column.getTable()); if (offset == null) { throw new NullPointerException( "no offset for " + column.getTable() + " in " + flattenedRowOffsets); } position += offset; return position; }
public void markInvolvedInIndex(Column column) { assert column.getTable() == table; inIndex.set(column.getPosition(), true); }