Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 338214

Summary: Provide API for resolveChunkSize in CDOCollectionLoadingPolicy interface
Product: [Modeling] EMF Reporter: Frieder Jacobi <extispex>
Component: cdo.coreAssignee: Eike Stepper <stepper>
Status: CLOSED FIXED QA Contact: Eike Stepper <stepper>
Severity: enhancement    
Priority: P3    
Version: 4.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
pulling method "getResolveChunkSize" up to interface definition
stepper: iplog+
Patch v2 none

Description Frieder Jacobi CLA 2011-02-25 08:05:27 EST
Build Identifier: M20100909-0800

The interface CDOCollectionLoadingPolicy does not provide the method getResolveChunkSize, although this feature logically seems to be part of its definition (see http://wiki.eclipse.org/CDO/Tweaking_Performance#Loading_Partial_Collections_.E2.80.93_CDOCollectionLoadingPolicy and org.eclipse.emf.internal.cdo.session.CDOCollectionLoadingPolicyImpl).


Reproducible: Always

Steps to Reproduce:
1. see source code
Comment 1 Frieder Jacobi CLA 2011-02-25 08:07:16 EST
Created attachment 189792 [details]
pulling method "getResolveChunkSize" up to interface definition
Comment 2 Eike Stepper CLA 2011-02-25 10:39:07 EST
Hi Frieder, I don't quite understand this. Your new method is not called by the framework, so why shold it be there?
Comment 3 Eike Stepper CLA 2011-02-25 10:39:58 EST
Created attachment 189815 [details]
Patch v2

Patch in workspace relativ format and with the missing @since tag.
Comment 4 Frieder Jacobi CLA 2011-02-25 13:08:01 EST
Hello Eike, you're right - I have been trying things for which I needed this method to be in the interface, but the framework does not call it, indeed. My bad :|

But, anyhow, it makes sense to me to make this information public, since providing a size for initial chunks consequently needs a size of chunks to be resolved, am I wrong? (Keeping in mind the initial/resolve semantics of CDOCollecionLoadingPolicy, IDs vs. revisions.)
Comment 5 Eike Stepper CLA 2011-03-01 02:49:00 EST
Added JavaDoc.
Comment 6 Eike Stepper CLA 2011-03-01 02:49:46 EST
Committed revision 7310 to trunk.

Frieder, please confirm that:

1) The number of lines that you changed is smaller than 250.
2) You are the only author of these changed lines.
3) You apply the EPL to these changed lines.
Comment 7 Frieder Jacobi CLA 2011-03-01 04:54:10 EST
(In reply to comment #6)
> Committed revision 7310 to trunk.
> 
> Frieder, please confirm that:
> 
> 1) The number of lines that you changed is smaller than 250.
yes.

> 2) You are the only author of these changed lines.
yes.

> 3) You apply the EPL to these changed lines.
yes.

Thank you.
Comment 8 Eike Stepper CLA 2011-03-01 05:01:03 EST
Comment on attachment 189792 [details]
pulling method "getResolveChunkSize" up to interface definition

Thank *you* ;-)
Comment 9 Eike Stepper CLA 2011-06-23 03:38:50 EDT
Available in R20110608-1407