[
https://issues.apache.org/jira/browse/CASSANDRA-1578?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12918559#action_12918559
]
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:
{code}
// print results
css_.out.printf("=> (column=%s, value=%s, timestamp=%d)\n",
formatColumnName(keySpace, columnFamily, column), new
String(column.value, "UTF-8"), column.timestamp);
{code}
{code}
// do the insert
thriftClient_.insert(key.getBytes(), new
ColumnParent(columnFamily).setSuper_column(superColumnName),
new Column(columnNameAsByteArray(columnName,
columnFamily), value.getBytes(), FBUtilities.timestampMicros()),
ConsistencyLevel.ONE);
{code}
> Add support for column and row validators to cli
> ------------------------------------------------
>
> Key: CASSANDRA-1578
> URL: https://issues.apache.org/jira/browse/CASSANDRA-1578
> 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.