Skip to content

WIP #1

Description

@baslr
  • pass {binary:['myval1', 'myval2']} as query option;
    this will parse myval1 and myval2 into hex
    hex representation must be 0123456789abcdefABCDEF
  • binary conversion back to hex when document is returned as json
  • binary should be indexable as hash index
  • binary should be usable as FILTER doc.binary == 'abcdef0123456789ABCDEF'
  • implement IS_BIT_SET(doc.binary, position:starting at 0)
    returns true if bit is set, otherwise false
    if position is > binary.length * 8 - 1 also false is returned
  • implement EQUALS_BINARY(doc.binary, 'abcdef0123456789ABCDEF')
    returns true if the string is identical to its representation in doc.binary
  • implement CONTAINS_BINARY(doc.binary, 'abcef0123456789ABCDEF')
    checks if doc.binary contains the passed string
  • implement IS_BINARY(doc.binary)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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