Пример #1
0
            public void Visit(object a_object)
            {
                QCandidate candidate = (QCandidate)a_object;

                if (candidate.Include())
                {
                    TreeInt     ids    = new TreeInt(candidate._key);
                    ByRef       idsNew = new ByRef();
                    IEnumerator itPath = executionPath.GetEnumerator();
                    while (itPath.MoveNext())
                    {
                        idsNew.value = null;
                        string fieldName = (string)(itPath.Current);
                        if (ids != null)
                        {
                            ids.Traverse(new _IVisitor4_385(this, stream, fieldName, idsNew));
                        }
                        ids = (TreeInt)((TreeInt)idsNew.value);
                    }
                    if (ids != null)
                    {
                        ids.Traverse(new _IVisitor4_406(result));
                    }
                }
            }
Пример #2
0
            public object Apply(object current)
            {
                int        id        = ((int)current);
                QCandidate candidate = new QCandidate(this._enclosing, null, id);

                this._enclosing.i_root = candidate;
                this._enclosing.Evaluate();
                if (!candidate.Include())
                {
                    return(Iterators.Skip);
                }
                return(current);
            }
Пример #3
0
 public void Visit(object obj)
 {
     Db4objects.Db4o.Internal.Query.Processor.QCandidate cand = (Db4objects.Db4o.Internal.Query.Processor.QCandidate
                                                                 )obj;
     if (cand.Include())
     {
         innerRes[0] = !isNot;
     }
     if (cand._pendingJoins != null)
     {
         cand._pendingJoins.Traverse(new _IVisitor4_173(pending));
     }
 }
Пример #4
0
            public object Apply(object current)
            {
                int            id        = ((int)current);
                QCandidateBase candidate = new QCandidate(this._enclosing, null, id);

                this._enclosing._result.SingleCandidate(candidate);
                this._enclosing.Evaluate();
                if (!candidate.Include())
                {
                    return(Iterators.Skip);
                }
                return(current);
            }
Пример #5
0
        public override void Visit(object obj)
        {
            QCandidate candidate = (QCandidate)obj;

            // force activation outside the try block
            // so any activation errors bubble up
            ForceActivation(candidate);
            try
            {
                Platform4.EvaluationEvaluate(i_evaluation, candidate);
            }
            catch (Exception)
            {
                candidate.Include(false);
            }
            // TODO: implement Exception callback for the user coder
            // at least for test cases
            if (!candidate._include)
            {
                DoNotInclude(candidate.GetRoot());
            }
        }
Пример #6
0
			public object Apply(object current)
			{
				int id = ((int)current);
				QCandidate candidate = new QCandidate(this._enclosing, null, id);
				this._enclosing.i_root = candidate;
				this._enclosing.Evaluate();
				if (!candidate.Include())
				{
					return Iterators.Skip;
				}
				return current;
			}
Пример #7
0
			public object Apply(object current)
			{
				int id = ((int)current);
				QCandidateBase candidate = new QCandidate(this._enclosing, null, id);
				this._enclosing._result.SingleCandidate(candidate);
				this._enclosing.Evaluate();
				if (!candidate.Include())
				{
					return Iterators.Skip;
				}
				return current;
			}