Re: help using the Cell API

2018-05-23 Thread Chia-Ping Tsai
> Oh I see. yeah we should clarify that nested classes take on the IA of > their enclosing class. https://issues.apache.org/jira/browse/HBASE-20622 On 2018/05/22 14:21:11, Sean Busbey wrote: > On Tue, May 22, 2018 at 9:13 AM, Chia-Ping Tsai wrote: > >> I don't see why we'd treat them different

Re: help using the Cell API

2018-05-22 Thread Sean Busbey
On Tue, May 22, 2018 at 9:13 AM, Chia-Ping Tsai wrote: >> I don't see why we'd treat them different from any other members. > > The rule "If a class is not annotated with one of these, it is assumed to be > a InterfaceAudience.Private class." is in hbase docs. Perhaps we should > revise this des

Re: help using the Cell API

2018-05-22 Thread Chia-Ping Tsai
> I don't see why we'd treat them different from any other members. The rule "If a class is not annotated with one of these, it is assumed to be a InterfaceAudience.Private class." is in hbase docs. Perhaps we should revise this description? On 2018/05/22 14:03:04, Sean Busbey wrote: > On Tu

Re: help using the Cell API

2018-05-22 Thread Sean Busbey
On Tue, May 22, 2018 at 8:34 AM, Chia-Ping Tsai wrote: >> Ah, so maybe this is just YETUS-628 "Class level InterfaceAudience is >> not applied to internal classes/enums" ? > > I didn't trace YETUS-628. But, ya the concept of YETUS-628 is same to me. > Nevertheless, seems our docs haven't mentione

Re: help using the Cell API

2018-05-22 Thread Chia-Ping Tsai
> Ah, so maybe this is just YETUS-628 "Class level InterfaceAudience is > not applied to internal classes/enums" ? I didn't trace YETUS-628. But, ya the concept of YETUS-628 is same to me. Nevertheless, seems our docs haven't mentioned the such definition to nested class. If we can reach the con

Re: help using the Cell API

2018-05-22 Thread Sean Busbey
On Tue, May 22, 2018 at 7:44 AM, Chia-Ping Tsai wrote: >>the Cell.Type enum is IA.Private > > Cell.Type should be IA.Public. I planed to add the IA.Public to Cell.Type in > HBASE-20121 but I assume the nested class should have the same IA with the > root class...Perhaps we can file a jira to fix

Re: help using the Cell API

2018-05-22 Thread Chia-Ping Tsai
>the Cell.Type enum is IA.Private Cell.Type should be IA.Public. I planed to add the IA.Public to Cell.Type in HBASE-20121 but I assume the nested class should have the same IA with the root class...Perhaps we can file a jira to fix it. > Before I go to update the docs, There was a related iss

help using the Cell API

2018-05-21 Thread Sean Busbey
Over in HBASE-20334 I'm trying to include a simple example program that does a series of Puts to a test table. I figured I'd try to use the Cell API to do this, but I've gotten confused. Let's say I just want to insert SOME_NUMBER rows, with as little specified as possible. Using just public API: