public class LuceneWorkSerializerImpl extends Object implements LuceneWorkSerializer, Startable, Stoppable
List<LuceneWork> instances back and forth using a pluggable SerializerProvider.
This class controls the overall traversal process and delegates true serialization work to the SerializerProvider.| Constructor and Description |
|---|
LuceneWorkSerializerImpl() |
| Modifier and Type | Method and Description |
|---|---|
String |
describeSerializer() |
void |
start(Properties properties,
BuildContext context)
Start phase notification.
|
void |
stop()
Stop phase notification
|
List<LuceneWork> |
toLuceneWorks(byte[] data)
Convert a byte[] to a List of LuceneWork (assuming the same SerializationProvider is used of course)
|
byte[] |
toSerializedModel(List<LuceneWork> works)
Convert a List of LuceneWork into a byte[]
|
public void start(Properties properties, BuildContext context)
Startablepublic void stop()
Stoppablepublic byte[] toSerializedModel(List<LuceneWork> works)
toSerializedModel in interface LuceneWorkSerializerworks - the list of LuceneWorkLuceneWork as byte[]public List<LuceneWork> toLuceneWorks(byte[] data)
toLuceneWorks in interface LuceneWorkSerializerdata - the byte array to convertLuceneWorkpublic String describeSerializer()
describeSerializer in interface LuceneWorkSerializerCopyright © 2006–2016 Hibernate. All rights reserved.