org.hibernate.search.indexes.serialization.spi
Interface LuceneWorkSerializer

All Known Implementing Classes:
PluggableSerializationLuceneWorkSerializer

public interface LuceneWorkSerializer

For clustering we need some way to serialize the LuceneWork(s) to the other nodes.

Author:
Sanne Grinovero (C) 2011 Red Hat Inc.

Method Summary
 List<LuceneWork> toLuceneWorks(byte[] data)
          Convert a byte[] to a List of LuceneWork
 byte[] toSerializedModel(List<LuceneWork> works)
          Convert a List of LuceneWork into a byte[]
 

Method Detail

toSerializedModel

byte[] toSerializedModel(List<LuceneWork> works)
Convert a List of LuceneWork into a byte[]


toLuceneWorks

List<LuceneWork> toLuceneWorks(byte[] data)
Convert a byte[] to a List of LuceneWork



Copyright © 2006-2012 Red Hat Middleware, LLC. All Rights Reserved