Re: What is the purpose of a binary schema and schema registry?

2018-02-06 Thread Valentin Kulichenko
Hi John, There are multiple ways to get several schemas for the same type. As Pavel mentioned, one of the examples is when Binarylizable generates different sets of fields under different circumstances. However, more common use case is for two client nodes to have different versions of the same c

Re: What is the purpose of a binary schema and schema registry?

2018-02-06 Thread Pavel Tupitsyn
Hi John, BinarySchema is an optimization to make serialized objects more compact. Schema is basically int[] containing field ids. Schemas are stored by id in the cluster. Serialized objects themselves contain only a set of field offsets (basically int[] or short[] or byte[]). So to get a value of

What is the purpose of a binary schema and schema registry?

2018-02-05 Thread John Wilson
Hi, When objects are marshaled, Ignites adds a schema (BinarySchema) to the BinarySchemaRegistry. Moreover, the documentation says that an object can have a few different schemas. My question: 1. What does it mean for an object to have multiple schemas? (e.g. for a simple person object Per