Ejemplo n.º 1
0
 /// <summary>
 /// Ctor.
 /// </summary>
 /// <param name="insertInto">the insert-into clause</param>
 /// <param name="selectClause">the select-clause</param>
 /// <param name="fromClause">the from-clause</param>
 /// <param name="whereClause">where-expression or null</param>
 public OnTriggerSplitStream(
     InsertIntoDesc insertInto,
     SelectClauseSpecRaw selectClause,
     OnTriggerSplitStreamFromClause fromClause,
     ExprNode whereClause)
 {
     InsertInto = insertInto;
     SelectClause = selectClause;
     FromClause = fromClause;
     WhereClause = whereClause;
 }
Ejemplo n.º 2
0
        public static InsertIntoDesc FromColumns(
            String streamName,
            IList <String> columns)
        {
            var insertIntoDesc = new InsertIntoDesc(SelectClauseStreamSelectorEnum.ISTREAM_ONLY, streamName);

            foreach (var col in columns)
            {
                insertIntoDesc.Add(col);
            }

            return(insertIntoDesc);
        }