Package org.apache.olingo.ext.proxy.api
Interface Search<T extends EntityType<?>,EC extends Collection<T>>
- Type Parameters:
T
- search result typeEC
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
SearchImpl
Interface used to control search execution.
-
Method Summary
Modifier and TypeMethodDescriptionExecutes a $search search and return the search results as collection.The $search expression for this search.Sets the $search expression for this search.Sets the search generating the $search expression for this search.
-
Method Details
-
setSearch
Sets the $search expression for this search.
Any of available operators and functions can be embodied here.- Parameters:
search
- the $search expression for this search- Returns:
- the same search instance
-
setSearch
Sets the search generating the $search expression for this search.- Parameters:
search
- search instance (to be obtained via ODataSearchFactory): note that build() method will be immediately invoked.- Returns:
- the same search instance
-
getSearch
String getSearch()The $search expression for this search.- Returns:
- the $search expression for this search
-
getResult
EC getResult()Executes a $search search and return the search results as collection.- Returns:
- an iterable view of the results
-