Examples of MaterializeSampleNode


Examples of com.facebook.presto.sql.planner.plan.MaterializeSampleNode

        @Override
        public SubPlanBuilder visitMaterializeSample(MaterializeSampleNode node, Void context)
        {
            SubPlanBuilder current = node.getSource().accept(this, context);
            current.setRoot(new MaterializeSampleNode(node.getId(), current.getRoot(), node.getSampleWeightSymbol()));
            return current;
        }
View Full Code Here

Examples of com.facebook.presto.sql.planner.plan.MaterializeSampleNode

        }

        List<Symbol> nodeOutputSymbols = outputSymbolsBuilder.build();
        PlanNode root = new TableScanNode(idAllocator.getNextId(), handle, nodeOutputSymbols, columns.build(), null, Optional.<GeneratedPartitions>absent());
        if (sampleWeightSymbol != null) {
            root = new MaterializeSampleNode(idAllocator.getNextId(), root, sampleWeightSymbol);
        }
        return new RelationPlan(root, descriptor, planOutputSymbols);
    }
View Full Code Here

Examples of com.facebook.presto.sql.planner.plan.MaterializeSampleNode

        @Override
        public SubPlanBuilder visitMaterializeSample(MaterializeSampleNode node, Void context)
        {
            SubPlanBuilder current = node.getSource().accept(this, context);
            current.setRoot(new MaterializeSampleNode(node.getId(), current.getRoot(), node.getSampleWeightSymbol()));
            return current;
        }
View Full Code Here

Examples of com.facebook.presto.sql.planner.plan.MaterializeSampleNode

        @Override
        public PlanNode rewriteMaterializeSample(MaterializeSampleNode node, Void context, PlanRewriter<Void> planRewriter)
        {
            PlanNode source = planRewriter.rewrite(node.getSource(), context);
            return new MaterializeSampleNode(node.getId(), source, canonicalize(node.getSampleWeightSymbol()));
        }
View Full Code Here

Examples of com.facebook.presto.sql.planner.plan.MaterializeSampleNode

                    .addAll(expectedOutputs)
                    .build();

            PlanNode source = planRewriter.rewrite(node.getSource(), expectedInputs);

            return new MaterializeSampleNode(node.getId(), source, node.getSampleWeightSymbol());
        }
View Full Code Here

Examples of com.facebook.presto.sql.planner.plan.MaterializeSampleNode

        }

        List<Symbol> nodeOutputSymbols = outputSymbolsBuilder.build();
        PlanNode root = new TableScanNode(idAllocator.getNextId(), handle, nodeOutputSymbols, columns.build(), null, Optional.<GeneratedPartitions>absent());
        if (sampleWeightSymbol != null) {
            root = new MaterializeSampleNode(idAllocator.getNextId(), root, sampleWeightSymbol);
        }
        return new RelationPlan(root, descriptor, planOutputSymbols);
    }
View Full Code Here

Examples of com.facebook.presto.sql.planner.plan.MaterializeSampleNode

        if (node.getType() == SampledRelation.Type.POISSONIZED) {
            sampleWeightSymbol = symbolAllocator.newSymbol("$sampleWeight", BigintType.BIGINT);
        }
        PlanNode planNode = new SampleNode(idAllocator.getNextId(), subPlan.getRoot(), ratio, SampleNode.Type.fromType(node.getType()), node.isRescaled(), Optional.fromNullable(sampleWeightSymbol));
        if (sampleWeightSymbol != null) {
            planNode = new MaterializeSampleNode(idAllocator.getNextId(), planNode, sampleWeightSymbol);
        }
        return new RelationPlan(planNode, outputDescriptor, subPlan.getOutputSymbols());
    }
View Full Code Here

Examples of com.facebook.presto.sql.planner.plan.MaterializeSampleNode

        @Override
        public SubPlanBuilder visitMaterializeSample(MaterializeSampleNode node, Void context)
        {
            SubPlanBuilder current = node.getSource().accept(this, context);
            current.setRoot(new MaterializeSampleNode(node.getId(), current.getRoot(), node.getSampleWeightSymbol()));
            return current;
        }
View Full Code Here

Examples of com.facebook.presto.sql.planner.plan.MaterializeSampleNode

        }

        List<Symbol> nodeOutputSymbols = outputSymbolsBuilder.build();
        PlanNode root = new TableScanNode(idAllocator.getNextId(), handle, nodeOutputSymbols, columns.build(), null, Optional.<GeneratedPartitions>absent());
        if (sampleWeightSymbol != null) {
            root = new MaterializeSampleNode(idAllocator.getNextId(), root, sampleWeightSymbol);
        }
        return new RelationPlan(root, descriptor, planOutputSymbols);
    }
View Full Code Here

Examples of com.facebook.presto.sql.planner.plan.MaterializeSampleNode

        if (node.getType() == SampledRelation.Type.POISSONIZED) {
            sampleWeightSymbol = symbolAllocator.newSymbol("$sampleWeight", BigintType.BIGINT);
        }
        PlanNode planNode = new SampleNode(idAllocator.getNextId(), subPlan.getRoot(), ratio, SampleNode.Type.fromType(node.getType()), node.isRescaled(), Optional.fromNullable(sampleWeightSymbol));
        if (sampleWeightSymbol != null) {
            planNode = new MaterializeSampleNode(idAllocator.getNextId(), planNode, sampleWeightSymbol);
        }
        return new RelationPlan(planNode, outputDescriptor, subPlan.getOutputSymbols());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.