public class SearchParams
extends java.lang.Object
StoreClient.search(SearchParams, io.vertx.core.Handler)| Constructor and Description |
|---|
SearchParams() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getLayer()
Get the name of the layer where to search for chunks recursively
|
java.lang.String |
getQuery()
Get the search query specifying which chunks will be returned
|
int |
hashCode() |
boolean |
isOptimisticMerging()
Get whether optimistic merging is enabled or not.
|
SearchParams |
setLayer(java.lang.String layer)
Set the name of the layer where to search for chunks recursively
|
SearchParams |
setOptimisticMerging(boolean optimisticMerging)
Enable or disable optimistic merging.
|
SearchParams |
setQuery(java.lang.String query)
Set a search query specifying which chunks to return
|
public SearchParams setQuery(java.lang.String query)
query - the query (may be null if all chunks should
be returned)public java.lang.String getQuery()
null if all chunks will
be returned)public SearchParams setLayer(java.lang.String layer)
layer - the layer (may be null if chunks should be
searched in the root layer recursively)public java.lang.String getLayer()
null if chunks will be
searched in the root layer recursively)public SearchParams setOptimisticMerging(boolean optimisticMerging)
Enable or disable optimistic merging.
Optimistic merging can tremendously reduce search latency by immediately returning chunks as soon as they have been fetched from GeoRocket's store without initialization. This is particularly useful if the data is homogeneous. The drawback is that GeoRocket might not be able to merge chunks that do not fit to the overall search result. For example, if the store contains XML files and all chunks are homogeneous and have the same XML namespaces they can be merged perfectly with optimistic merging enabled. However, if some chunks have different namespaces, GeoRocket will not be able to merge them if the XML header of the search result has already been sent to the client.
Chunks that cannot be merged will be ignored by GeoRocket and the
operation will succeed. The number of chunks that could not be merged
can be obtained with SearchReadStreamResult.getUnmergedChunks(). The
caller can then decide whether to repeat the query with optimistic
merging disabled or not.
optimisticMerging - true if optimistic merging should be
enabled, false otherwise.SearchReadStreamResult.getUnmergedChunks()public boolean isOptimisticMerging()
setOptimisticMerging(boolean).true if optimistic merging is enabled, false
otherwise.public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object