incubator-lucy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marvin Humphrey (JIRA)" <>
Subject [jira] Updated: (LUCY-81) Object serialization
Date Thu, 03 Dec 2009 05:19:20 GMT


Marvin Humphrey updated LUCY-81:

    Attachment: charbuf_serialization.diff

CharBuf's serialization routine is straightforward: a C32 indicating byte
size, followed by UTF-8 bytes, with a sanity check to ensure valid UTF-8.  The
sanity check throws an error rather than replace invalid sequences, as the
assumption is that the material was already in memory at least once before and
thus if corruption has occurred something is seriously wrong.

> Object serialization
> --------------------
>                 Key: LUCY-81
>                 URL:
>             Project: Lucy
>          Issue Type: New Feature
>          Components: Core
>            Reporter: Marvin Humphrey
>            Assignee: Marvin Humphrey
>         Attachments: charbuf_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.

View raw message