+1 on Mike's suggestion for the ReflectionBasedAutoSerializer To get name and author you could use OQL: https://gemfire.docs.pivotal.io/geode/getting_started/querying_quick_reference.html#reference_D5CE64F5FD6F4A808AEFB748C867189E
On Tue, Aug 29, 2017 at 5:45 PM, Michael Stolz <[email protected]> wrote: > 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 <(631)%20835-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. >> > > -- Luke Shannon | Platform Engineering | Pivotal ------------------------------------------------------------------------- Mobile:416-571-9495 Join the Toronto Pivotal Usergroup: http://www.meetup.com/Toronto-Pivotal-User-Group/
