I have a List in Cassandra DB. I use the following code to fetch them,
string query = "select name from table where userid = 'abcd' ;";
try
{
Connector connector = new Connector();
session = connector.Connect();
RowSet rows = session.Execute(query);
if (rows.Columns.Length > 0)
{
foreach (Row row in rows)
{
data = row["name"].ToString();
}
status = true;
}
}
else
{
// no rows
}
session.Cluster.Shutdown();
}
catch (Exception ex)
{
}
I need to convert this list object which is converting to string as of now to arrays so that I can fetch the last string as needed.
Is there any inbuilt method to do same?