Re: Specifying startBefore with iterators with compositeKeys

2014-04-01 Thread Tyler Hobbs
On Tue, Apr 1, 2014 at 9:53 AM, Brian Tarbox wrote: > I think another way of saying this is: "does HeapByteBuffer with > pos=,lim=0,cap=0 sort prior to any other possible HeapByteBuffer? Yes. However, if you use it as a slice finish, an empty ByteBuffer is greater than any other value. -- Ty

Specifying startBefore with iterators with compositeKeys

2014-04-01 Thread Brian Tarbox
I have a composite key consisting of: (integer, bytes) and I have rows like: (1,abc), (1,def), (2,abc), (2,def) and I want to find all rows with the integer part = 2. I need to create a startBeyondName using CompositeType.Builder class and am wondering if specifying (2, Bytes.Empty) will sort corr