org.apache.uima.lucas.indexer
Class FieldBuilder

java.lang.Object
  extended by org.apache.uima.lucas.indexer.FieldBuilder

public class FieldBuilder
extends Object


Field Summary
static String FIELD_INDEX_NO
           
static String FIELD_INDEX_NO_NORMS
           
static String FIELD_INDEX_NO_NORMS_TF
           
static String FIELD_INDEX_NO_TF
           
static String FIELD_INDEX_YES
           
static String FIELD_STORE_COMPRESS
           
static String FIELD_STORE_NO
           
static String FIELD_STORE_YES
           
static String FIELD_TERM_VECTOR_NO
           
static String FIELD_TERM_VECTOR_WITH_OFFSETS
           
static String FIELD_TERM_VECTOR_WITH_POSITIONS
           
static String FIELD_TERM_VECTOR_WITH_POSITIONS_OFFSETS
           
static String FIELD_TERM_VECTOR_YES
           
protected  FieldDescription fieldDescription
           
protected  TokenStreamStringConcatenator tokenStreamStringConcatenator
           
 
Constructor Summary
FieldBuilder(FilterBuilder filterBuilder)
           
 
Method Summary
protected  FieldBuildingException createException(Exception e)
           
 Collection<org.apache.lucene.document.Field> createFields(Collection<org.apache.lucene.analysis.TokenStream> tokenStreams, FieldDescription fieldDescription)
           
protected  org.apache.lucene.analysis.TokenStream createFieldTokenStream(Collection<org.apache.lucene.analysis.TokenStream> tokenStreams, FieldDescription fieldDescription)
           
protected  org.apache.lucene.document.Field createIndexedField(String fieldName, org.apache.lucene.analysis.TokenStream tokenStream, org.apache.lucene.document.Field.Index fieldIndex, org.apache.lucene.document.Field.TermVector fieldTermVector, boolean omitTF)
           
protected  Collection<org.apache.lucene.document.Field> createStoredFields(String fieldName, org.apache.lucene.analysis.TokenStream tokenStream, org.apache.lucene.document.Field.Store fieldStore, String delimiter, Boolean unique, org.apache.lucene.document.Field.Index fieldIndex, Boolean omitTF)
           
protected  org.apache.lucene.document.Field.Index getFieldIndex(String index)
           
protected  org.apache.lucene.document.Field.Store getFieldStore(String store)
           
protected  org.apache.lucene.document.Field.TermVector getFieldTermVector(String termVector)
           
protected  org.apache.lucene.analysis.TokenStream getFilteredTokenStream(String fieldName, org.apache.lucene.analysis.TokenStream tokenStream, Collection<FilterDescription> filterDescriptions)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FIELD_INDEX_NO

public static final String FIELD_INDEX_NO
See Also:
Constant Field Values

FIELD_INDEX_YES

public static final String FIELD_INDEX_YES
See Also:
Constant Field Values

FIELD_INDEX_NO_NORMS

public static final String FIELD_INDEX_NO_NORMS
See Also:
Constant Field Values

FIELD_INDEX_NO_TF

public static final String FIELD_INDEX_NO_TF
See Also:
Constant Field Values

FIELD_INDEX_NO_NORMS_TF

public static final String FIELD_INDEX_NO_NORMS_TF
See Also:
Constant Field Values

FIELD_TERM_VECTOR_NO

public static final String FIELD_TERM_VECTOR_NO
See Also:
Constant Field Values

FIELD_TERM_VECTOR_YES

public static final String FIELD_TERM_VECTOR_YES
See Also:
Constant Field Values

FIELD_TERM_VECTOR_WITH_OFFSETS

public static final String FIELD_TERM_VECTOR_WITH_OFFSETS
See Also:
Constant Field Values

FIELD_TERM_VECTOR_WITH_POSITIONS

public static final String FIELD_TERM_VECTOR_WITH_POSITIONS
See Also:
Constant Field Values

FIELD_TERM_VECTOR_WITH_POSITIONS_OFFSETS

public static final String FIELD_TERM_VECTOR_WITH_POSITIONS_OFFSETS
See Also:
Constant Field Values

FIELD_STORE_NO

public static final String FIELD_STORE_NO
See Also:
Constant Field Values

FIELD_STORE_YES

public static final String FIELD_STORE_YES
See Also:
Constant Field Values

FIELD_STORE_COMPRESS

public static final String FIELD_STORE_COMPRESS
See Also:
Constant Field Values

tokenStreamStringConcatenator

protected TokenStreamStringConcatenator tokenStreamStringConcatenator

fieldDescription

protected FieldDescription fieldDescription
Constructor Detail

FieldBuilder

public FieldBuilder(FilterBuilder filterBuilder)
Method Detail

createFields

public Collection<org.apache.lucene.document.Field> createFields(Collection<org.apache.lucene.analysis.TokenStream> tokenStreams,
                                                                 FieldDescription fieldDescription)
                                                          throws FieldBuildingException
Throws:
FieldBuildingException

createFieldTokenStream

protected org.apache.lucene.analysis.TokenStream createFieldTokenStream(Collection<org.apache.lucene.analysis.TokenStream> tokenStreams,
                                                                        FieldDescription fieldDescription)
                                                                 throws FieldBuildingException
Throws:
FieldBuildingException

getFilteredTokenStream

protected org.apache.lucene.analysis.TokenStream getFilteredTokenStream(String fieldName,
                                                                        org.apache.lucene.analysis.TokenStream tokenStream,
                                                                        Collection<FilterDescription> filterDescriptions)
                                                                 throws FieldBuildingException
Throws:
FieldBuildingException

createException

protected FieldBuildingException createException(Exception e)

createIndexedField

protected org.apache.lucene.document.Field createIndexedField(String fieldName,
                                                              org.apache.lucene.analysis.TokenStream tokenStream,
                                                              org.apache.lucene.document.Field.Index fieldIndex,
                                                              org.apache.lucene.document.Field.TermVector fieldTermVector,
                                                              boolean omitTF)

createStoredFields

protected Collection<org.apache.lucene.document.Field> createStoredFields(String fieldName,
                                                                          org.apache.lucene.analysis.TokenStream tokenStream,
                                                                          org.apache.lucene.document.Field.Store fieldStore,
                                                                          String delimiter,
                                                                          Boolean unique,
                                                                          org.apache.lucene.document.Field.Index fieldIndex,
                                                                          Boolean omitTF)
                                                                   throws FieldBuildingException
Throws:
FieldBuildingException

getFieldIndex

protected org.apache.lucene.document.Field.Index getFieldIndex(String index)
                                                        throws FieldBuildingException
Throws:
FieldBuildingException

getFieldTermVector

protected org.apache.lucene.document.Field.TermVector getFieldTermVector(String termVector)
                                                                  throws FieldBuildingException
Throws:
FieldBuildingException

getFieldStore

protected org.apache.lucene.document.Field.Store getFieldStore(String store)
                                                        throws FieldBuildingException
Throws:
FieldBuildingException


Copyright © 2006-2011 The Apache Software Foundation. All Rights Reserved.