Module slb::sharder [−][src]
Expand description
Shard by first key into buffers.
Functions
Reads from r
until EOF, calling f
occasionally with
the arguments (index, buffer)
where index
is the index
of the partition that the hash key (first word of each line)
falls into and buffer
is a byte buffer of newline-terminated byte
lines (there could be multiple, but each line starts with a key in that
hash space partition).