-
Notifications
You must be signed in to change notification settings - Fork 1
API Document for v0.0
ko han edited this page Jul 5, 2019
·
3 revisions
- A consistent hash implement. See paper at jump_consistent_hash.
def jump_consistent_hash(key: int, num_bucket: int) -> int: pass
- A normal hash function for str with consistent value.
def strhash(s: str, method: str = 'fnv1a') -> int:
"""
Change Log: start from 0.0.4, support method arguments. 'fnv1a'(default), 'fnv1', 'djb2' and 'murmur' are allowd.
"""
- Transfer integer like 20170101 (Java style) to python datetime object.
def int8_to_datetime(date_integer: int) -> datetime: ...