|
|
-
How to store numerics or dates as values in Accumulo?
Kevin Pauli 2012-12-21, 21:23
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
+
Kevin Pauli 2012-12-21, 21:23
-
Re: How to store numerics or dates as values in Accumulo?
Keith Turner 2012-12-21, 22:01
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/encodersKeith On Fri, Dec 21, 2012 at 4:23 PM, Kevin Pauli <[EMAIL PROTECTED]> 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
+
Keith Turner 2012-12-21, 22:01
-
Re: How to store numerics or dates as values in Accumulo?
William Slacum 2012-12-21, 22:08
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-7Xh905FY0yOn Fri, Dec 21, 2012 at 2:01 PM, Keith Turner <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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 >
+
William Slacum 2012-12-21, 22:08
-
Re: How to store numerics or dates as values in Accumulo?
David Medinets 2012-12-22, 00:48
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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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 > >
+
David Medinets 2012-12-22, 00:48
-
Re: How to store numerics or dates as values in Accumulo?
David Medinets 2012-12-21, 21:29
http://affy.blogspot.com/2012/11/how-can-i-use-reverse-sort-on-integer.htmlshows one way to store numeric data. On Fri, Dec 21, 2012 at 4:23 PM, Kevin Pauli <[EMAIL PROTECTED]> 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
+
David Medinets 2012-12-21, 21:29
-
Re: How to store numerics or dates as values in Accumulo?
Kevin Pauli 2012-12-21, 21:52
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 <[EMAIL PROTECTED]>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 <[EMAIL PROTECTED]> 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
+
Kevin Pauli 2012-12-21, 21:52
|
|