|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.mmbase.storage.search.implementation.database.BasicQueryHandler
Basic implementation using a database.
Uses a SqlHandler
to create SQL string representations of search queries.
In order to execute search queries, these are represented as SQL strings by the handler, and in this form executed on the database.
| Field Summary |
| Fields inherited from interface org.mmbase.storage.search.SearchQueryHandler |
FEATURE_MAX_NUMBER, FEATURE_OFFSET, SUPPORT_NONE, SUPPORT_NORMAL, SUPPORT_OPTIMAL, SUPPORT_WEAK |
| Constructor Summary | |
BasicQueryHandler(SqlHandler sqlHandler)
Default constructor. |
|
| Method Summary | |
java.util.List |
getNodes(SearchQuery query,
MMObjectBuilder builder)
Processes a search query, returns the result as a list of nodes. |
int |
getSupportLevel(Constraint constraint,
SearchQuery query)
Gets the level at which a constraint is supported for a query by this handler. |
int |
getSupportLevel(int feature,
SearchQuery query)
Gets the level at which a feature is supported for a query by this handler. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BasicQueryHandler(SqlHandler sqlHandler)
sqlHandler - The handler use to create SQL string representations
of search queries.| Method Detail |
public java.util.List getNodes(SearchQuery query,
MMObjectBuilder builder)
throws SearchQueryException
SearchQueryHandler<step alias>.<field name>, where
the step alias is required to be of the form
<step tablename><x>, and
<x> is either empty or a single digit. Examples: images.number, images0.number,
images1.number
getNodes in interface SearchQueryHandlerquery - The search query.builder - The builder for the result nodes. Specify a
ResultBuilder
to get resultnodes.
ClusterBuilder
to get clusternodes.
SearchQueryExceptionResultNode,
ClusterNode
public int getSupportLevel(int feature,
SearchQuery query)
throws SearchQueryException
SearchQueryHandler
getSupportLevel in interface SearchQueryHandlerSearchQueryException
public int getSupportLevel(Constraint constraint,
SearchQuery query)
throws SearchQueryException
SearchQueryHandler
getSupportLevel in interface SearchQueryHandlerSearchQueryException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||