t; Map para = new HashMap();
> para.put("id", 0);
> resultList = simpleHbaseClient.findObjectList(new PersonRowKey(1),
> new PersonRowKey(3), Person.class, "queryByNameAndAge",
> para);
> log.info(resultList);
>
>
nabble.com/a-short-introduction-of-simplehbase-hbase-ORM-tp4054488p4054492.html
> Sent from the HBase User mailing list archive at Nabble.com.
>
--
Best Regards,
Haosdent Huang
If you reply to this email, your message will be added to the discussion below:
http://apache-hbase.679495.n3.
oject depends on.
>
If you reply to this email, your message will be added to the discussion below:
http://apache-hbase.679495.n3.nabble.com/a-short-introduction-of-simplehbase-hbase-ORM-tp4054488p4054505.html
To unsubscribe from a short introduction of simplehbase(hbase ORM), click here.
NAML
-
+1
于 2014/1/6 12:24, Ted Yu 写道:
I think you should point to Apache release - if there is no special feature
from adh3u2.2 that your project depends on.
rson two = new Person();
> > > two.setId(2);
> > > two.setName("dan");
> > > two.setAge(31);
> > > two.setGender(Gender.FEMALE);
> > > simpleHbaseClient.putObject(new PersonRowKey(2), two);
> >
//search by range.
> > List resultList = simpleHbaseClient.findObjectList(
> > new PersonRowKey(1), new PersonRowKey(3), Person.class);
> > log.info(resultList);
> >
> > //search by dynamic query.
> > Map para
of Phoenix these days.
> > > If I am wrong, pls let me know, thx.
> > > It seems to me Phoenix will provide a JDBC-driver against hbase.
> > > But simplehbase will provide some hbase close related features.
> > >
> > >
> > >
> > >
--
> > View this message in context:
> >
> http://apache-hbase.679495.n3.nabble.com/a-short-introduction-of-simplehbase-hbase-ORM-tp4054488p4054492.html
> > Sent from the HBase User mailing list archive at Nabble.com.
> >
>
se.
> But simplehbase will provide some hbase close related features.
>
>
>
> --
> View this message in context:
> http://apache-hbase.679495.n3.nabble.com/a-short-introduction-of-simplehbase-hbase-ORM-tp4054488p4054492.html
> Sent from the HBase User mailing list archive at Nabble.com.
>
let me know, thx.
> It seems to me Phoenix will provide a JDBC-driver against hbase.
> But simplehbase will provide some hbase close related features.
>
>
>
> --
> View this message in context:
> http://apache-hbase.679495.n3.nabble.com/a-short-introduction-of-simplehbase-hb
.nabble.com/a-short-introduction-of-simplehbase-hbase-ORM-tp4054488p4054492.html
Sent from the HBase User mailing list archive at Nabble.com.
sultList = simpleHbaseClient.findObjectList(new PersonRowKey(1),
> new PersonRowKey(3), Person.class, "queryByNameAndAge",
> para);
> log.info(resultList);
>
> //search by dynamic query.
> para.put("name", "allen")
ObjectList(new PersonRowKey(1),
> new PersonRowKey(3), Person.class, "queryByNameAndAge",
> para);
> log.info(resultList);
>
> //search by dynamic query.
> para.put("name", "allen");
> para.put("age", 0);
> resultList = simpleHbaseClient.findObjectList(new PersonRowKey(1),
> new PersonRowKey(3), Person.class, "queryByNameAndAge",
> para);
> log.info(resultList);
>
> //batch delete.
> simpleHbaseClient.deleteObjectList(new PersonRowKey(0),
> new PersonRowKey(100));
>
> }
>
>
>
>
>
>
>
>
> --
> View this message in context:
> http://apache-hbase.679495.n3.nabble.com/a-short-introduction-of-simplehbase-hbase-ORM-tp4054488.html
> Sent from the HBase User mailing list archive at Nabble.com.
>
HbaseClient.findObjectList(new PersonRowKey(1),
new PersonRowKey(3), Person.class, "queryByNameAndAge",
para);
log.info(resultList);
//batch delete.
simpleHbaseClient.deleteObjectList(new PersonRowKey(0),
new PersonRowKey(100));
}
14 matches
Mail list logo