private int GetMaxSize(Relation relation, AttributeDefinition definition)
 {
     return(GetStatistics(relation.Id).ColumnStatistics[definition.Name].MaxSize);
 }
Exemplo n.º 2
0
        internal bool Joins(CustomTuple rightTuple, AttributeDefinition leftJoinColumn, AttributeDefinition rightJoinColumn)
        {
            CustomObject left  = GetEntryFor(leftJoinColumn.Name);
            CustomObject right = rightTuple.GetEntryFor(rightJoinColumn.Name);

            if (left.IsEqualTo(right))
            {
                return(true);
            }

            return(false);
        }
 public int V(TableDefinition tableDefinition, AttributeDefinition column)
 {
     return(_statisticsPerRelation[tableDefinition.Id].ColumnStatistics[column.Name].DistinctValuesCount);
 }
Exemplo n.º 4
0
 public CustomObject GetEntryFor(AttributeDefinition column)
 {
     return(Entries.First(x => x.AttributeDefinition == column));
 }