Ramasubramanian Narayanan... 2012-12-27, 09:54
You can define the StartKey of your scan object to be the customer
number (i.e. the prefix of your rowkey)
Define the end key to be the same but append a zero byte at the end to
signify include of the rowkey.
This should retrieve all rows starting with that customer number.
Sent from my iPhone
On 27 בדצמ 2012, at 11:54, Ramasubramanian Narayanan
<[EMAIL PROTECTED]> wrote:
> Suppose a rowkey contains some 5 fields delimited by "|", then how to use
> the same in the where clause?
> For example, I have some 4 customer records who is having different number
> address .. for simplicity, I had for customer number 1,he has only one
> address, for customer number 2, he has two addresses, like wise till 4
> So totally there will be 10 records in my table...
> Customer Number Number of address
> Customer 1 - 1
> Customer 2 - 2
> Customer 3 - 3
> Customer 4 - 4
> *Here is my rowkey: (Customer number | Type of address)*
> Now question is, how to select all the details of customer 4 (customer
> number 10000000004)?
> Is it possible to use substring of rowkey in the where clause? I don't know
> whether he may have home/office or any type of address..
> Please help in providing query for the same..
Mohammad Tariq 2012-12-27, 10:16
Ramasubramanian Narayanan... 2012-12-27, 10:38
Mohammad Tariq 2012-12-27, 10:43
ramkrishna vasudevan 2012-12-27, 16:08
Ramasubramanian Narayanan... 2013-01-18, 03:43