List Info

Thread: without insert method in HTable class




without insert method in HTable class
user name
2008-01-20 02:46:01
Dear colleagues:
         I don't know how to insert new rows in a table, and
there's
no insert method in HTable class. Can you tell me how to
insert some
rows in a  new table?
        Thanks.

Best wishes!

Qiang Ma
Department of Computer Science and Engineering
Fudan University
Shanghai, P. R. China
EMail: maqiang1984gmail.com

Re: without insert method in HTable class
user name
2008-01-20 04:10:31
Try like this :

  HTable table = new HTable(conf, Text tableName);
  long lockId = table.startUpdate(getRow());

  table.put(lockId, Text columnName, byte[] value);
  table.commit(lockId);

On 1/20/08, ma qiang <maqiang1984gmail.com> wrote:
> Dear colleagues:
>         I don't know how to insert new rows in a table,
and there's
> no insert method in HTable class. Can you tell me how
to insert some
> rows in a  new table?
>        Thanks.
>
> Best wishes!
>
> Qiang Ma
> Department of Computer Science and Engineering
> Fudan University
> Shanghai, P. R. China
> EMail: maqiang1984gmail.com
>


-- 
B. Regards,
Edward yoon  NHN, corp.

Re: without insert method in HTable class
user name
2008-01-20 04:16:20
Try like this:

 HTable table = new HTable(conf, Text tableName);
 long lockId = table.startUpdate(Text row);

 table.put(lockId, Text columnName, byte[] value);
 table.commit(lockId);

On 1/20/08, ma qiang <maqiang1984gmail.com> wrote:
> Dear colleagues:
>         I don't know how to insert new rows in a table,
and there's
> no insert method in HTable class. Can you tell me how
to insert some
> rows in a  new table?
>        Thanks.
>
> Best wishes!
>
> Qiang Ma
> Department of Computer Science and Engineering
> Fudan University
> Shanghai, P. R. China
> EMail: maqiang1984gmail.com
>


-- 
B. Regards,
Edward yoon  NHN, corp.

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )