The confusing phrase in the docs here is "or even so to transform them into byte arrays for lazy deserialization."
The above really should be: "and to transform into byte arrays when using storeAsBinary".
Metadata is marshalled separately and you don't need to do it yourself.
We observe that Lucene indexes doesn't work when we enable storeAsBinary were able to figure out from code but can we document this as well.
Is there way other than masking the DataContainer with our own data container to have query enabled. Because I think it would be a basic requirement to have data stored in binary format and also query for huge data i.e. 100 million plus records .
For this in our case we required approx 750GB of Memory with replication and also to query we would be requiring indexes as multiple copies of value part cannot be stored.
We can bring the memory requirement down to 100GB but now the challenge is how to use Lucent indexes.
It seems that Index Builders used Datacontainer interface rather than local cache interface which seems logical but this calls for changing the data container itself.