Skip to content

Is custom prefix extractor SliceTransform supported? #180

@basic-abc

Description

@basic-abc

Hello,

Want to know if implementing custom prefix transforms is achievable with this wrapper? I think it is here,

rocksdb_slicetransform_create(
    void* state, void (*destructor)(void*),
    char* (*transform)(void*, const char* key, size_t length,
                       size_t* dst_length),
    unsigned char (*in_domain)(void*, const char* key, size_t length),
    unsigned char (*in_range)(void*, const char* key, size_t length),
    const char* (*name)(void*));

https://github.com/linxGnu/grocksdb/blob/master/c.h#L2378-L2391

Is the only option to use fixed prefix?

func NewFixedPrefixTransform(prefixLen int) SliceTransform {

Thank you for your reply.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions