148 ps->
setProperty(
"CustomStorageCallbacksSize", var);
159 int64_t nResultCount;
163 if (nResultLimit == 0)
166 nResultLimit = nResultCount;
171 if ((nResultCount - (nStart + nResultLimit)) < 0)
174 nStart = (std::min)(nStart, nResultCount);
175 nResultCount = nStart + (std::min)(nResultLimit, nResultCount - nStart);
179 nResultCount = (std::min)(nResultCount, nStart + nResultLimit);
183 *ids = (int64_t*) malloc (nResultLimit *
sizeof(int64_t));
185 std::vector<uint64_t>& results = visitor.
GetResults();
187 for (int64_t i = nStart; i < nResultCount; ++i)
189 (*ids)[i - nStart] = results[i];
192 *nResults = nResultCount - nStart;
197 int64_t nResultCount;
201 if (nResultLimit == 0)
204 nResultLimit = nResultCount;
209 if ((nResultCount - (nStart + nResultLimit)) < 0)
212 nStart = (std::min)(nStart, nResultCount);
213 nResultCount = nStart + (std::min)(nResultLimit, nResultCount - nStart);
217 nResultCount = (std::min)(nResultCount, nStart + nResultLimit);
223 std::vector<SpatialIndex::IData*>& results = visitor.
GetResults();
229 for (int64_t i = nStart; i < nResultCount; ++i)
232 (*items)[i - nStart] = (
IndexItemH)dynamic_cast<SpatialIndex::IData*>(result->
clone());
234 *nResults = nResultCount - nStart;
std::vector< uint64_t > & GetResults()
uint64_t GetResultCount() const
std::vector< SpatialIndex::IData * > & GetResults()
void Page_ResultSet_Obj(ObjVisitor &visitor, IndexItemH **items, int64_t nStart, int64_t nResultLimit, uint64_t *nResults)
Tools::PropertySet * GetDefaults()
uint64_t GetResultCount() const
void Page_ResultSet_Ids(IdVisitor &visitor, int64_t **ids, int64_t nStart, int64_t nResultLimit, uint64_t *nResults)
struct SpatialIndex_IData * IndexItemH