Exemple #1
0
        private WorkloadAnalysisEnvironmentHPartitioning Convert(VirtualEnvironmentPossibleHPartitioning source)
        {
            WorkloadAnalysisEnvironmentHPartitioning result = new WorkloadAnalysisEnvironmentHPartitioning();

            result.ID = source.ID;
            result.ImprovementRatio      = source.ImprovementRatio;
            result.PartitioningStatement = source.PartitioningStatement;
            result.PartitionStatements.AddRange(source.PartitionStatements);
            result.RelationID = source.RelationID;
            return(result);
        }
        private VirtualEnvironmentPossibleHPartitioning Convert(VirtualEnvironment environment, DBMS.Contracts.HPartitioningDefinition partitioning, VirtualHPartitioningEnvironmentHPartitioningEvaluation eval)
        {
            VirtualEnvironmentPossibleHPartitioning result = new VirtualEnvironmentPossibleHPartitioning();
            var definition = dbObjectDefinitionGenerator.Generate(partitioning);

            result.PartitioningStatement = definition.PartitioningStatement;
            result.PartitionStatements   = definition.PartitionStatements;
            result.RelationID            = partitioning.Relation.ID;
            result.VirtualEnvironmentID  = environment.ID;
            result.ImprovementRatio      = eval.ImprovementRatio;
            return(result);
        }