You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@accumulo.apache.org by Kevin Pauli <ke...@thepaulis.com> on 2012/12/21 22:23:39 UTC

How to store numerics or dates as values in Accumulo?

What is the recommended way of storing numeric data in Accumulo?  It looks
like Mutation.put takes only a CharSequence or a Value, and a Value can
only take a byte[].

-- 
Regards,
Kevin Pauli

Re: How to store numerics or dates as values in Accumulo?

Posted by David Medinets <da...@gmail.com>.
http://www.usna.edu/Users/cs/adina/research/Rya_CloudI2012.pdf is
another link for the Rya PDF file.

On Fri, Dec 21, 2012 at 5:08 PM, William Slacum
<wi...@accumulo.net> wrote:
> Rya is a triple store backed by Accumulo:
> http://www.deepdyve.com/lp/association-for-computing-machinery/rya-a-scalable-rdf-triple-store-for-the-clouds-7Xh905FY0y
>
>
> On Fri, Dec 21, 2012 at 2:01 PM, Keith Turner <ke...@deenlo.com> wrote:
>>
>> Take a look at  the Typo Lexicoders.   A Lexicoder serializes data
>> such that the serialized form sort correctly lexicographically.   Typo
>> has Long, ULong, Double, & BigInteger Lexicoders.
>>
>>
>> https://github.com/keith-turner/typo/tree/master/src/main/java/org/apache/accumulo/typo/encoders
>>
>> Keith
>>
>> On Fri, Dec 21, 2012 at 4:23 PM, Kevin Pauli <ke...@thepaulis.com> wrote:
>> > What is the recommended way of storing numeric data in Accumulo?  It
>> > looks
>> > like Mutation.put takes only a CharSequence or a Value, and a Value can
>> > only
>> > take a byte[].
>> >
>> > --
>> > Regards,
>> > Kevin Pauli
>
>

Re: How to store numerics or dates as values in Accumulo?

Posted by William Slacum <wi...@accumulo.net>.
Rya is a triple store backed by Accumulo:
http://www.deepdyve.com/lp/association-for-computing-machinery/rya-a-scalable-rdf-triple-store-for-the-clouds-7Xh905FY0y

On Fri, Dec 21, 2012 at 2:01 PM, Keith Turner <ke...@deenlo.com> wrote:

> Take a look at  the Typo Lexicoders.   A Lexicoder serializes data
> such that the serialized form sort correctly lexicographically.   Typo
> has Long, ULong, Double, & BigInteger Lexicoders.
>
>
> https://github.com/keith-turner/typo/tree/master/src/main/java/org/apache/accumulo/typo/encoders
>
> Keith
>
> On Fri, Dec 21, 2012 at 4:23 PM, Kevin Pauli <ke...@thepaulis.com> wrote:
> > What is the recommended way of storing numeric data in Accumulo?  It
> looks
> > like Mutation.put takes only a CharSequence or a Value, and a Value can
> only
> > take a byte[].
> >
> > --
> > Regards,
> > Kevin Pauli
>

Re: How to store numerics or dates as values in Accumulo?

Posted by Keith Turner <ke...@deenlo.com>.
Take a look at  the Typo Lexicoders.   A Lexicoder serializes data
such that the serialized form sort correctly lexicographically.   Typo
has Long, ULong, Double, & BigInteger Lexicoders.

https://github.com/keith-turner/typo/tree/master/src/main/java/org/apache/accumulo/typo/encoders

Keith

On Fri, Dec 21, 2012 at 4:23 PM, Kevin Pauli <ke...@thepaulis.com> wrote:
> What is the recommended way of storing numeric data in Accumulo?  It looks
> like Mutation.put takes only a CharSequence or a Value, and a Value can only
> take a byte[].
>
> --
> Regards,
> Kevin Pauli

Re: How to store numerics or dates as values in Accumulo?

Posted by Kevin Pauli <ke...@thepaulis.com>.
Would it be best to store such values in some a canonical lexical format
with a postfix of the datatype URI, kind of like the Turtle RDF format does
this?

"10"^^<http://www.w3.org/2001/XMLSchema#integer>
"-12.5e10"^^<http://www.w3.org/2001/XMLSchema#double>
"2012-12-21"^^<http://www.w3.org/2001/XMLSchema#date>

Also, does anyone know of Accumulo being used as an RDF triple store?  Any
links to projects or resources would be welcome.  It seems like a pretty
good fit.

On Fri, Dec 21, 2012 at 3:29 PM, David Medinets <da...@gmail.com>wrote:

> http://affy.blogspot.com/2012/11/how-can-i-use-reverse-sort-on-integer.html
> shows one way to store numeric data.
>
> On Fri, Dec 21, 2012 at 4:23 PM, Kevin Pauli <ke...@thepaulis.com> wrote:
> > What is the recommended way of storing numeric data in Accumulo?  It
> looks
> > like Mutation.put takes only a CharSequence or a Value, and a Value can
> only
> > take a byte[].
> >
> > --
> > Regards,
> > Kevin Pauli
>



-- 
Regards,
Kevin Pauli

Re: How to store numerics or dates as values in Accumulo?

Posted by David Medinets <da...@gmail.com>.
http://affy.blogspot.com/2012/11/how-can-i-use-reverse-sort-on-integer.html
shows one way to store numeric data.

On Fri, Dec 21, 2012 at 4:23 PM, Kevin Pauli <ke...@thepaulis.com> wrote:
> What is the recommended way of storing numeric data in Accumulo?  It looks
> like Mutation.put takes only a CharSequence or a Value, and a Value can only
> take a byte[].
>
> --
> Regards,
> Kevin Pauli