|
P-Grid v2.0a2 API Specification | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Query
Defines the operations that queries support. A query includes a query string pair and a type of relevant items. It is used to specify a search request for the storage layer. A simple query, where we are looking for a precise data item, is considered as a special kind of range query where both bounds are equals.
| Method Summary | |
|---|---|
GUID |
getGUID()
Get the query's guid. |
String |
getHigherBound()
Get the higher query string that defines the query, e.g. a keyword such as 'Madonna' or a semantic query such as '<predicate>Actor</predicate><object>Madonna</object>'. |
KeyRange |
getKeyRange()
Get the key of the query used to route it to the responsible peer. |
String |
getLowerBound()
Get the lower bound of the range query string that defines the query, e.g. a keyword such as 'Madonna' or a semantic query such as '<predicate>Actor</predicate><object>Madonna</object>'. |
int |
getStatus()
Get the query's status code, as defined by the storage layer. |
Type |
getType()
Get the type of items the query considers, e.g. text/file, etc. |
| Method Detail |
|---|
GUID getGUID()
KeyRange getKeyRange()
int getStatus()
Type getType()
String getLowerBound()
String getHigherBound()
|
P-Grid v2.0a2 API Specification | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||