Skip to content

[c++] Support prefix lookup #537

@fresh-borzoni

Description

@fresh-borzoni

Search before asking

  • I searched in the issues and found nothing similar.

Description

The CXX bridge needs three new entries - the opaque PrefixKeyLookuper type, a constructor that takes the column-names list, and the lookup call itself and on the C++ side a class mirroring the existing Lookuper's raw-pointer + Destroy() RAII pattern (move-only, manual cleanup).

The one thing that doesn't have a perfect precedent is the multi-row result: the existing LookupResult only models a single row, so a new small PrefixLookupResult is needed with Size() and GetRow(i) returning a RowView. That's not a new design either - ScanResult already does multi-row over the same zero-copy row machinery, so it's mostly copying that shape into a smaller class.

Add an example program, a couple of integration tests, and a docs entry

Willingness to contribute

  • I'm willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Task.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions