You should probably use the PDX ReflectionBasedAutoSerializer.
Then you can write a server-side function that you call to get just the
fields you want and return them.

--
Mike Stolz
Principal Engineer, GemFire Product Manager
Mobile: +1-631-835-4771

On Tue, Aug 29, 2017 at 4:49 PM, Xu, Nan <[email protected]> wrote:

> Hi,
>
>
>
>     I have an object comprise of
>
>
>
>      MyObject{
>
>                 byte[]  data;
>
>                 String name;
>
>                 String author;
>
>                 ….
>
>                 Other properties;
>
>     }
>
>
>
> Or I can use
>
>
>
> MyObject{
>
>                 Byte[] data;
>
>                Other  allOther;
>
> }
>
>
>
> When I get by key, I only want to get all the properties except the data
> itself, because data could be large, is that has to be done with query?
> Not sure how the performance of query compare to  region.get(key).
>
>
>
> Another question is to serialize the data. Do I need to upload the jar
> containing MyObject to geode server?
>
>
>
> 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.
>

Reply via email to