Skip to content

How to read direction predicates in iterate a cursor? #450

Closed
@stelar7

Description

@stelar7

for iterate a cursor there is some conditions for what is the "next" value.

* If key is defined, the record’s key is greater than or equal to key.
* If primaryKey is defined, the record’s key is equal to key and the record’s value is greater than or equal to primaryKey, or the record’s key is greater than key.
* If position is defined, and source is an object store, the record’s key is greater than position.
* If position is defined, and source is an index, the record’s key is equal to position and the record’s value is greater than object store position or the record’s key is greater than position.
* The record’s key is in range.

How are some of these conditions supposed to be read?
eg. the second one, is it like this? (same issue with the 4th one)

If primaryKey is defined:
	the record’s key is equal to key and the record’s value is greater than or equal to primaryKey, 
else:
	the record’s key is greater than key.

or like this?

If primaryKey is defined:
	(the record’s key is equal to key and the record’s value is greater than or equal to primaryKey) OR the record’s key is greater than key.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions