1

I'm still quite new to apache geode...

I currently put objects in geode region using fromData(IPdxReader) and toData(IPdxWriter) and I write/read line by line.

I need to add a new object, that is hundreds of lines long.

How to serialize a whole object without serializing it line by line?

Riccardo
  • 1,083
  • 2
  • 15
  • 25
Edgaras
  • 449
  • 3
  • 14

1 Answers1

1

At:

private void HandleCreateAndUpdate(EntryEvent<TKey, TVal> ev)

Option 1:

IPdxInstance pdx = (IPdxInstance)ev.NewValue;
AutoBooker qb = (AutoBooker)pdx.GetObject();

Option 2:

AutoBooker qb = (dynamic)ev.NewValue;
Edgaras
  • 449
  • 3
  • 14
  • 1
    There's another way to serialise [here](https://stackoverflow.com/questions/45568028/geode-native-client-deserialise-pdxinstanceimpl) – rupweb Sep 28 '20 at 17:04