// get the table name
String sTableName = DatabaseDescriptor.getTables().get(0);
StringBuilder sb = new StringBuilder();
ColumnFamilyFormatter cformatter = new ColumnFamilyFormatter(sb);
try
{
Table table = Table.open(sTableName);
String queryFor = sColumnFamily;
if(sColumn != null && !"*".equals(sColumn))
{
queryFor += ":" + sColumn;
}
ColumnFamily cf = table.get(sKey, queryFor);
if (cf == null)
{
sRetVal = "Key [" + sKey + "], column family [" + sColumnFamily + "] not found.";
}
else
{
cformatter.printKeyColumnFamily(sb, sKey, cf);
fQuerySuccess = true;
sRetVal = sb.toString();
}
}
catch (Exception e)