org.compass.core.mapping.rsem
Class RawResourcePropertyAnalyzerController

java.lang.Object
  extended by org.compass.core.mapping.support.AbstractMapping
      extended by org.compass.core.mapping.support.AbstractResourcePropertyMapping
          extended by org.compass.core.mapping.rsem.RawResourcePropertyMapping
              extended by org.compass.core.mapping.rsem.RawResourcePropertyAnalyzerController
All Implemented Interfaces:
InternalMapping, InternalOverrideByNameMapping, InternalResourcePropertyMapping, Mapping, OverrideByNameMapping, ResourceAnalyzerController, ResourcePropertyMapping

public class RawResourcePropertyAnalyzerController
extends RawResourcePropertyMapping
implements ResourceAnalyzerController

Author:
kimchy

Constructor Summary
RawResourcePropertyAnalyzerController()
           
 
Method Summary
 Mapping copy()
          Copies over the mapping definition into a newly instanciated Mapping object.
 String getAnalyzerResourcePropertyName()
          Returns the name of the Resource Property which value will control the analyzer to be used for the resource.
 Property.Index getIndex()
           
 String getNullAnalyzer()
          Returns the name of the analyzer to be used in case the Resource Property value is null.
 Property.Store getStore()
           
 Property.TermVector getTermVector()
           
 boolean hasNullAnalyzer()
          Returns true if the controller has a null analyzer configured.
 Boolean isOmitNorms()
          Should the reosurce property omit norms or not.
 Boolean isOmitTf()
          Expert: If set, omit tf from postings of this indexed field.
 void setNullAnalyzer(String nullAnalyzer)
           
 
Methods inherited from class org.compass.core.mapping.rsem.RawResourcePropertyMapping
copy, getResourcePropertyConverter, isOverrideByName, setOverrideByName
 
Methods inherited from class org.compass.core.mapping.support.AbstractResourcePropertyMapping
copy, getAnalyzer, getBoost, getExcludeFromAll, getNullValue, getOriginalName, getReverse, getRootAlias, getSpellCheck, hasNullValue, isInternal, setAnalyzer, setBoost, setExcludeFromAll, setIndex, setInternal, setName, setNullValue, setOmitNorms, setOmitTf, setReverse, setRootAlias, setSpellCheck, setStore, setTermVector
 
Methods inherited from class org.compass.core.mapping.support.AbstractMapping
controlsObjectNullability, copy, getConverter, getConverterName, getName, getPath, setConverter, setConverterName, setPath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.compass.core.mapping.Mapping
controlsObjectNullability, getConverter, getConverterName, getName, getPath
 
Methods inherited from interface org.compass.core.mapping.ResourcePropertyMapping
getAnalyzer, getBoost, getExcludeFromAll, getNullValue, getOriginalName, getReverse, getRootAlias, getSpellCheck, hasNullValue, isInternal
 
Methods inherited from interface org.compass.core.mapping.internal.InternalMapping
setConverter, setConverterName, setName, setPath
 

Constructor Detail

RawResourcePropertyAnalyzerController

public RawResourcePropertyAnalyzerController()
Method Detail

copy

public Mapping copy()
Description copied from interface: Mapping
Copies over the mapping definition into a newly instanciated Mapping object.

Specified by:
copy in interface Mapping
Overrides:
copy in class RawResourcePropertyMapping

getAnalyzerResourcePropertyName

public String getAnalyzerResourcePropertyName()
Description copied from interface: ResourceAnalyzerController
Returns the name of the Resource Property which value will control the analyzer to be used for the resource.

Specified by:
getAnalyzerResourcePropertyName in interface ResourceAnalyzerController

getIndex

public Property.Index getIndex()
Specified by:
getIndex in interface ResourcePropertyMapping
Overrides:
getIndex in class AbstractResourcePropertyMapping

getStore

public Property.Store getStore()
Specified by:
getStore in interface ResourcePropertyMapping
Overrides:
getStore in class AbstractResourcePropertyMapping

getTermVector

public Property.TermVector getTermVector()
Specified by:
getTermVector in interface ResourcePropertyMapping
Overrides:
getTermVector in class AbstractResourcePropertyMapping

isOmitNorms

public Boolean isOmitNorms()
Description copied from interface: ResourcePropertyMapping
Should the reosurce property omit norms or not.

Specified by:
isOmitNorms in interface ResourcePropertyMapping
Overrides:
isOmitNorms in class AbstractResourcePropertyMapping
See Also:
Property.setOmitNorms(boolean)

isOmitTf

public Boolean isOmitTf()
Description copied from interface: ResourcePropertyMapping
Expert: If set, omit tf from postings of this indexed field.

Specified by:
isOmitTf in interface ResourcePropertyMapping
Overrides:
isOmitTf in class AbstractResourcePropertyMapping
See Also:
Property.setOmitTf(boolean)

getNullAnalyzer

public String getNullAnalyzer()
Description copied from interface: ResourceAnalyzerController
Returns the name of the analyzer to be used in case the Resource Property value is null.

Specified by:
getNullAnalyzer in interface ResourceAnalyzerController

setNullAnalyzer

public void setNullAnalyzer(String nullAnalyzer)

hasNullAnalyzer

public boolean hasNullAnalyzer()
Description copied from interface: ResourceAnalyzerController
Returns true if the controller has a null analyzer configured.

Specified by:
hasNullAnalyzer in interface ResourceAnalyzerController


Copyright (c) 2004-2009 The Compass Project.