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)
Startable
public void stop()
Stoppable
public byte[] toSerializedModel(List<LuceneWork> works)
toSerializedModel
in interface LuceneWorkSerializer
works
- the list of LuceneWork
LuceneWork
as byte[]public List<LuceneWork> toLuceneWorks(byte[] data)
toLuceneWorks
in interface LuceneWorkSerializer
data
- the byte array to convertLuceneWork
public String describeSerializer()
describeSerializer
in interface LuceneWorkSerializer
Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved