public interface LuceneWorkSerializer extends Service
LuceneWork
instances.
Needed for clustering where we need to serialize the work to remote nodes.
Note:
Implementations need to be threadsafe.
Modifier and Type | Method and Description |
---|---|
String |
describeSerializer() |
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[].
|
byte[] toSerializedModel(List<LuceneWork> works)
works
- the list of LuceneWork
LuceneWork
as byte[]List<LuceneWork> toLuceneWorks(byte[] data)
data
- the byte array to convertLuceneWork
String describeSerializer()
Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved