|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ResourceFactory
A Resource and Property factory allowing to
create new instances.
Note, this does not means that the resources will be created in the search engine.
CompassOperations.create(Object), or one of the other APIs still need
to be called.
| Method Summary | |
|---|---|
Property |
createProperty(String name,
byte[] value,
Property.Store store)
Creates a binary property. |
Property |
createProperty(String name,
Reader value)
Creates a property (TEXT type) for the specified reader. |
Property |
createProperty(String name,
Reader value,
Property.TermVector termVector)
Creates a property (indexed, and not stored) for the specified reader. |
Property |
createProperty(String value,
ResourcePropertyMapping mapping)
Creates a Property that is used with the actual Search Engine |
Property |
createProperty(String value,
ResourcePropertyMapping mapping,
Property.Store store,
Property.Index index)
|
Property |
createProperty(String name,
String value,
Property.Store store,
Property.Index index)
Creates a Property that is used with the actual Search Engine |
Property |
createProperty(String name,
String value,
Property.Store store,
Property.Index index,
Property.TermVector termVector)
Creates a Property that is used with the actual Search Engine. |
Property |
createProperty(String name,
String value,
ResourcePropertyConverter converter)
Creates a property based on the converter, using the suggested values the converter has for index, store and so on. |
Property |
createProperty(String name,
String value,
ResourcePropertyMapping mapping)
Creates a Property that is used with the actual Search Engine |
Resource |
createResource(String alias)
Creates a resource, that is used with the actual Search Engine implementation. |
String |
getNullValue()
Returns a null value that represents no entry in the search engine. |
boolean |
isNullValue(String value)
Returns true if the value is marked as a null value. |
| Method Detail |
|---|
String getNullValue()
boolean isNullValue(String value)
Resource createResource(String alias)
throws SearchEngineException
SearchEngineException
Property createProperty(String value,
ResourcePropertyMapping mapping)
throws SearchEngineException
SearchEngineException
Property createProperty(String value,
ResourcePropertyMapping mapping,
Property.Store store,
Property.Index index)
throws SearchEngineException
SearchEngineException
Property createProperty(String name,
String value,
ResourcePropertyMapping mapping)
throws SearchEngineException
SearchEngineException
Property createProperty(String name,
String value,
ResourcePropertyConverter converter)
Property createProperty(String name,
String value,
Property.Store store,
Property.Index index)
throws SearchEngineException
SearchEngineException
Property createProperty(String name,
String value,
Property.Store store,
Property.Index index,
Property.TermVector termVector)
throws SearchEngineException
SearchEngineException
Property createProperty(String name,
Reader value)
throws SearchEngineException
SearchEngineException
Property createProperty(String name,
Reader value,
Property.TermVector termVector)
throws SearchEngineException
SearchEngineException
Property createProperty(String name,
byte[] value,
Property.Store store)
throws SearchEngineException
SearchEngineException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||