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

All Known Implementing Classes:
LuceneWorkHydrator

public interface LuceneWorksBuilder

Author:
Emmanuel Bernard

Method Summary
 void addAddLuceneWork(String entityClassName, Map<String,String> fieldToAnalyzerMap, ConversionContext conversionContext)
           
 void addAttributeInstance(AttributeImpl attribute)
           
 void addCharTermAttribute(CharSequence sequence)
           
 void addDeleteLuceneWork(String entityClassName, ConversionContext conversionContext)
           
 void addDoubleNumericField(double value, String name, int precisionStep, SerializableStore store, boolean indexed, float boost, boolean omitNorms, boolean omitTermFreqAndPositions)
           
 void addFieldable(byte[] instance)
           
 void addFieldWithBinaryData(String name, byte[] value, int offset, int length, float boost, boolean omitNorms, boolean omitTermFreqAndPositions)
           
 void addFieldWithSerializableReaderData(String name, byte[] value, 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 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(float boost)
           
 

Method Detail

addOptimizeAll

void addOptimizeAll()

addPurgeAllLuceneWork

void addPurgeAllLuceneWork(String entityClassName)

addIdAsJavaSerialized

void addIdAsJavaSerialized(byte[] idAsByte)

addId

void addId(Serializable id)

addDeleteLuceneWork

void addDeleteLuceneWork(String entityClassName,
                         ConversionContext conversionContext)

addAddLuceneWork

void addAddLuceneWork(String entityClassName,
                      Map<String,String> fieldToAnalyzerMap,
                      ConversionContext conversionContext)

addUpdateLuceneWork

void addUpdateLuceneWork(String entityClassName,
                         Map<String,String> fieldToAnalyzerMap,
                         ConversionContext conversionContext)

defineDocument

void defineDocument(float boost)

addFieldable

void addFieldable(byte[] instance)

addIntNumericField

void addIntNumericField(int value,
                        String name,
                        int precisionStep,
                        SerializableStore store,
                        boolean indexed,
                        float boost,
                        boolean omitNorms,
                        boolean omitTermFreqAndPositions)

addLongNumericField

void addLongNumericField(long value,
                         String name,
                         int precisionStep,
                         SerializableStore store,
                         boolean indexed,
                         float boost,
                         boolean omitNorms,
                         boolean omitTermFreqAndPositions)

addFloatNumericField

void addFloatNumericField(float value,
                          String name,
                          int precisionStep,
                          SerializableStore store,
                          boolean indexed,
                          float boost,
                          boolean omitNorms,
                          boolean omitTermFreqAndPositions)

addDoubleNumericField

void addDoubleNumericField(double value,
                           String name,
                           int precisionStep,
                           SerializableStore store,
                           boolean indexed,
                           float boost,
                           boolean omitNorms,
                           boolean omitTermFreqAndPositions)

addFieldWithBinaryData

void addFieldWithBinaryData(String name,
                            byte[] value,
                            int offset,
                            int length,
                            float boost,
                            boolean omitNorms,
                            boolean omitTermFreqAndPositions)

addFieldWithStringData

void addFieldWithStringData(String name,
                            String value,
                            SerializableStore store,
                            SerializableIndex index,
                            SerializableTermVector termVector,
                            float boost,
                            boolean omitNorms,
                            boolean omitTermFreqAndPositions)

addFieldWithTokenStreamData

void addFieldWithTokenStreamData(String name,
                                 SerializableTermVector termVector,
                                 float boost,
                                 boolean omitNorms,
                                 boolean omitTermFreqAndPositions)

addFieldWithSerializableReaderData

void addFieldWithSerializableReaderData(String name,
                                        byte[] value,
                                        SerializableTermVector termVector,
                                        float boost,
                                        boolean omitNorms,
                                        boolean omitTermFreqAndPositions)

addSerializedAttribute

void addSerializedAttribute(byte[] bytes)

addAttributeInstance

void addAttributeInstance(AttributeImpl attribute)

addTokenTrackingAttribute

void addTokenTrackingAttribute(List<Integer> positions)

addCharTermAttribute

void addCharTermAttribute(CharSequence sequence)

addPayloadAttribute

void addPayloadAttribute(byte[] payloads)

addKeywordAttribute

void addKeywordAttribute(boolean isKeyword)

addPositionIncrementAttribute

void addPositionIncrementAttribute(int positionIncrement)

addFlagsAttribute

void addFlagsAttribute(int flags)

addTypeAttribute

void addTypeAttribute(String type)

addOffsetAttribute

void addOffsetAttribute(int startOffset,
                        int endOffset)

addToken

void addToken()


Copyright © 2006-2013 Red Hat, Inc. All Rights Reserved