コード例 #1
0
        private static ICollection <Pair <IExpression, IAstNode> > GetExpressionSet(ColumnValueType map, object value)
        {
            if (map == null || map.IsEmpty())
            {
                return(new HashSet <Pair <IExpression, IAstNode> >());
            }

            var set = map.GetValue(value);

            return(set ?? new HashSet <Pair <IExpression, IAstNode> >());
        }
コード例 #2
0
        private void AddIntoColumnValueIndex(ColumnValueType valMap,
                                             object value,
                                             IExpression expr,
                                             IAstNode parent)
        {
            var exprSet = value == null ? null : valMap.GetValue(value);

            if (exprSet == null)
            {
                exprSet = new HashSet <Pair <IExpression, IAstNode> >();
                valMap[value ?? Null_Alias_Key] = exprSet;
            }
            var pair = new Pair <IExpression, IAstNode>(expr, parent);

            exprSet.Add(pair);
        }