public IEnumerator<EventBean> Lookup(
     EventBean lookupEvent,
     EventTable[] indexTable,
     ExprEvaluatorContext exprEvaluatorContext)
 {
     _eventsPerStream[_lookupStream] = lookupEvent;
     var result = InKeywordTableLookupUtil.MultiIndexLookup(
         _evaluator, _eventsPerStream, exprEvaluatorContext, indexTable);
     if (result == null)
     {
         return null;
     }
     return result.GetEnumerator();
 }
        public ICollection <EventBean> Lookup(EventBean[] eventsPerStream, ExprEvaluatorContext context)
        {
            if (InstrumentationHelper.ENABLED)
            {
                InstrumentationHelper.Get().QIndexSubordLookup(this, _index, null);
            }

            var result = InKeywordTableLookupUtil.SingleIndexLookup(_evaluators, eventsPerStream, context, _index);

            if (InstrumentationHelper.ENABLED)
            {
                InstrumentationHelper.Get().AIndexSubordLookup(result, null);
            }
            return(result);
        }
        public IEnumerator<EventBean> Lookup(
            EventBean lookupEvent,
            EventTable[] indexTable,
            ExprEvaluatorContext exprEvaluatorContext)
        {
            var table = (PropertyIndexedEventTableSingle) indexTable[0];
            _eventsPerStream[_lookupStream] = lookupEvent;

            var result = InKeywordTableLookupUtil.SingleIndexLookup(
                _evaluators, _eventsPerStream, exprEvaluatorContext, table);
            if (result == null)
            {
                return null;
            }
            return result.GetEnumerator();
        }
Exemplo n.º 4
0
        public ICollection <EventBean> Lookup(EventBean theEvent, Cursor cursor, ExprEvaluatorContext exprEvaluatorContext)
        {
            if (InstrumentationHelper.ENABLED)
            {
                InstrumentationHelper.Get().QIndexJoinLookup(this, _index);
            }

            _eventsPerStream[_streamNum] = theEvent;
            var result = InKeywordTableLookupUtil.SingleIndexLookup(
                _evaluators, _eventsPerStream, exprEvaluatorContext, _index);

            if (InstrumentationHelper.ENABLED)
            {
                InstrumentationHelper.Get().AIndexJoinLookup(result, null);
            }
            return(result);
        }
        public ICollection<EventBean> Lookup(
            EventBean[] eventsPerStream,
            ExprEvaluatorContext context)
        {
            if (context.InstrumentationProvider.Activated()) {
                context.InstrumentationProvider.QIndexSubordLookup(this, null, null);
                ISet<EventBean> result = InKeywordTableLookupUtil.MultiIndexLookup(
                    _factory.evaluator,
                    eventsPerStream,
                    context,
                    _indexes);
                context.InstrumentationProvider.AIndexSubordLookup(result, null);
                return result;
            }

            return InKeywordTableLookupUtil.MultiIndexLookup(_factory.evaluator, eventsPerStream, context, _indexes);
        }
Exemplo n.º 6
0
        public ICollection<EventBean> Lookup(
            EventBean[] eventsPerStream,
            ExprEvaluatorContext context)
        {
            if (context.InstrumentationProvider.Activated()) {
                context.InstrumentationProvider.QIndexSubordLookup(this, _index, null);
                Array.Copy(eventsPerStream, 0, _events, 1, eventsPerStream.Length);
                var resultActivated = InKeywordTableLookupUtil.SingleIndexLookup(
                    _factory.evaluators,
                    _events,
                    context,
                    _index);
                context.InstrumentationProvider.AIndexSubordLookup(resultActivated, null);
                return resultActivated;
            }

            Array.Copy(eventsPerStream, 0, _events, 1, eventsPerStream.Length);
            return InKeywordTableLookupUtil.SingleIndexLookup(
                _factory.evaluators,
                _events,
                context,
                _index);
        }
 public ICollection <EventBean> Lookup(EventBean theEvent, Cursor cursor, ExprEvaluatorContext exprEvaluatorContext)
 {
     _eventsPerStream[_streamNum] = theEvent;
     return(InKeywordTableLookupUtil.MultiIndexLookup(_evaluator, _eventsPerStream, exprEvaluatorContext, _indexes));
 }
Exemplo n.º 8
0
 public ICollection <EventBean> Lookup(EventBean[] eventsPerStream, ExprEvaluatorContext context)
 {
     Array.Copy(eventsPerStream, 0, _events, 1, eventsPerStream.Length);
     return(InKeywordTableLookupUtil.MultiIndexLookup(Evaluator, _events, context, Indexes));
 }
 public ICollection<EventBean> Lookup(EventBean[] eventsPerStream, ExprEvaluatorContext context)
 {
     return InKeywordTableLookupUtil.MultiIndexLookup(_evaluator, eventsPerStream, context, _indexes);
 }