-
Notifications
You must be signed in to change notification settings - Fork 242
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/most recent unique #2570
base: integration
Are you sure you want to change the base?
Conversation
ca23bd7
to
33d30e5
Compare
da314e2
to
9dec45e
Compare
warehouse/query-core/src/main/java/datawave/query/transformer/UniqueTransform.java
Show resolved
Hide resolved
...ouse/query-core/src/main/java/datawave/query/util/sortedmap/BufferedFileBackedSortedMap.java
Show resolved
Hide resolved
...ouse/query-core/src/main/java/datawave/query/util/sortedmap/BufferedFileBackedSortedMap.java
Outdated
Show resolved
Hide resolved
warehouse/query-core/src/main/java/datawave/query/transformer/DocumentTransform.java
Outdated
Show resolved
Hide resolved
warehouse/query-core/src/main/java/datawave/query/util/sortedmap/FileSerializableSortedMap.java
Outdated
Show resolved
Hide resolved
warehouse/query-core/src/main/java/datawave/query/util/sortedmap/FileSerializableSortedMap.java
Outdated
Show resolved
Hide resolved
warehouse/query-core/src/main/java/datawave/query/util/sortedmap/HdfsBackedSortedMap.java
Outdated
Show resolved
Hide resolved
warehouse/query-core/src/main/java/datawave/query/util/sortedmap/FileKeyValueSortedMap.java
Outdated
Show resolved
Hide resolved
...y-core/src/main/java/datawave/query/util/sortedmap/rfile/KeyValueByteDocumentTransforms.java
Outdated
Show resolved
Hide resolved
warehouse/query-core/src/main/java/datawave/query/util/sortedmap/HdfsBackedSortedMap.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no unit tests for this class
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm... perhaps not directly. I will see what I can do.
put("TLD_FIELD_A", 4); // 3 record ids, 1 value | ||
put("TLD_FIELD_B", 14); // 13 record ids, 1 value | ||
put("TLD_FIELD_C", 5); // 4 record ids, 1 value |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What caused this assertion to change? Was the TLD aggregator not working before?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I really don't know why this changed.. I will figure it out however.
warehouse/query-core/src/main/java/datawave/query/util/sortedmap/MultiMapBackedSortedMap.java
Outdated
Show resolved
Hide resolved
if (!this.uniqueFields.equals(uniqueFields)) { | ||
this.uniqueFields = uniqueFields.clone(); | ||
log.info("Resetting unique fields on the unique transform"); | ||
this.bloom = BloomFilter.create(new ByteFunnel(), 500000, 1e-15); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since the bloom is only used when not using isMostRecent() can we avoid creating the bloom at all when that is set?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably, I will see if I can do that.
No description provided.