You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geode.apache.org by "Xu, Nan" <nx...@baml.com> on 2017/10/13 17:56:00 UTC

destroy vs remove

Hi,

   Any difference on destroy and remove on keys? Seems doing the same thing. And remove support a bulk remove.

Thanks,
Nan

----------------------------------------------------------------------
This message, and any attachments, is for the intended recipient(s) only, may contain information that is privileged, confidential and/or proprietary and subject to important terms and conditions available at http://www.bankofamerica.com/emaildisclaimer.   If you are not the intended recipient, please delete this message.

Re: destroy vs remove

Posted by Darrel Schneider <ds...@pivotal.io>.
Dan is correct. At one point the Region interface did not implement Map. So
we had methods like destroy. Later when Map was added we picked up new
methods that basically do the same thing.


On Fri, Oct 13, 2017 at 11:14 AM, Dan Smith <ds...@pivotal.io> wrote:

> I think this only difference is really just the behavior of the method if
> the entry is not present. Region.destroy will throw an
> EntryNotFoundException if there is no entry to remove. Region.remove will
> not.
>
> -Dan
>
> On Fri, Oct 13, 2017 at 10:56 AM, Xu, Nan <nx...@baml.com> wrote:
>
>> Hi,
>>
>>
>>
>>    Any difference on destroy and remove on keys? Seems doing the same
>> thing. And remove support a bulk remove.
>>
>>
>>
>> Thanks,
>>
>> Nan
>> ------------------------------
>> This message, and any attachments, is for the intended recipient(s) only,
>> may contain information that is privileged, confidential and/or proprietary
>> and subject to important terms and conditions available at
>> http://www.bankofamerica.com/emaildisclaimer. If you are not the
>> intended recipient, please delete this message.
>>
>
>

Re: destroy vs remove

Posted by Dan Smith <ds...@pivotal.io>.
I think this only difference is really just the behavior of the method if
the entry is not present. Region.destroy will throw an
EntryNotFoundException if there is no entry to remove. Region.remove will
not.

-Dan

On Fri, Oct 13, 2017 at 10:56 AM, Xu, Nan <nx...@baml.com> wrote:

> Hi,
>
>
>
>    Any difference on destroy and remove on keys? Seems doing the same
> thing. And remove support a bulk remove.
>
>
>
> Thanks,
>
> Nan
> ------------------------------
> This message, and any attachments, is for the intended recipient(s) only,
> may contain information that is privileged, confidential and/or proprietary
> and subject to important terms and conditions available at
> http://www.bankofamerica.com/emaildisclaimer. If you are not the intended
> recipient, please delete this message.
>