|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ResourceMapping
A mapping defining a Resource saved in the Search Engine.
| Method Summary | |
|---|---|
AllMapping |
getAllMapping()
Returns a set of settings associated with the all mappings. |
String |
getAnalyzer()
Returns the analyzer name that need to be used with the resouce. |
ResourceAnalyzerController |
getAnalyzerController()
Returns the analzer controller that is associated with the Resource. |
float |
getBoost()
Returns the boost of the given resource. |
BoostPropertyMapping |
getBoostPropertyMapping()
Returns an optional boost property mapping associated with the Resource
in order to dynmaically set the resource boost value based on it. |
CascadeMapping[] |
getCascadeMappings()
Returns a list of all the cascade mappings. |
Mapping[] |
getIdMappings()
Returns all mappings that represent ids of a resource. |
ResourcePropertyMapping[] |
getResourceIdMappings()
Returns all the id mappigns for the low level resource mapping. |
ResourcePropertyMapping |
getResourcePropertyMapping(String propertyName)
Returns the first resource property mapping that match the given proeprty name ( Mapping.getName(), or
null if not exists. |
ResourcePropertyMapping |
getResourcePropertyMappingByDotPath(String path)
Returns the ResourcePropertyMapping that match the given path
"dot" path (a.bValue.value), or null if none exists. |
ResourcePropertyMapping |
getResourcePropertyMappingByPath(PropertyPath path)
Returns the ResourcePropertyMapping that match the given path
(Mapping.getPath(), or
null of not exists. |
ResourcePropertyMapping[] |
getResourcePropertyMappings()
Returns all the resource property mappings that are assoicated with the resource mapping. |
ResourcePropertyMapping[] |
getResourcePropertyMappings(String propertyName)
Returns the list of resource property mappings that match the given proeprty name ( Mapping.getName(), or
null if not exists. |
String[] |
getResourcePropertyNames()
Returns all the mapped property names for the resoruce. |
SpellCheckType |
getSpellCheck()
Returns the default spell check mode. |
SubIndexHash |
getSubIndexHash()
The sub index that the Resource will be saved to in the
search engine. |
String |
getUIDPath()
Returns the uid property name. |
boolean |
hasSpecificAnalyzerPerResourceProperty()
Returns true if the resource proeprty mapping of the resource have
a specific analyzer set. |
boolean |
isRoot()
Returns true if it is a root resource mapping. |
boolean |
operationAllowed(CascadeMapping.Cascade cascade)
Returns is an operation is allowed to be performed on this resoruce mappings. |
| Methods inherited from interface org.compass.core.mapping.AliasMapping |
|---|
getAlias, getExtendedAliases, getExtendingAliases, shallowCopy |
| Methods inherited from interface org.compass.core.mapping.MultipleMapping |
|---|
getMapping, getMapping, mappingsIt |
| Methods inherited from interface org.compass.core.mapping.Mapping |
|---|
controlsObjectNullability, copy, getConverter, getConverterName, getName, getPath |
| Method Detail |
|---|
SubIndexHash getSubIndexHash()
Resource will be saved to in the
search engine.
String getAnalyzer()
null.
getAnalyzer in interface AliasMappingboolean hasSpecificAnalyzerPerResourceProperty()
true if the resource proeprty mapping of the resource have
a specific analyzer set.
ResourceAnalyzerController getAnalyzerController()
Resource.
Can be null.
BoostPropertyMapping getBoostPropertyMapping()
Resource
in order to dynmaically set the resource boost value based on it. Can be null.
float getBoost()
boolean isRoot()
true if it is a root resource mapping. If it is a
root mapping, then it controlls the general Resource level
settings like alias and sub-index. Usually, non-root resource mapping are mappings that are
incorporated within another resoruce.
AllMapping getAllMapping()
Mapping[] getIdMappings()
SpellCheckType getSpellCheck()
String getUIDPath()
ResourcePropertyMapping[] getResourceIdMappings()
CascadeMapping[] getCascadeMappings()
boolean operationAllowed(CascadeMapping.Cascade cascade)
isRoot() always return true, while if
it is non root mappings, it should return true if it has cascade mappings
that map one of the cascade operations.
String[] getResourcePropertyNames()
ResourcePropertyMapping[] getResourcePropertyMappings()
ResourcePropertyMapping, and using this
method you can be assured that ALL the ResourcePropertyMappings will be returned
(even deep ones).
ResourcePropertyMapping getResourcePropertyMapping(String propertyName)
Mapping.getName(), or
null if not exists.
ResourcePropertyMapping[] getResourcePropertyMappings(String propertyName)
Mapping.getName(), or
null if not exists.
ResourcePropertyMapping getResourcePropertyMappingByPath(PropertyPath path)
ResourcePropertyMapping that match the given path
(Mapping.getPath(), or
null of not exists.
ResourcePropertyMapping getResourcePropertyMappingByDotPath(String path)
ResourcePropertyMapping that match the given path
"dot" path (a.bValue.value), or null if none exists.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||