|
SPT Object Database API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sptci.prevayler.query.AbstractQuery<P,S>
com.sptci.prevayler.query.Search<P,S>
public class Search<P extends Collection<PrevalentObject>,S extends PrevalentSystem>
The query for retrieving a collection of prevalent objects that match the specified query and optional filter. This query uses the full-text indices to retrieve the matching prevalent objects.
© Copyright 2008 Sans Pareil
Technologies, Inc.
| Field Summary | |
|---|---|
private int |
count
The maximum number of search results to return. |
private org.apache.lucene.search.Filter |
filter
The optional filter clause to apply for the search results. |
private org.apache.lucene.search.Query |
query
The query that is to be executed. |
private org.apache.lucene.search.Sort |
sort
The sort criteria to apply to the search results. |
| Constructor Summary | |
|---|---|
Search(org.apache.lucene.search.Query query,
org.apache.lucene.search.Filter filter,
int count)
Create a new instance of the query with the specified parameters. |
|
Search(org.apache.lucene.search.Query query,
org.apache.lucene.search.Filter filter,
int count,
org.apache.lucene.search.Sort sort)
Create a new instance of the query with the specified parameters. |
|
Search(org.apache.lucene.search.Query query,
int count)
Create a new instance of the query with the specified parameters. |
|
| Method Summary | |
|---|---|
protected P |
query(S system,
Date timestamp)
Execute the query on the prevalent system and return the prevalent object instances that match the specified query. |
| Methods inherited from class com.sptci.prevayler.query.AbstractQuery |
|---|
query |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final org.apache.lucene.search.Query query
private final org.apache.lucene.search.Filter filter
private final int count
private final org.apache.lucene.search.Sort sort
| Constructor Detail |
|---|
public Search(org.apache.lucene.search.Query query,
int count)
query - The lucene query to execute.count - The maximum number of results.
public Search(org.apache.lucene.search.Query query,
org.apache.lucene.search.Filter filter,
int count)
query - The lucene query to execute.filter - The filter to apply to the results.count - The maximum number of results.
public Search(org.apache.lucene.search.Query query,
org.apache.lucene.search.Filter filter,
int count,
org.apache.lucene.search.Sort sort)
query - The lucene query to execute.filter - The filter to apply to the results.count - The maximum number of results.sort - The sort criteria for the results.| Method Detail |
|---|
protected P query(S system,
Date timestamp)
throws PrevalentException
query in class AbstractQuery<P extends Collection<PrevalentObject>,S extends PrevalentSystem>system - The prevalent system that is to be acted upon.timestamp - The timestamp for the query.
PrevalentException - If errors are encountered
while fetching the required prevalent object.
|
SPT Object Database API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||