}
}
private ReadCommand constructReadMessage(boolean isDigestQuery)
{
ReadCommand readCommand = null;
String table = DatabaseDescriptor.getTables().get(0);
if(columnNames_.size() == 0)
{
if( start_ >= 0 && count_ < Integer.MAX_VALUE)
{
readCommand = new ReadCommand(table, row_.key(), columnFamily_, start_, count_);
}
else if(sinceTimestamp_ > 0)
{
readCommand = new ReadCommand(table, row_.key(), columnFamily_, sinceTimestamp_);
}
else
{
readCommand = new ReadCommand(table, row_.key(), columnFamily_);
}
}
else
{
readCommand = new ReadCommand(table, row_.key(), columnFamily_, columnNames_);
}
readCommand.setDigestQuery(isDigestQuery);
return readCommand;
}