|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fcrepo.server.search.FieldSearchSQLImpl
public class FieldSearchSQLImpl
A FieldSearch implementation that uses a relational database as a backend.
| Field Summary | |
|---|---|
static String[] |
DB_COLUMN_NAMES
|
static String[] |
DB_COLUMN_NAMES_NODC
|
| Constructor Summary | |
|---|---|
FieldSearchSQLImpl(ConnectionPool cPool,
RepositoryReader repoReader,
int maxResults,
int maxSecondsPerSession)
Construct a FieldSearchSQLImpl that indexes DC fields. |
|
FieldSearchSQLImpl(ConnectionPool cPool,
RepositoryReader repoReader,
int maxResults,
int maxSecondsPerSession,
boolean indexDCFields)
Construct a FieldSearchSQLImpl that indexes DC fields only if specified. |
|
| Method Summary | |
|---|---|
boolean |
delete(String pid)
Remove an object from the search indexes. |
FieldSearchResult |
findObjects(String[] resultFields,
int maxResults,
FieldSearchQuery query)
Search across specific fields and return the desired fields. |
FieldSearchResult |
resumeFindObjects(String sessionToken)
Resume an in-progress search across specific fields and return the desired fields. |
void |
update(DOReader reader)
Update the search indexes with information from the provided DOReader. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static String[] DB_COLUMN_NAMES
public static String[] DB_COLUMN_NAMES_NODC
| Constructor Detail |
|---|
public FieldSearchSQLImpl(ConnectionPool cPool,
RepositoryReader repoReader,
int maxResults,
int maxSecondsPerSession)
cPool - the ConnectionPool with connections to the db containing the
fieldsrepoReader - the RepositoryReader to use when getting the original values of
the fieldsmaxResults - the maximum number of results to return at a time, regardless of
what the user might requestmaxSecondsPerSession - maximum number of seconds per session.
public FieldSearchSQLImpl(ConnectionPool cPool,
RepositoryReader repoReader,
int maxResults,
int maxSecondsPerSession,
boolean indexDCFields)
cPool - the ConnectionPool with connections to the db containing the
fieldsrepoReader - the RepositoryReader to use when getting the original values of
the fieldsmaxResults - the maximum number of results to return at a time, regardless of
what the user might requestmaxSecondsPerSession - maximum number of seconds per session.indexDCFields - whether DC field values should be examined and updated in the
database. If false, queries will behave as if no values had been
specified for the DC fields.| Method Detail |
|---|
public void update(DOReader reader)
throws ServerException
FieldSearch
update in interface FieldSearchreader - the DOReader containing all the field information for the object
ServerException - if anything went wrong
public boolean delete(String pid)
throws ServerException
FieldSearch
delete in interface FieldSearchpid - the unique id of the object whose info should be removed
ServerException - if anything went wrong
public FieldSearchResult findObjects(String[] resultFields,
int maxResults,
FieldSearchQuery query)
throws UnrecognizedFieldException,
ObjectIntegrityException,
RepositoryConfigurationException,
StreamIOException,
ServerException,
StorageDeviceException
FieldSearch
findObjects in interface FieldSearchresultFields - the desired fieldsmaxResults - the maximum number of results the client wantsquery - the query
ServerException - if anything went wrong
UnrecognizedFieldException
ObjectIntegrityException
RepositoryConfigurationException
StreamIOException
StorageDeviceException
public FieldSearchResult resumeFindObjects(String sessionToken)
throws UnrecognizedFieldException,
ObjectIntegrityException,
RepositoryConfigurationException,
StreamIOException,
ServerException,
UnknownSessionTokenException
FieldSearch
resumeFindObjects in interface FieldSearchsessionToken - the token of the session in which the remaining results can be
found
ServerException - if anything went wrong
UnrecognizedFieldException
ObjectIntegrityException
RepositoryConfigurationException
StreamIOException
UnknownSessionTokenException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||