A.HADDAD
A.HADDAD

Reputation: 1906

What is TimeHash and How it Works?

I am doing my rapport of a final year project. I have used time-hash algorithm in my project, unlike geo-hash, i didn't find a clear explanation about time-hash and how that works ?

Upvotes: 1

Views: 1475

Answers (1)

abeusher
abeusher

Reputation: 351

From my github.com project timehash:

timehash is an algorithm (with multiple reference implementations) for calculating variable precision sliding windows of time. When performing aggregations and correlations on large-scale data sets, the ability to convert precise time values into 'malleable intervals' allows for many novel analytics.

Using sliding windows of time is a common practice in data analysis but prior to the timehash algorithm it was more of an art than a science.

  • convert epoch miliseconds into an interval of time, depicted by an ASCII character 'hash' (a 'timehash')
  • timehash values are well suited to referencing time intervals in key-value stores (e.g. Hbase, Acculumo, Redis)
  • The creation of a compound key of space and time (e.g. geohash_timehash) is a powerful primitive for understanding geotemporal patterns

timehash image

https://github.com/abeusher/timehash

Upvotes: 1

Related Questions