public int size() { return _res.size(); }
public Object get(int idx) { if (!_proj) return fromObjectId(_res.get(idx), _sctx); Object[] cached = (Object[]) _res.get(idx); if (cached == null) return null; Object[] uncached = new Object[cached.length]; for (int i = 0; i < cached.length; i++) uncached[i] = copyProjection(cached[i], _sctx); return uncached; }
return null; QueryResult localQueryResult=WTPartHelper.service.getDescribedByWTDocuments(target, false); ilogger.info("size of query result is "+localQueryResult.size()); if((localQueryResult!=null)&&(localQueryResult.hasMoreElements())) while(localQueryResult.hasMoreElements()) WTObject localObject=(WTObject) localQueryResult.nextElement(); WTPartDescribeLink localPartlink=(WTPartDescribeLink) localObject; localWTDocument=localPartlink.getDescribedBy();
public QueryResult put(QueryKey qk, QueryResult oids) { QueryResult o = putInternal(qk, oids); if (log.isTraceEnabled()) log.trace(s_loc.get("cache-put", qk)); return (o == null || o.isTimedOut()) ? null : o; }
QueryResult res = null; synchronized (this) { res = new QueryResult(_qk, _data.values()); res.setTimestamp(System.currentTimeMillis());
long queryTS = res.getTimestamp(); if (timestamps != null) { for (Long ts: timestamps) { if (res.isEmpty()) { return Collections.emptyList();
QueryResult res = new QueryResult(_qk, _data.values()); _cache.put(_qk, res); abortCaching();
public QueryResult put(QueryKey qk, QueryResult oids) { QueryResult o = putInternal(qk, oids); if (log.isTraceEnabled()) log.trace(s_loc.get("cache-put", qk)); return (o == null || o.isTimedOut()) ? null : o; }
QueryResult res = null; synchronized (this) { res = new QueryResult(_qk, _data.values()); res.setTimestamp(System.currentTimeMillis());
long queryTS = res.getTimestamp(); if (timestamps != null) { for (Long ts: timestamps) { if (res.isEmpty()) { return Collections.emptyList();
public QueryResult put(QueryKey qk, QueryResult oids) { QueryResult o = putInternal(qk, oids); if (log.isTraceEnabled()) log.trace(s_loc.get("cache-put", qk)); return (o == null || o.isTimedOut()) ? null : o; }
QueryResult res = null; synchronized (this) { res = new QueryResult(_qk, _data.values()); res.setTimestamp(System.currentTimeMillis());
long queryTS = res.getTimestamp(); if (timestamps != null) { for (Long ts: timestamps) { if (res.isEmpty()) { return Collections.emptyList();
public int size() { return _res.size(); }
public Object get(int idx) { if (!_proj) return fromObjectId(_res.get(idx), _sctx, _fc); Object[] cached = (Object[]) _res.get(idx); if (cached == null) return null; Object[] uncached = new Object[cached.length]; for (int i = 0; i < cached.length; i++) uncached[i] = copyProjection(cached[i], _sctx, _fc); return uncached; }
public QueryResult put(QueryKey qk, QueryResult oids) { QueryResult o = putInternal(qk, oids); if (log.isTraceEnabled()) log.trace(s_loc.get("cache-put", qk)); return (o == null || o.isTimedOut()) ? null : o; }
QueryResult res = null; synchronized (this) { res = new QueryResult(_qk, _data.values()); res.setTimestamp(System.currentTimeMillis());
long queryTS = res.getTimestamp(); if (timestamps != null) { for (Long ts: timestamps) { if (res.isEmpty()) { return Collections.emptyList();
public int size() { return _res.size(); }