Package org.fcrepo.search.impl
Class DbSearchIndexImpl
java.lang.Object
org.fcrepo.search.impl.DbSearchIndexImpl
- All Implemented Interfaces:
org.fcrepo.search.api.SearchIndex
@Component("searchIndexImpl")
public class DbSearchIndexImpl
extends Object
implements org.fcrepo.search.api.SearchIndex
An implementation of the
SearchIndex- Author:
- dbernstein, whikloj
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddUpdateIndex(org.fcrepo.kernel.api.Transaction transaction, org.fcrepo.kernel.api.models.ResourceHeaders resourceHeaders) voidvoidcommitTransaction(org.fcrepo.kernel.api.Transaction tx) org.fcrepo.search.api.SearchResultdoSearch(org.fcrepo.search.api.SearchParameters parameters) voidremoveFromIndex(org.fcrepo.kernel.api.Transaction transaction, org.fcrepo.kernel.api.identifiers.FedoraId fedoraId) voidreset()voidrollbackTransaction(org.fcrepo.kernel.api.Transaction tx) voidsetup()Setup database table and connection
-
Field Details
-
SEARCH_RESOURCE_RDF_TYPE_TABLE
- See Also:
-
SEARCH_RDF_TYPE_TABLE
- See Also:
-
RDF_TYPE_ID_COLUMN
- See Also:
-
ID_COLUMN
- See Also:
-
RDF_TYPE_URI_PARAM
- See Also:
-
RESOURCE_SEARCH_ID_PARAM
- See Also:
-
TRANSACTION_ID_PARAM
- See Also:
-
-
Constructor Details
-
DbSearchIndexImpl
public DbSearchIndexImpl()
-
-
Method Details
-
setup
Setup database table and connection -
doSearch
public org.fcrepo.search.api.SearchResult doSearch(org.fcrepo.search.api.SearchParameters parameters) throws org.fcrepo.search.api.InvalidQueryException - Specified by:
doSearchin interfaceorg.fcrepo.search.api.SearchIndex- Throws:
org.fcrepo.search.api.InvalidQueryException
-
addUpdateIndex
public void addUpdateIndex(org.fcrepo.kernel.api.Transaction transaction, org.fcrepo.kernel.api.models.ResourceHeaders resourceHeaders) - Specified by:
addUpdateIndexin interfaceorg.fcrepo.search.api.SearchIndex
-
removeFromIndex
public void removeFromIndex(org.fcrepo.kernel.api.Transaction transaction, org.fcrepo.kernel.api.identifiers.FedoraId fedoraId) - Specified by:
removeFromIndexin interfaceorg.fcrepo.search.api.SearchIndex
-
reset
- Specified by:
resetin interfaceorg.fcrepo.search.api.SearchIndex
-
clearAllTransactions
- Specified by:
clearAllTransactionsin interfaceorg.fcrepo.search.api.SearchIndex
-
commitTransaction
- Specified by:
commitTransactionin interfaceorg.fcrepo.search.api.SearchIndex
-
rollbackTransaction
@Transactional(propagation=NOT_SUPPORTED) public void rollbackTransaction(org.fcrepo.kernel.api.Transaction tx) - Specified by:
rollbackTransactionin interfaceorg.fcrepo.search.api.SearchIndex
-