• Home
  • History
  • Annotate
  • only in this directory
Name Date Size

..11-Jan-20224 KiB

.gitignoreH A D11-Jan-202218

array.goH A D11-Jan-20223.1 KiB

codec.goH A D11-Jan-202213.6 KiB

codec_test.goH A D11-Jan-202210.1 KiB

collate.goH A D11-Jan-202227.2 KiB

collate_test.goH A D11-Jan-202213 KiB

desc.goH A D11-Jan-20224.7 KiB

desc_test.goH A D11-Jan-202211.2 KiB

docs/H11-Jan-20224 KiB

LICENSEH A D11-Jan-202211.1 KiB

n1qlcollate_test.goH A D11-Jan-20222.2 KiB

README.rstH A D11-Jan-20221 KiB

string.goH A D11-Jan-20222.6 KiB

testdata/H11-Jan-20224 KiB

TODO.rstH A D11-Jan-20221.6 KiB

tools/H11-Jan-20224 KiB

unicode.goH A D11-Jan-20221.8 KiB

unicode_test.goH A D11-Jan-2022561

util/H11-Jan-20224 KiB

README.rst

1Collatejson library, written in golang, provides encoding and decoding function
2to transform JSON text into binary representation without loosing information.
3That is,
4
5* binary representation should preserve the sort order such that, sorting
6  binary encoded json documents much match sorting by functions that parse
7  and compare JSON documents.
8* it must be possible to get back the original document, in semantically
9  correct form, from its binary representation.
10
11Notes:
12
13* items in a property object are sorted by its property name before they
14  are compared with other property object.
15
16for api documentation and bench marking try,
17
18.. code-block:: bash
19
20    godoc github.com/couchbaselabs/go-collatejson | less
21    cd go-collatejson
22    go test -test.bench=.
23
24to measure relative difference in sorting 100K elements using encoding/json
25library and this library try,
26
27.. code-block:: bash
28
29    go test -test.bench=Sort
30
31examples/* contains reference sort ordering for different json elements.
32
33For known issues refer to `TODO.rst`
34