cartridge-java icon indicating copy to clipboard operation
cartridge-java copied to clipboard

Add constant or convinience methods for creating Conditions with PK.

Open vrogach2020 opened this issue 3 years ago • 1 comments

For example now I need to write

Conditions.indexEquals(0, indexParts)
Conditions.indexEquals(TarantoolIndexQuery.PRIMARY, indexParts)

It's not obvious that I should use constants from TarantoolIndexQuery class as well that constant value must be 0 (not 1). I suggest to imrove the Conditions class API to make the following possible:

Conditions.indexEquals(Conditions.PK_INDEX, indexParts)
Conditions.primaryIndexEquals(indexParts)

vrogach2020 avatar Mar 23 '21 07:03 vrogach2020

Checklist:

  • [ ] Unit tests
  • [ ] Add to documentation

akudiyar avatar Mar 26 '21 11:03 akudiyar