Esempio n. 1
0
        public override IEnumerator <EventBean> GetEnumerator(ISet <MultiKey <EventBean> > joinSet)
        {
            // Process join results set as a regular join, includes sorting and having-clause filter
            var result = ProcessJoinResult(joinSet, CollectionUtil.EMPTY_ROW_SET, true);
            var first  = result.First;

            if (first == null)
            {
                return(EnumerationHelper.Empty <EventBean>());
            }
            return(((IEnumerable <EventBean>)first).GetEnumerator());
        }
Esempio n. 2
0
        public IEnumerator<Cursor> GetCursors(int lookupFromStream)
        {
            if (lookupFromStream == rootStream) {
                var cursor = new Cursor(rootEvent, rootStream, null);
                return EnumerationHelper.Singleton(cursor);
            }

            var nodeList = NodesPerStream[lookupFromStream];
            if (nodeList == null) {
                return EnumerationHelper.Empty<Cursor>();
            }

            return GetCursorEnumerator(lookupFromStream, nodeList);
        }
Esempio n. 3
0
        public override IEnumerator <EventBean> GetEnumerator(Viewable parent)
        {
            if (_orderByProcessor != null)
            {
                // Pull all events, generate order keys
                var eventsPerStream = new EventBean[1];
                var events          = new List <EventBean>();
                var orderKeys       = new List <Object>();

                var parentEnumerator = parent.GetEnumerator();
                if (parentEnumerator.MoveNext() == false)
                {
                    return(CollectionUtil.NULL_EVENT_ITERATOR);
                }

                do
                {
                    var aParent = parentEnumerator.Current;
                    eventsPerStream[0] = aParent;
                    var orderKey = _orderByProcessor.GetSortKey(eventsPerStream, true, ExprEvaluatorContext);
                    var pair     = ProcessViewResultIterator(eventsPerStream);
                    var result   = pair.First;
                    if (result != null && result.Length != 0)
                    {
                        events.Add(result[0]);
                    }
                    orderKeys.Add(orderKey);
                } while (parentEnumerator.MoveNext());

                // sort
                var outgoingEvents = events.ToArray();
                var orderKeysArr   = orderKeys.ToArray();
                var orderedEvents  = _orderByProcessor.Sort(outgoingEvents, orderKeysArr, ExprEvaluatorContext);
                if (orderedEvents == null)
                {
                    return(EnumerationHelper.Empty <EventBean>());
                }

                return(((IEnumerable <EventBean>)orderedEvents).GetEnumerator());
            }
            // Return an iterator that gives row-by-row a result

            var transform = new ResultSetProcessorSimpleTransform(this);

            return(parent.Select(transform.Transform).GetEnumerator());
        }
 public IEnumerator <EventBean> GetEnumerator()
 {
     return(EnumerationHelper.Empty <EventBean>());
 }
Esempio n. 5
0
 public IEnumerator <EventBean> GetEnumerator()
 {
     return(EnumerationHelper.Empty <EventBean>());
     //return ((IEnumerable<EventBean>) null).GetEnumerator();
 }
Esempio n. 6
0
 public override IEnumerator <EventBean> GetEnumerator()
 {
     return(EnumerationHelper <EventBean> .Empty());
 }
Esempio n. 7
0
 public override IEnumerator<EventBean> GetEnumerator()
 {
     return EnumerationHelper.Empty<EventBean>();
 }
 public IEnumerator<KeyValuePair<string, DeploymentRecoveryEntry>> Deployments()
 {
     return EnumerationHelper.Empty<KeyValuePair<string, DeploymentRecoveryEntry>>();
 }
Esempio n. 9
0
 public override IEnumerator <KeyValuePair <string, int> > StagesIterate()
 {
     // no action
     return(EnumerationHelper.Empty <KeyValuePair <string, int> >());
 }
Esempio n. 10
0
 public DataFlowOperator Operator(DataFlowOpInitializeContext context)
 {
     return new MyLineFeedSource(EnumerationHelper.Empty<string>());
 }