Re: Limiting ColumnSlice range in second composite value

2011-09-04 Thread Boris Yen
It seems that you did not set the AbstractComposite.ComponentEquality.GREATER_THAN_EQUAL to the endComp. You could try something like: endComp=new Compsite() ; endComp.addComponent(timeUUID) ; endComp.addComponent("ACTIVE", StringSerializer.get(), "UTF8Type", AbstractComposite.ComponentEquality.GR

Re: Limiting ColumnSlice range in second composite value

2011-09-02 Thread Anthony Ikeda
Okay, I reversed the composite and seem to have come up with a solution. Although the rows are sorted by the status, the statuses are sorted temporally which helps. I tell you this type of modeling really breaks the rules :) Anthony On Fri, Sep 2, 2011 at 3:54 PM, Anthony Ikeda wrote: > This is

Re: Limiting ColumnSlice range in second composite value

2011-09-02 Thread Anthony Ikeda
This is what I'm trying to do: Sample of the data: RowKey: localhost => (column=e3f3c900-d5b0-11e0-aa6b-005056c8:ACTIVE, value=, timestamp=1315001665761000) => (column=e4515250-d5b0-11e0-aa6b-005056c8:INACTIVE, value=, timestamp=1315001654271000) => (column=e45549f0-d5b0-11e0-aa6b-005056c0

Re: Limiting ColumnSlice range in second composite value

2011-09-02 Thread Nate McCall
Instead of empty strings, try Character.[MAX|MIN-]_VALUE. On Thu, Sep 1, 2011 at 8:27 PM, Anthony Ikeda wrote: > My Column name is of Composite(TimeUUIDType, UTF8Type) and I can query > across the TimeUUIDs correctly, but now I want to also range across the UTF8 > component. Is this possible? > >

Limiting ColumnSlice range in second composite value

2011-09-01 Thread Anthony Ikeda
My Column name is of Composite(TimeUUIDType, UTF8Type) and I can query across the TimeUUIDs correctly, but now I want to also range across the UTF8 component. Is this possible? UUID start = uuidForDate(new Date(1979, 1, 1)); UUID end = uuidForDate(new Date(Long.MAX_VALUE)); String startState = "