Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP #1

Open
1 of 8 tasks
baslr opened this issue Jun 22, 2016 · 0 comments
Open
1 of 8 tasks

WIP #1

baslr opened this issue Jun 22, 2016 · 0 comments

Comments

@baslr
Copy link
Owner

baslr commented Jun 22, 2016

  • 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant