private PlanWithProperties planTableScan(TableScanNode node, Expression predicate, PreferredProperties preferredProperties) { List<PlanNode> possiblePlans = PickTableLayout.listTableLayouts(node, predicate, true, session, types, idAllocator, metadata, parser, domainTranslator); List<PlanWithProperties> possiblePlansWithProperties = possiblePlans.stream() .map(planNode -> new PlanWithProperties(planNode, derivePropertiesRecursively(planNode))) .collect(toImmutableList()); return pickPlan(possiblePlansWithProperties, preferredProperties); }
.collect(toList()); return pickPlan(possiblePlans, context);