[ 
https://issues.apache.org/jira/browse/LUCY-81?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Marvin Humphrey updated LUCY-81:
--------------------------------

    Attachment: hash_serialization.diff

Most Hash objects have string keys, so the serialization routines in
hash_serialization.diff special-case CharBuf keys as an optimization.  FREEZE
is used for all values and all non-CharBuf keys, which is more costly because
of the need to encode the class name.

> Object serialization
> --------------------
>
>                 Key: LUCY-81
>                 URL: https://issues.apache.org/jira/browse/LUCY-81
>             Project: Lucy
>          Issue Type: New Feature
>          Components: Core
>            Reporter: Marvin Humphrey
>            Assignee: Marvin Humphrey
>         Attachments: bytebuf_serialization.diff, charbuf_serialization.diff, 
> freezer.diff, hash_serialization.diff, num_serialization.diff, 
> obj_serialize.diff
>
>
> Objects are serialized to OutStreams and deserialized from InStreams.  Hooks
> are provided for the Perl core serialization module Storable, so that e.g.
> Storable::freeze($query) works as expected; hopefully it will prove practical
> to hook into canonical serialization routines for other hosts as well.
> The primary utility for serialization is communication between machines within
> search clusters, so all classes that may need to be sent across the network
> will eventually get serialization routines.  However, only Lucy installations
> with exactly the same version can be guaranteed to serialize and deserialize
> each others data; rolling updates are not supported.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to