Enhance describeTable to return Map of Column Family so that it can be 
programatically parsed
---------------------------------------------------------------------------------------------

                 Key: CASSANDRA-258
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-258
             Project: Cassandra
          Issue Type: Improvement
            Reporter: Sammy Yu
            Priority: Minor


describeTable returns back a string which is too open and makes it hard for 
clients to introspect the column families of the table.

The data will be returned in the following format:

{ 'Standard1': { 'desc': 'Table1.Standard1(ROW_KEY, COLUMN_MAP(COLUMN_KEY, 
COLUMN_VALUE, COLUMN_TIMESTAMP))',
                 'flushperiod': '60',
                 'sort': 'Name',
                 'type': 'Standard'},
  'Standard2': { 'desc': 'Table1.Standard2(ROW_KEY, COLUMN_MAP(COLUMN_KEY, 
COLUMN_VALUE, COLUMN_TIMESTAMP))',
                 'flushperiod': '0',
                 'sort': 'Name',
                 'type': 'Standard'},
  'StandardByTime1': { 'desc': 'Table1.StandardByTime1(ROW_KEY, 
COLUMN_MAP(COLUMN_KEY, COLUMN_VALUE, COLUMN_TIMESTAMP))',
                       'flushperiod': '0',
                       'sort': 'Time',
                       'type': 'Standard'},
  'Super1': { 'desc': 'Table1.Super1(ROW_KEY, 
SUPER_COLUMN_MAP(SUPER_COLUMN_KEY, COLUMN_MAP(COLUMN_KEY, COLUMN_VALUE, 
COLUMN_TIMESTAMP)))',
              'flushperiod': '0',
              'sort': 'Name',
              'type': 'Super'}}

The CLI will also need to be updated to handle the new map that is returned


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

Reply via email to