Example #1
0
            public void Visit(object obj)
            {
                var id      = ((int)obj);
                var newNode = new TreeInt(id);

                duplicates.value = Tree.Add(((Tree)duplicates.value), newNode);
                if (newNode.Size() != 0)
                {
                    _enclosing.Add(id);
                }
            }
Example #2
0
        public virtual AbstractQueryResult ToIdList
            ()
        {
            var res = new IdListQueryResult(Transaction(), KnownSize());
            var i   = IterateIDs();

            while (i.MoveNext())
            {
                res.Add(i.CurrentInt());
            }
            return(res);
        }
Example #3
0
        public virtual Db4objects.Db4o.Internal.Query.Result.AbstractQueryResult ToIdList
            ()
        {
            IdListQueryResult res = new IdListQueryResult(Transaction(), KnownSize());
            IIntIterator4     i   = IterateIDs();

            while (i.MoveNext())
            {
                res.Add(i.CurrentInt());
            }
            return(res);
        }
Example #4
0
		public override IObjectSet Select()
		{
			if (_limit == -1)
			{
				return _query.Execute();
			}
			IQueryResult queryResult = _query.GetQueryResult();
			IdListQueryResult limitedResult = new IdListQueryResult(_query.Transaction(), _limit
				);
			int counter = 0;
			IIntIterator4 i = queryResult.IterateIDs();
			while (i.MoveNext())
			{
				if (counter++ >= _limit)
				{
					break;
				}
				limitedResult.Add(i.CurrentInt());
			}
			return new ObjectSetFacade(limitedResult);
		}
Example #5
0
		public virtual Db4objects.Db4o.Internal.Query.Result.AbstractQueryResult ToIdList
			()
		{
			IdListQueryResult res = new IdListQueryResult(Transaction(), KnownSize());
			IIntIterator4 i = IterateIDs();
			while (i.MoveNext())
			{
				res.Add(i.CurrentInt());
			}
			return res;
		}
Example #6
0
 public virtual AbstractQueryResult ToIdList
     ()
 {
     var res = new IdListQueryResult(Transaction(), KnownSize());
     var i = IterateIDs();
     while (i.MoveNext())
     {
         res.Add(i.CurrentInt());
     }
     return res;
 }
Example #7
0
 public void Visit(object a_object)
 {
     _enclosing.Add(((int)a_object));
 }