Add TableLayout to PlanBuilder
@@ -18,6 +18,7 @@ import com.facebook.presto.metadata.IndexHandle;
import com.facebook.presto.metadata.Metadata;
import com.facebook.presto.metadata.Signature;
import com.facebook.presto.metadata.TableHandle;
+import com.facebook.presto.metadata.TableLayoutHandle;
import com.facebook.presto.spi.ColumnHandle;
import com.facebook.presto.spi.SchemaTableName;
import com.facebook.presto.spi.block.SortOrder;
@@ -302,13 +303,18 @@ public class PlanBuilder
}
public TableScanNode tableScan(TableHandle tableHandle, List<Symbol> symbols, Map<Symbol, ColumnHandle> assignments, Expression originalConstraint)
+ {
+ return tableScan(tableHandle, symbols, assignments, originalConstraint, Optional.empty());
+ }
+
+ public TableScanNode tableScan(TableHandle tableHandle, List<Symbol> symbols, Map<Symbol, ColumnHandle> assignments, Expression originalConstraint, Optional<TableLayoutHandle> tableLayout)
{
return new TableScanNode(
idAllocator.getNextId(),
tableHandle,
symbols,
assignments,
- Optional.empty(),
+ tableLayout,
TupleDomain.all(),
originalConstraint
);
