cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Ellis (JIRA)" <>
Subject [jira] Commented: (CASSANDRA-1578) Add support for column and row validators to cli
Date Wed, 06 Oct 2010 16:04:32 GMT


Jonathan Ellis commented on CASSANDRA-1578:

you can annotate specific columns with metadata specifying what type of data should be allowed,
and optionally declaring an index on it (see CASSANDRA-1583).  if we know that a column value
is LongType, we should convert the byte[] into a Long before displaying, and vice versa for
accepting input.  Right now we are just assuming all values are Strings:

        // print results
        css_.out.printf("=> (column=%s, value=%s, timestamp=%d)\n",
                        formatColumnName(keySpace, columnFamily, column), new String(column.value,
"UTF-8"), column.timestamp);

        // do the insert
        thriftClient_.insert(key.getBytes(), new ColumnParent(columnFamily).setSuper_column(superColumnName),
                             new Column(columnNameAsByteArray(columnName, columnFamily), value.getBytes(),
FBUtilities.timestampMicros()), ConsistencyLevel.ONE);

> Add support for column and row validators to cli
> ------------------------------------------------
>                 Key: CASSANDRA-1578
>                 URL:
>             Project: Cassandra
>          Issue Type: New Feature
>          Components: Tools
>            Reporter: Jonathan Ellis
>            Assignee: Pavel Yaskevich
>             Fix For: 0.7.1
> Similar to CASSANDRA-1523, but this applies to column values where 1523 applied to column
names.  We want to parse/display column values in human-readable format.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message