Skip to content
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

FMWK-425 Document FilterOperations #748

Merged
merged 2 commits into from
May 29, 2024
Merged

Conversation

agrgr
Copy link

@agrgr agrgr commented May 28, 2024

  • Document FilterOperations
  • Update logging

@agrgr agrgr requested review from roimenashe and reugn May 28, 2024 13:28
@agrgr agrgr marked this pull request as ready for review May 28, 2024 14:02
@@ -454,6 +507,10 @@ public Filter sIndexFilter(Map<QualifierKey, Object> qualifierMap) {
return null; // not supported
}
},
/**
* For use in queries "find records where Map key <...> has value equal to a given object". The Map can be a whole
* bin or part of it (nested inside one or more Lists or other Maps). Maps in the database represent also POJOs.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maps in the database represent also POJOs.

I think its not clear enough, I would change that to something like "Maps in Aerospike database can represent a Map or an entire POJO".

The same phrase is used many times in this file.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rephrased a bit differently

@@ -140,7 +140,7 @@ private boolean isIndexedBin(Statement stmt, Qualifier qualifier) {
}

if (log.isDebugEnabled() && hasField) {
log.debug("Query #{}, bin {}.{}.{} has secondary index: {}",
log.debug("Qualifier #{}, bin {}.{}.{} has secondary index: {}",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does printing Qualifier Hashcode has any meaning from the user's perspective? does it help us in debugging?

Copy link
Author

@agrgr agrgr May 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hashcode serves as a unique identifier to help find other log messages related to the qualifier.

@agrgr agrgr merged commit 19692d2 into main May 29, 2024
7 checks passed
@agrgr agrgr deleted the FMWK-425-document-FilterOperations branch May 29, 2024 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants