mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
OpenCMIS server: significant query performance improvements
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29606 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -29,6 +29,7 @@ import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
import org.alfresco.opencmis.dictionary.CMISDictionaryService;
|
||||
import org.alfresco.opencmis.dictionary.CMISNodeInfo;
|
||||
import org.alfresco.repo.search.impl.querymodel.Query;
|
||||
import org.alfresco.service.cmr.dictionary.DictionaryService;
|
||||
import org.alfresco.service.cmr.repository.ChildAssociationRef;
|
||||
@@ -48,6 +49,8 @@ public class CMISResultSet implements ResultSetSPI<CMISResultSetRow, CMISResultS
|
||||
private static final long serialVersionUID = 2014688399588268994L;
|
||||
|
||||
private Map<String, ResultSet> wrapped;
|
||||
|
||||
private Map<NodeRef, CMISNodeInfo> nodeInfos;
|
||||
|
||||
private LimitBy limitBy;
|
||||
|
||||
@@ -72,6 +75,7 @@ public class CMISResultSet implements ResultSetSPI<CMISResultSetRow, CMISResultS
|
||||
this.query = query;
|
||||
this.cmisDictionaryService = cmisDictionaryService;
|
||||
this.alfrescoDictionaryService = alfrescoDictionaryService;
|
||||
this.nodeInfos = new HashMap<NodeRef, CMISNodeInfo>();
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -111,7 +115,7 @@ public class CMISResultSet implements ResultSetSPI<CMISResultSetRow, CMISResultS
|
||||
*/
|
||||
public CMISResultSetRow getRow(int i)
|
||||
{
|
||||
return new CMISResultSetRow(this, i, getScores(i), nodeService, getNodeRefs(i), query, cmisDictionaryService);
|
||||
return new CMISResultSetRow(this, i, getScores(i), nodeService, getNodeRefs(i), nodeInfos, query, cmisDictionaryService);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user