public override IQueryResult ClassOnlyQuery(QQueryBase query, ClassMetadata clazz
                                                    )
        {
            if (!clazz.HasClassIndex())
            {
                return(new IdListQueryResult(query.Transaction()));
            }
            AbstractQueryResult queryResult = NewQueryResult(query.Transaction());

            queryResult.LoadFromClassIndex(clazz);
            return(queryResult);
        }
예제 #2
0
        public override IQueryResult ClassOnlyQuery(QQueryBase query, ClassMetadata clazz
                                                    )
        {
            Transaction trans = query.Transaction();

            long[]            ids       = GetIDsForClass(trans, clazz, true);
            ClientQueryResult resClient = new ClientQueryResult(trans, ids.Length);

            for (int i = 0; i < ids.Length; i++)
            {
                resClient.Add((int)ids[i]);
            }
            return(resClient);
        }