Custom data-types

Alex De la rosa alex.rosa.box at gmail.com
Thu Aug 28 17:47:18 EDT 2014


Hi there,

Correct me if I'm wrong, but I think I read somewhere that custom
data-types can be created through schemas or something like that. So, apart
from COUNTERS, SETS and MAPS we could have some custom defined ones.

I would love to have a STACKS data-type that would work like a FIFO stack,
so I could save the last 100 objects for some action. Imagine we are
building Twitter where millions of tweets are sent all the time, but we
want to quickly know the last 100 tweets for a user. Imagine something like:

obj.stacks['last_tweets'].add(id_of_last_tweet)

IN: last_tweet ---> STACK_OF_100_TWEETS ---> OUT: older than the 100th goes
out

Is this possible? If so, how to do it?

Thanks and Best Regards,
Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20140828/6047f768/attachment.html>


More information about the riak-users mailing list