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

Java: Add command GEOPOS #1394

Merged
merged 1 commit into from
May 9, 2024

Conversation

tjzhang-BQ
Copy link
Collaborator

Issue #, if available:

Description of changes:

  • adding Geopos
  • adding Geopos unit tests & transaction tests
  • adding to ArrayTransformUtils

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@tjzhang-BQ tjzhang-BQ added the java issues and fixes related to the java client label May 8, 2024
@tjzhang-BQ tjzhang-BQ requested a review from a team as a code owner May 8, 2024 17:38
Comment on lines +73 to +74
* // When added via GEOADD, the geospatial coordinates are converted into a 52 bit geohash, so the coordinates
* // returned might not be exactly the same as the input values
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we need to move this comment to geoadd docs.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think it's fine where it is. This is an implementation detail, and it's most apparent in the test. Users should look up the implementation details by visiting ValKey to know more.

@acarbonetto acarbonetto changed the title Java: Add command Geopos (#267) Java: Add command GEOPOS May 9, 2024
Comment on lines +73 to +74
* // When added via GEOADD, the geospatial coordinates are converted into a 52 bit geohash, so the coordinates
* // returned might not be exactly the same as the input values
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it's fine where it is. This is an implementation detail, and it's most apparent in the test. Users should look up the implementation details by visiting ValKey to know more.

@acarbonetto acarbonetto merged commit 8cbf00b into valkey-io:main May 9, 2024
12 checks passed
@acarbonetto acarbonetto deleted the java/integ_tjzhang_Geopos branch May 9, 2024 16:57
avifenesh pushed a commit that referenced this pull request May 14, 2024
Java: Add command Geopos (#267)
cyip10 pushed a commit to Bit-Quill/valkey-glide that referenced this pull request Jun 24, 2024
Java: Add command Geopos (#267)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
java issues and fixes related to the java client
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants