/** * Runs specified query. * * @param qry Query. * @return Query cursor. * @throws IgniteCheckedException On error. */ private PlatformQueryCursor runQuery(Query qry) throws IgniteCheckedException { try { QueryCursorEx cursor = (QueryCursorEx) cache.query(qry); return new PlatformQueryCursor(platformCtx, cursor, qry.getPageSize() > 0 ? qry.getPageSize(): Query.DFLT_PAGE_SIZE); } catch (Exception err) { throw PlatformUtils.unwrapQueryException(err); } }
/** * Runs specified fields query. * * @param qry Query. * @return Query cursor. * @throws IgniteCheckedException On error. */ private PlatformFieldsQueryCursor runFieldsQuery(Query qry) throws IgniteCheckedException { try { QueryCursorEx cursor = (QueryCursorEx) cache.query(qry); return new PlatformFieldsQueryCursor(platformCtx, cursor, qry.getPageSize() > 0 ? qry.getPageSize() : Query.DFLT_PAGE_SIZE); } catch (Exception err) { throw PlatformUtils.unwrapQueryException(err); } }
return null; }, initialQry.getPageSize() > 0 ? initialQry.getPageSize() : Query.DFLT_PAGE_SIZE);
/** * Runs specified query. * * @param qry Query. * @return Query cursor. * @throws IgniteCheckedException On error. */ private PlatformQueryCursor runQuery(Query qry) throws IgniteCheckedException { try { QueryCursorEx cursor = (QueryCursorEx) cache.query(qry); return new PlatformQueryCursor(platformCtx, cursor, qry.getPageSize() > 0 ? qry.getPageSize(): Query.DFLT_PAGE_SIZE); } catch (Exception err) { throw PlatformUtils.unwrapQueryException(err); } }
/** * Runs specified fields query. * * @param qry Query. * @return Query cursor. * @throws IgniteCheckedException On error. */ private PlatformFieldsQueryCursor runFieldsQuery(Query qry) throws IgniteCheckedException { try { QueryCursorEx cursor = (QueryCursorEx) cache.query(qry); return new PlatformFieldsQueryCursor(platformCtx, cursor, qry.getPageSize() > 0 ? qry.getPageSize() : Query.DFLT_PAGE_SIZE); } catch (Exception err) { throw PlatformUtils.unwrapQueryException(err); } }
return null; }, initialQry.getPageSize() > 0 ? initialQry.getPageSize() : Query.DFLT_PAGE_SIZE);