wuxihuhong / cqengine

Automatically exported from code.google.com/p/cqengine
0 stars 0 forks source link

deduplication not return duplicate objects from the collection #40

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
 DeduplicationOption<SchoolFeesDefinitionAssignment> deduplication = deduplicate(DeduplicationStrategy.LOGICAL_ELIMINATION);

       Query<SchoolFeesDefinitionAssignment> findByTermId= equal(SchoolFeesDefinitionAssignment.TERM_ID,termCompareId);

 ResultSet<SchoolFeesDefinitionAssignment> resultSetTwo= definitionAssignmentsCqengine2.retrieve(findByTermId,queryOptions(deduplication));

resultSetTwo contains all the objects?what wrong with my code.please suggest 

Original issue reported on code.google.com by anirutha...@gmail.com on 15 Mar 2015 at 10:47

GoogleCodeExporter commented 9 years ago
Logging a bug is not an appropriate way to ask a question. Please use the 
discussion forum. You will also need to provide a self-contained example which 
demonstrates your problem:

https://groups.google.com/forum/#!forum/cqengine-discuss

Original comment by ni...@npgall.com on 18 Mar 2015 at 3:12

GoogleCodeExporter commented 9 years ago
Hi,I am using cqengine to find duplicate object which contain specific 
attribute that attribute repeating in other elements of collection.I declared 
Deduplication strategy  too find the duplicate.But In result Set i am getting 
all the objects.

 DeduplicationOption<SchoolFeesDefinitionAssignment> deduplication = deduplicate(DeduplicationStrategy.LOGICAL_ELIMINATION);

       Query<SchoolFeesDefinitionAssignment> findByTermId= equal(SchoolFeesDefinitionAssignment.TERM_ID,termCompareId);

 ResultSet<SchoolFeesDefinitionAssignment> resultSetTwo= definitionAssignmentsCqengine2.retrieve(findByTermId,queryOptions(deduplication));

Original comment by anirutha...@gmail.com on 19 Mar 2015 at 4:02

GoogleCodeExporter commented 9 years ago
Please stop spamming me. See my comment above.

Original comment by ni...@npgall.com on 19 Mar 2015 at 12:58