This is specifically why Cassandra and even PlayOrm are going the
direction of "partial schemas".  Everything in cassandra in raw form is
just bytes.  If you don't tell it the types, it doesn't know how to
translate it.  PlayOrm and other ORM layers are the same way though in
these noSQL ORMs you typically have a schema where it is sort of like this

If(colName.equals("name"))
   return String.class;
else if(colName.equals("age"))
   Return Integer.class;

So column values are typed such that a command line tool like PlayOrm's
command line tool can query and know how to translate the results.  Any
parts of the schema that are not known are just returned in hex.

So schemaless is cool, but sometimes it is a big pain as well.

Dean

On 10/18/12 6:24 AM, "Hagos, A.S." <a.s.ha...@tue.nl> wrote:

>Hi all,
>I am wondering if there is a way to know the column type of an already
>stored value in  Cassandra.
>My specific case is to get a column value of a known column name but not
>type.
>
>greetings 
>Ambes

Reply via email to