Re: ttl not returned in columns
NP, calls are something like:
SliceQuery<String, String, String> query =
HFactory.createSliceQuery(keyspace, ss, ss, ss)
query.key = sessionKey
// retrieve the first 100 columns in the row
query.setRange("", "", false, 100)
query.columnFamily = "Session"
QueryResult<ColumnSlice<String, String>> execute = query.execute()
ColumnSlice<String, String> queryResult = execute.get()
I'm looking at the columns in the queryResult's columnMap.
On Wed, Feb 16, 2011 at 5:15 PM, Nate McCall <nate@...> wrote:
> Got it - apologies for the misunderstanding. Which API calls are you using?
> On Wed, Feb 16, 2011 at 4:12 PM, Kallin Nagelberg
> <kallin.nagelberg@...> wrote:
>> I am setting TTL and the columns are being deleted as expected.
>> However, when I use Hector to query it always shows the columns as
>> having ttl=0.
>> On Wed, Feb 16, 2011 at 5:10 PM, Nate McCall <nate@...> wrote:
>>> I think you may be confusing the timestamp with time-to-live. Hector
>>> inserts timestamps of [now] by default, but you must explicitly set
>>> ttl in order to have your columns automatcally deleted by cassandra.