public Collection select(Selector selector, Set extraRows) {
System.out.println("HeapDriver: select " + selector);
// Assumes we're dealing with a PK selector, not fully implemented.
ArrayList list = new ArrayList();
if (selector.getCondition() instanceof SimpleCondition) {
SimpleCondition condition = (SimpleCondition) selector.getCondition();
Table table = selector.getTable();
Object primaryKey = condition.getValue();
Row found = factory.getCache().get(table, primaryKey);
if (found != null) {
list.add((Row) found.clone());
}
}