package org.apache.cassandra.service;

public void insert(String tablename, String key, String columnPath, byte[] cellData, long timestamp, boolean block) throws InvalidRequestException, UnavailableException, TException;

columnPath type is String not ColumnPath class and i do not know how to do.


2009/7/24 <>
i use apache-cassandra-incubating-0.3.0.jar and not find  ColumnPath class.

2009/7/23 Gasol Wu <>

ColumnPath cp = new ColumnPath("content", null, "name");
client.insert("users", key_user_id, cp, "Chris Goffinet".getBytes("UTF-8"), timestamp, false);

don't use trunk,unless you know what you are doing.

On Thu, Jul 23, 2009 at 5:18 PM, <> wrote:
i add table tag in storage-conf.xml:

 <Table Name="users">
     <ColumnFamily ColumnSort="Name" Name="content"/>

and then invoke by below program:

client.insert("users", key_user_id, "content:name", "Chris Goffinet".getBytes("UTF-8"), timestamp, false);

and then throws exception:

InvalidRequestException(why:Column Family content is invalid.)
at org.apache.cassandra.service.Cassandra$
at org.apache.cassandra.service.Cassandra$Client.recv_insert(
at org.apache.cassandra.service.Cassandra$Client.insert(
at com.chinaren.alumni4.cassandra.CClient.main(

please tell me why and how modify am i,thanks a lot.