public class LuceneWorkHydrator extends Object implements LuceneWorksBuilder
LuceneWorksBuilder
. An instance is passed to the
Deserializer.deserialize(byte[] , LuceneWorksBuilder )
method
of the de-serializer of a given SerializationProvider
.Constructor and Description |
---|
LuceneWorkHydrator(ExtendedSearchIntegrator searchIntegrator) |
Modifier and Type | Method and Description |
---|---|
void |
addAddLuceneWork(String entityClassName,
Map<String,String> fieldToAnalyzerMap,
ConversionContext conversionContext) |
void |
addAttributeInstance(AttributeImpl attribute) |
void |
addCharTermAttribute(CharSequence sequence) |
void |
addDeleteByQueryLuceneWork(String entityClassName,
DeletionQuery deletionQuery) |
void |
addDeleteLuceneWork(String entityClassName,
ConversionContext conversionContext) |
void |
addDocValuesFieldWithBinaryData(String name,
String type,
byte[] value,
int offset,
int length) |
void |
addDocValuesFieldWithNumericData(String name,
String type,
long value) |
void |
addDoubleNumericField(double value,
String name,
int precisionStep,
SerializableStore store,
boolean indexed,
float boost,
boolean omitNorms,
boolean omitTermFreqAndPositions) |
void |
addFieldable(byte[] instanceAsByte) |
void |
addFieldWithBinaryData(String name,
byte[] value,
int offset,
int length) |
void |
addFieldWithSerializableReaderData(String name,
byte[] valueAsByte,
SerializableTermVector termVector,
float boost,
boolean omitNorms,
boolean omitTermFreqAndPositions) |
void |
addFieldWithStringData(String name,
String value,
SerializableStore store,
SerializableIndex index,
SerializableTermVector termVector,
float boost,
boolean omitNorms,
boolean omitTermFreqAndPositions) |
void |
addFieldWithTokenStreamData(String name,
SerializableTermVector termVector,
float boost,
boolean omitNorms,
boolean omitTermFreqAndPositions) |
void |
addFlagsAttribute(int flags) |
void |
addFloatNumericField(float value,
String name,
int precisionStep,
SerializableStore store,
boolean indexed,
float boost,
boolean omitNorms,
boolean omitTermFreqAndPositions) |
void |
addFlush() |
void |
addId(Serializable id) |
void |
addIdAsJavaSerialized(byte[] idAsByte) |
void |
addIntNumericField(int value,
String name,
int precisionStep,
SerializableStore store,
boolean indexed,
float boost,
boolean omitNorms,
boolean omitTermFreqAndPositions) |
void |
addKeywordAttribute(boolean isKeyword) |
void |
addLongNumericField(long value,
String name,
int precisionStep,
SerializableStore store,
boolean indexed,
float boost,
boolean omitNorms,
boolean omitTermFreqAndPositions) |
void |
addOffsetAttribute(int startOffset,
int endOffset) |
void |
addOptimizeAll() |
void |
addPayloadAttribute(byte[] payloads) |
void |
addPositionIncrementAttribute(int positionIncrement) |
void |
addPurgeAllLuceneWork(String entityClassName) |
void |
addSerializedAttribute(byte[] bytes) |
void |
addToken() |
void |
addTokenTrackingAttribute(List<Integer> positions) |
void |
addTypeAttribute(String type) |
void |
addUpdateLuceneWork(String entityClassName,
Map<String,String> fieldToAnalyzerMap,
ConversionContext conversionContext) |
void |
defineDocument() |
List<AttributeImpl> |
getAttributes() |
List<LuceneWork> |
getLuceneWorks() |
List<List<AttributeImpl>> |
getTokens() |
public LuceneWorkHydrator(ExtendedSearchIntegrator searchIntegrator)
public List<LuceneWork> getLuceneWorks()
public void addOptimizeAll()
addOptimizeAll
in interface LuceneWorksBuilder
public void addFlush()
addFlush
in interface LuceneWorksBuilder
public void addPurgeAllLuceneWork(String entityClassName)
addPurgeAllLuceneWork
in interface LuceneWorksBuilder
public void addIdAsJavaSerialized(byte[] idAsByte)
addIdAsJavaSerialized
in interface LuceneWorksBuilder
public void addId(Serializable id)
addId
in interface LuceneWorksBuilder
public void addDeleteLuceneWork(String entityClassName, ConversionContext conversionContext)
addDeleteLuceneWork
in interface LuceneWorksBuilder
public void addDeleteByQueryLuceneWork(String entityClassName, DeletionQuery deletionQuery)
addDeleteByQueryLuceneWork
in interface LuceneWorksBuilder
public void addAddLuceneWork(String entityClassName, Map<String,String> fieldToAnalyzerMap, ConversionContext conversionContext)
addAddLuceneWork
in interface LuceneWorksBuilder
public void addUpdateLuceneWork(String entityClassName, Map<String,String> fieldToAnalyzerMap, ConversionContext conversionContext)
addUpdateLuceneWork
in interface LuceneWorksBuilder
public void defineDocument()
defineDocument
in interface LuceneWorksBuilder
public void addFieldable(byte[] instanceAsByte)
addFieldable
in interface LuceneWorksBuilder
public void addIntNumericField(int value, String name, int precisionStep, SerializableStore store, boolean indexed, float boost, boolean omitNorms, boolean omitTermFreqAndPositions)
addIntNumericField
in interface LuceneWorksBuilder
public void addLongNumericField(long value, String name, int precisionStep, SerializableStore store, boolean indexed, float boost, boolean omitNorms, boolean omitTermFreqAndPositions)
addLongNumericField
in interface LuceneWorksBuilder
public void addFloatNumericField(float value, String name, int precisionStep, SerializableStore store, boolean indexed, float boost, boolean omitNorms, boolean omitTermFreqAndPositions)
addFloatNumericField
in interface LuceneWorksBuilder
public void addDoubleNumericField(double value, String name, int precisionStep, SerializableStore store, boolean indexed, float boost, boolean omitNorms, boolean omitTermFreqAndPositions)
addDoubleNumericField
in interface LuceneWorksBuilder
public void addFieldWithBinaryData(String name, byte[] value, int offset, int length)
addFieldWithBinaryData
in interface LuceneWorksBuilder
public void addFieldWithStringData(String name, String value, SerializableStore store, SerializableIndex index, SerializableTermVector termVector, float boost, boolean omitNorms, boolean omitTermFreqAndPositions)
addFieldWithStringData
in interface LuceneWorksBuilder
public void addFieldWithTokenStreamData(String name, SerializableTermVector termVector, float boost, boolean omitNorms, boolean omitTermFreqAndPositions)
addFieldWithTokenStreamData
in interface LuceneWorksBuilder
public void addFieldWithSerializableReaderData(String name, byte[] valueAsByte, SerializableTermVector termVector, float boost, boolean omitNorms, boolean omitTermFreqAndPositions)
addFieldWithSerializableReaderData
in interface LuceneWorksBuilder
public void addSerializedAttribute(byte[] bytes)
addSerializedAttribute
in interface LuceneWorksBuilder
public void addAttributeInstance(AttributeImpl attribute)
addAttributeInstance
in interface LuceneWorksBuilder
public void addTokenTrackingAttribute(List<Integer> positions)
addTokenTrackingAttribute
in interface LuceneWorksBuilder
public void addCharTermAttribute(CharSequence sequence)
addCharTermAttribute
in interface LuceneWorksBuilder
public void addPayloadAttribute(byte[] payloads)
addPayloadAttribute
in interface LuceneWorksBuilder
public void addKeywordAttribute(boolean isKeyword)
addKeywordAttribute
in interface LuceneWorksBuilder
public void addPositionIncrementAttribute(int positionIncrement)
addPositionIncrementAttribute
in interface LuceneWorksBuilder
public void addFlagsAttribute(int flags)
addFlagsAttribute
in interface LuceneWorksBuilder
public void addTypeAttribute(String type)
addTypeAttribute
in interface LuceneWorksBuilder
public void addOffsetAttribute(int startOffset, int endOffset)
addOffsetAttribute
in interface LuceneWorksBuilder
public void addToken()
addToken
in interface LuceneWorksBuilder
public void addDocValuesFieldWithBinaryData(String name, String type, byte[] value, int offset, int length)
addDocValuesFieldWithBinaryData
in interface LuceneWorksBuilder
public void addDocValuesFieldWithNumericData(String name, String type, long value)
addDocValuesFieldWithNumericData
in interface LuceneWorksBuilder
public List<AttributeImpl> getAttributes()
public List<List<AttributeImpl>> getTokens()
Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved