Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/marianoguerra/sblob
blobs, stream of blobs
https://github.com/marianoguerra/sblob
Last synced: about 1 month ago
JSON representation
blobs, stream of blobs
- Host: GitHub
- URL: https://github.com/marianoguerra/sblob
- Owner: marianoguerra
- Created: 2014-08-28T09:09:59.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-03-10T16:08:36.000Z (over 8 years ago)
- Last Synced: 2023-04-21T08:16:33.037Z (over 1 year ago)
- Language: Erlang
- Size: 1.01 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
Sblob
=====Indexes
-------sblob
.....Index: Seqnum
Value: OffsetThe usage of the index for sblobs is: given a seqnum I want give me the offset
in the file, for this it looks at the closest seqnum (array index) that has the
offset defined (array value), then it reads until the required seqnum filling
the index along the way and then it reads the required sblob.The index transversal is, I start from the seqnum I want and check if the value
is set, if not I go backwards until I find it or I get to the first array
index, if not found return the atom notfound which will cause all sblobs from
the beginning of the file to be read, filling the index along the way.In this case closest means closest lower or equal seqnum.
gblob
.....Index: Chunk Number
Value: Start SeqnumThe usage of the index for gblobs is: given a seqnum I want to start reading
from, give me the file chunk number where it's located so I can start reading
from there, for this it looks at the values of the array from left to right
until it finds the closest seqnum (array value) and returns the chunk number
(array index).In this case closest means closest lower or equal seqnum.
Testing
-------to run all tests:
::
make eunit
to test one module::
./rebar eunit suites=gblob_tests skip_deps=true