Package ome.services.blitz.impl
Class SearchI
- java.lang.Object
-
- ome.services.blitz.impl.AbstractAmdServant
-
- ome.services.blitz.impl.AbstractCloseableAmdServant
-
- ome.services.blitz.impl.SearchI
-
- All Implemented Interfaces:
_SearchOperations,_ServiceInterfaceOperations,_StatefulServiceInterfaceOperations,CloseableServant,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
public class SearchI extends AbstractCloseableAmdServant implements _SearchOperations
Implementation of the Search service.- Since:
- 3.0-Beta4
- See Also:
Search
-
-
Constructor Summary
Constructors Constructor Description SearchI(ome.api.Search service, BlitzExecutor be)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactiveQueries_async(AMD_Search_activeQueries __cb, Ice.Current __current)Returns the number of active queries.voidaddOrderByAsc_async(AMD_Search_addOrderByAsc __cb, java.lang.String path, Ice.Current __current)A path from the target entity which will be added to the current stack of order statements applied to the query.voidaddOrderByDesc_async(AMD_Search_addOrderByDesc __cb, java.lang.String path, Ice.Current __current)A path from the target entity which will be added to the current stack of order statements applied to the query.voidallTypes_async(AMD_Search_allTypes __cb, Ice.Current __current)Permits all types to be returned.voidand_async(AMD_Search_and __cb, Ice.Current __current)Applies the next by* method to the previous by* method, so that a callhasNext,next, orresultssees only the intersection of the two calls.voidbyAnnotatedWith_async(AMD_Search_byAnnotatedWith __cb, java.util.List<Annotation> examples, Ice.Current __current)Finds entities annotated with anAnnotationsimilar to the example.voidbyFullText_async(AMD_Search_byFullText __cb, java.lang.String query, Ice.Current __current)Passes the query as is to the Lucene backend.voidbyGroupForTags_async(AMD_Search_byGroupForTags __cb, java.lang.String group, Ice.Current __current)Returns transient (without ID)TagAnnotationinstances which represent all theTagAnnotationtags in the given group.voidbyHqlQuery_async(AMD_Search_byHqlQuery __cb, java.lang.String query, Parameters params, Ice.Current __current)Delegates toomero.api.IQuery.findAllByQuerymethod to take advantage of theand,or, andnotmethods, or queue-semantics.voidbyLuceneQueryBuilder_async(AMD_Search_byLuceneQueryBuilder __cb, java.lang.String fields, java.lang.String from, java.lang.String to, java.lang.String dateType, java.lang.String query, Ice.Current __current)Builds a Lucene query and passes it to the Lucene backend.voidbySimilarTerms_async(AMD_Search_bySimilarTerms __cb, java.util.List<java.lang.String> terms, Ice.Current __current)Returns transient (without ID)TextAnnotationinstances which represent terms which are similar to the given terms.voidbySomeMustNone_async(AMD_Search_bySomeMustNone __cb, java.util.List<java.lang.String> some, java.util.List<java.lang.String> must, java.util.List<java.lang.String> none, Ice.Current __current)Builds a Lucene query and passes it tobyFullText.voidbyTagForGroups_async(AMD_Search_byTagForGroups __cb, java.lang.String tag, Ice.Current __current)Creates a query which will return transient (without ID)TagAnnotationinstances which represent all theTagAnnotationtag groups which the given tag belongs to.voidclearQueries_async(AMD_Search_clearQueries __cb, Ice.Current __current)Removes all active queries (leavingresetDefaultssettings alone), such thatactiveQuerieswill return 0.voidcurrentMetadata_async(AMD_Search_currentMetadata __cb, Ice.Current __current)Provides access to the extra query information (for example Lucene score and boost values) for a single call tonext.voidcurrentMetadataList_async(AMD_Search_currentMetadataList __cb, Ice.Current __current)Provides access to the extra query information (for example Lucene score and boost values) for a single call toresults.voidfetchAlso_async(AMD_Search_fetchAlso __cb, java.util.List<java.lang.String> fetches, Ice.Current __current)Adds a fetch clause for loading non-annotation fields of returned entities.voidfetchAnnotations_async(AMD_Search_fetchAnnotations __cb, java.util.List<java.lang.String> classes, Ice.Current __current)Queries the database for allAnnotationannotations of the given types for all returned instances.voidgetBatchSize_async(AMD_Search_getBatchSize __cb, Ice.Current __current)Returns the current batch size.voidhasNext_async(AMD_Search_hasNext __cb, Ice.Current __current)Returnstrueif another call tonextis valid.voidisAllowLeadingWildcard_async(AMD_Search_isAllowLeadingWildcard __cb, Ice.Current __current)Returns the current leading-wildcard setting.voidisCaseSensitive_async(AMD_Search_isCaseSensitive __cb, Ice.Current __current)Returns the current case sensitivity setting.voidisMergedBatches_async(AMD_Search_isMergedBatches __cb, Ice.Current __current)Returns the current merged-batches setting.voidisReturnUnloaded_async(AMD_Search_isReturnUnloaded __cb, Ice.Current __current)Returns the current return-unloaded setting.voidisUseProjections_async(AMD_Search_isUseProjections __cb, Ice.Current __current)Returns the current use-projection setting.voidnext_async(AMD_Search_next __cb, Ice.Current __current)Returns the next entity from the current query.voidnot_async(AMD_Search_not __cb, Ice.Current __current)Applies the next by* method to the previous by* method, so that a callhasNext,next, orresultssees only the intersection of the two calls.voidnotAnnotatedBy_async(AMD_Search_notAnnotatedBy __cb, Details d, Ice.Current __current)Restricts entities by who has not annotated them with anAnnotationmatching the other filters.voidnotOwnedBy_async(AMD_Search_notOwnedBy __cb, Details d, Ice.Current __current)Uses theDetails.getOwner()andDetails.getGroup()information to restrict the entities which will be returned.voidonlyAnnotatedBetween_async(AMD_Search_onlyAnnotatedBetween __cb, RTime start, RTime stop, Ice.Current __current)Restricts entities by the time in which any annotation (which matches the other filters) was added them.voidonlyAnnotatedBy_async(AMD_Search_onlyAnnotatedBy __cb, Details d, Ice.Current __current)Restricts entities by who has annotated them with anAnnotationmatching the other filters.voidonlyAnnotatedWith_async(AMD_Search_onlyAnnotatedWith __cb, java.util.List<java.lang.String> classes, Ice.Current __current)Restricts entities to having anAnnotationof all the given types.voidonlyCreatedBetween_async(AMD_Search_onlyCreatedBetween __cb, RTime start, RTime stop, Ice.Current __current)Restricts the time between which an entity may have been created.voidonlyIds_async(AMD_Search_onlyIds __cb, java.util.List<java.lang.Long> ids, Ice.Current __current)Restricts the set of ids which will be checked.voidonlyModifiedBetween_async(AMD_Search_onlyModifiedBetween __cb, RTime start, RTime stop, Ice.Current __current)Restricts the time between which an entity may have last been modified.voidonlyOwnedBy_async(AMD_Search_onlyOwnedBy __cb, Details d, Ice.Current __current)Uses theDetails.getOwner()andDetails.getGroup()information to restrict the entities which will be returned.voidonlyType_async(AMD_Search_onlyType __cb, java.lang.String klass, Ice.Current __current)Restricts the search to a single type.voidonlyTypes_async(AMD_Search_onlyTypes __cb, java.util.List<java.lang.String> classes, Ice.Current __current)Restricts searches to a set of types.voidor_async(AMD_Search_or __cb, Ice.Current __current)Applies the next by* method to the previous by* method, so that a callhasNext,nextorresultssees only the union of the two calls.protected voidpostClose(Ice.Current current)Should not throw any exceptions which should be detected by clients since it is called in a finally block after the client thread has been released.protected voidpreClose(Ice.Current current)voidremove_async(AMD_Search_remove __cb, Ice.Current __current)Unsupported operation.voidresetDefaults_async(AMD_Search_resetDefaults __cb, Ice.Current __current)Resets all settings (non-query state) to the original default values, as if the instance had just be created.voidresults_async(AMD_Search_results __cb, Ice.Current __current)Returns up togetBatchSizebatch size number of results along with the related query metadata.voidsetAllowLeadingWildcard_async(AMD_Search_setAllowLeadingWildcard __cb, boolean allowLeadingWildcard, Ice.Current __current)Permits full-text queries with a leading query if true.voidsetBatchSize_async(AMD_Search_setBatchSize __cb, int size, Ice.Current __current)Sets the maximum number of results that will be returned by one call toresults.voidsetCaseSensitive_async(AMD_Search_setCaseSensitive __cb, boolean caseSensitive, Ice.Current __current)Sets the case sensitivity on all queries where case-sensitivity is supported.voidsetCaseSentivice_async(AMD_Search_setCaseSentivice __cb, boolean caseSensitive, Ice.Current __current)Sets the case sensitivity on all queries where case-sensitivity is supported.voidsetMergedBatches_async(AMD_Search_setMergedBatches __cb, boolean merge, Ice.Current __current)Set whether or not results from two separate queries can be returned in the same call toresults.voidsetReturnUnloaded_async(AMD_Search_setReturnUnloaded __cb, boolean returnUnloaded, Ice.Current __current)Determines if all results should be returned as unloaded objects.voidsetUseProjections_async(AMD_Search_setUseProjections __cb, boolean useProjections, Ice.Current __current)Determines if Lucene queries should not hit the database.voidunordered_async(AMD_Search_unordered __cb, Ice.Current __current)Removes the current stack of order statements.-
Methods inherited from class ome.services.blitz.impl.AbstractCloseableAmdServant
close, close_async
-
Methods inherited from class ome.services.blitz.impl.AbstractAmdServant
activate_async, applyHardWiredInterceptors, callInvokerOnMappedArgs, callInvokerOnRawArgs, executorWorkCall, getCurrentEventContext_async, onSetOmeroContext, passivate_async, runnableCall, safeRunnableCall, setApplicationContext, setHolder
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface omero.api._StatefulServiceInterfaceOperations
activate_async, close_async, getCurrentEventContext_async, passivate_async
-
-
-
-
Constructor Detail
-
SearchI
public SearchI(ome.api.Search service, BlitzExecutor be)
-
-
Method Detail
-
activeQueries_async
public void activeQueries_async(AMD_Search_activeQueries __cb, Ice.Current __current) throws ServerError
Description copied from interface:_SearchOperationsReturns the number of active queries. This means thatactiveQueriesgives the minimum number of remaining calls toresultswhen batches are not merged.- Specified by:
activeQueries_asyncin interface_SearchOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
addOrderByAsc_async
public void addOrderByAsc_async(AMD_Search_addOrderByAsc __cb, java.lang.String path, Ice.Current __current) throws ServerError
Description copied from interface:_SearchOperationsA path from the target entity which will be added to the current stack of order statements applied to the query.- Specified by:
addOrderByAsc_asyncin interface_SearchOperations- Parameters:
__cb- The callback object for the operation.path- Non-null.__current- The Current object for the invocation.- Throws:
ServerError
-
addOrderByDesc_async
public void addOrderByDesc_async(AMD_Search_addOrderByDesc __cb, java.lang.String path, Ice.Current __current) throws ServerError
Description copied from interface:_SearchOperationsA path from the target entity which will be added to the current stack of order statements applied to the query.- Specified by:
addOrderByDesc_asyncin interface_SearchOperations- Parameters:
__cb- The callback object for the operation.path- Non-null.__current- The Current object for the invocation.- Throws:
ServerError
-
allTypes_async
public void allTypes_async(AMD_Search_allTypes __cb, Ice.Current __current) throws ServerError
Description copied from interface:_SearchOperationsPermits all types to be returned. For some types of queries, this carries a performance penalty as every database table must be hit.- Specified by:
allTypes_asyncin interface_SearchOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
and_async
public void and_async(AMD_Search_and __cb, Ice.Current __current) throws ServerError
Description copied from interface:_SearchOperationsApplies the next by* method to the previous by* method, so that a callhasNext,next, orresultssees only the intersection of the two calls. For example,
will return only the Images with TagAnnotations.service.onlyType(Image.class); service.byFullText("foo"); service.intersection(); service.byAnnotatedWith(TagAnnotation.class);Calling this method overrides a previous setting of
orornot. If there is no active queries (i.e.activeQueries > 0), then anApiUsageExceptionwill be thrown.- Specified by:
and_asyncin interface_SearchOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
byAnnotatedWith_async
public void byAnnotatedWith_async(AMD_Search_byAnnotatedWith __cb, java.util.List<Annotation> examples, Ice.Current __current) throws ServerError
Description copied from interface:_SearchOperationsFinds entities annotated with anAnnotationsimilar to the example. This does not use Hibernate'somero.api.IQuery.findByExampleQuery-By-Example} mechanism, since that cannot handle joins. The fields which are used are:- the main content of the annotation : String,
IObject.getId(), etc.
nullit is assumed to be a wildcard searched, and only the type of the annotation is searched. Currently, ListAnnotations are not supported.- Specified by:
byAnnotatedWith_asyncin interface_SearchOperations- Parameters:
__cb- The callback object for the operation.examples- Not empty.__current- The Current object for the invocation.- Throws:
ServerError
- the main content of the annotation : String,
-
byFullText_async
public void byFullText_async(AMD_Search_byFullText __cb, java.lang.String query, Ice.Current __current) throws ServerError
Description copied from interface:_SearchOperationsPasses the query as is to the Lucene backend.- Specified by:
byFullText_asyncin interface_SearchOperations- Parameters:
__cb- The callback object for the operation.query- May not be null or of zero length.__current- The Current object for the invocation.- Throws:
ServerError
-
byLuceneQueryBuilder_async
public void byLuceneQueryBuilder_async(AMD_Search_byLuceneQueryBuilder __cb, java.lang.String fields, java.lang.String from, java.lang.String to, java.lang.String dateType, java.lang.String query, Ice.Current __current) throws ServerError
Description copied from interface:_SearchOperationsBuilds a Lucene query and passes it to the Lucene backend.- Specified by:
byLuceneQueryBuilder_asyncin interface_SearchOperations- Parameters:
__cb- The callback object for the operation.fields- The fields (comma separated) to search in (name, description, ...)from- The date range from, in the form YYYYMMDD (may be null)to- The date range to (inclusive), in the form YYYYMMDD (may be null)dateType-DATE_TYPE_ACQUISITIONorDATE_TYPE_IMPORTquery- May not be null or of zero length.__current- The Current object for the invocation.- Throws:
ServerError
-
byGroupForTags_async
public void byGroupForTags_async(AMD_Search_byGroupForTags __cb, java.lang.String group, Ice.Current __current) throws ServerError
Description copied from interface:_SearchOperationsReturns transient (without ID)TagAnnotationinstances which represent all theTagAnnotationtags in the given group. The entities are transient and without ownership since multiple users can own the same tag. This method will override settings for types.- Specified by:
byGroupForTags_asyncin interface_SearchOperations- Parameters:
__cb- The callback object for the operation.group- Can be null or empty to return all tags.__current- The Current object for the invocation.- Throws:
ServerError
-
byHqlQuery_async
public void byHqlQuery_async(AMD_Search_byHqlQuery __cb, java.lang.String query, Parameters params, Ice.Current __current) throws ServerError
Description copied from interface:_SearchOperationsDelegates toomero.api.IQuery.findAllByQuerymethod to take advantage of theand,or, andnotmethods, or queue-semantics.- Specified by:
byHqlQuery_asyncin interface_SearchOperations- Parameters:
__cb- The callback object for the operation.query- Not null.__current- The Current object for the invocation.- Throws:
ServerError
-
bySomeMustNone_async
public void bySomeMustNone_async(AMD_Search_bySomeMustNone __cb, java.util.List<java.lang.String> some, java.util.List<java.lang.String> must, java.util.List<java.lang.String> none, Ice.Current __current) throws ServerError
Description copied from interface:_SearchOperationsBuilds a Lucene query and passes it tobyFullText.- Specified by:
bySomeMustNone_asyncin interface_SearchOperations- Parameters:
__cb- The callback object for the operation.some- Some (at least one) of these terms must be present in the document. May be null.must- All of these terms must be present in the document. May be null.none- None of these terms may be present in the document. May be null.__current- The Current object for the invocation.- Throws:
ServerError
-
byTagForGroups_async
public void byTagForGroups_async(AMD_Search_byTagForGroups __cb, java.lang.String tag, Ice.Current __current) throws ServerError
Description copied from interface:_SearchOperationsCreates a query which will return transient (without ID)TagAnnotationinstances which represent all theTagAnnotationtag groups which the given tag belongs to. The entities are transient and without ownership since multiple users can own the same tag group. This method will override settings for types.- Specified by:
byTagForGroups_asyncin interface_SearchOperations- Parameters:
__cb- The callback object for the operation.tag- Can be null or empty to return all groups.__current- The Current object for the invocation.- Throws:
ServerError
-
clearQueries_async
public void clearQueries_async(AMD_Search_clearQueries __cb, Ice.Current __current) throws ServerError
Description copied from interface:_SearchOperationsRemoves all active queries (leavingresetDefaultssettings alone), such thatactiveQuerieswill return 0.- Specified by:
clearQueries_asyncin interface_SearchOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
currentMetadataList_async
public void currentMetadataList_async(AMD_Search_currentMetadataList __cb, Ice.Current __current) throws ServerError
Description copied from interface:_SearchOperationsProvides access to the extra query information (for example Lucene score and boost values) for a single call toresults. This method may only be called once for any given call toresults.- Specified by:
currentMetadataList_asyncin interface_SearchOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
currentMetadata_async
public void currentMetadata_async(AMD_Search_currentMetadata __cb, Ice.Current __current) throws ServerError
Description copied from interface:_SearchOperationsProvides access to the extra query information (for example Lucene score and boost values) for a single call tonext. This method may only be called once for any given call tonext.- Specified by:
currentMetadata_asyncin interface_SearchOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
fetchAlso_async
public void fetchAlso_async(AMD_Search_fetchAlso __cb, java.util.List<java.lang.String> fetches, Ice.Current __current) throws ServerError
Description copied from interface:_SearchOperationsAdds a fetch clause for loading non-annotation fields of returned entities. Each fetch is a hibernate clause in dot notation.- Specified by:
fetchAlso_asyncin interface_SearchOperations- Parameters:
__cb- The callback object for the operation.fetches- Can be empty, which removes previous fetch setting.__current- The Current object for the invocation.- Throws:
ServerError
-
fetchAnnotations_async
public void fetchAnnotations_async(AMD_Search_fetchAnnotations __cb, java.util.List<java.lang.String> classes, Ice.Current __current) throws ServerError
Description copied from interface:_SearchOperationsQueries the database for allAnnotationannotations of the given types for all returned instances.- Specified by:
fetchAnnotations_asyncin interface_SearchOperations- Parameters:
__cb- The callback object for the operation.classes- Can be empty, which removes previous fetch setting.__current- The Current object for the invocation.- Throws:
ServerError
-
getBatchSize_async
public void getBatchSize_async(AMD_Search_getBatchSize __cb, Ice.Current __current) throws ServerError
Description copied from interface:_SearchOperationsReturns the current batch size. IfsetBatchSizehas not been called, the default value will be in effect.- Specified by:
getBatchSize_asyncin interface_SearchOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
hasNext_async
public void hasNext_async(AMD_Search_hasNext __cb, Ice.Current __current) throws ServerError
Description copied from interface:_SearchOperationsReturnstrueif another call tonextis valid. A call tonextmay throw an exception for another reason, however.- Specified by:
hasNext_asyncin interface_SearchOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
isAllowLeadingWildcard_async
public void isAllowLeadingWildcard_async(AMD_Search_isAllowLeadingWildcard __cb, Ice.Current __current) throws ServerError
Description copied from interface:_SearchOperationsReturns the current leading-wildcard setting. If false,byFullTextandbySomeMustNonewill throw anApiUsageException, since leading-wildcard searches are quite slow. UsesetAllowLeadingWildcardin order to permit this usage.- Specified by:
isAllowLeadingWildcard_asyncin interface_SearchOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
isCaseSensitive_async
public void isCaseSensitive_async(AMD_Search_isCaseSensitive __cb, Ice.Current __current) throws ServerError
Description copied from interface:_SearchOperationsReturns the current case sensitivity setting. IfsetCaseSensitivehas not been called, the default value will be in effect.- Specified by:
isCaseSensitive_asyncin interface_SearchOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
isMergedBatches_async
public void isMergedBatches_async(AMD_Search_isMergedBatches __cb, Ice.Current __current) throws ServerError
Description copied from interface:_SearchOperationsReturns the current merged-batches setting. IfsetMergedBatcheshas not been called, the default value will be in effect.- Specified by:
isMergedBatches_asyncin interface_SearchOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
isReturnUnloaded_async
public void isReturnUnloaded_async(AMD_Search_isReturnUnloaded __cb, Ice.Current __current) throws ServerError
Description copied from interface:_SearchOperationsReturns the current return-unloaded setting. If true, all returned entities will be unloaded. IfsetReturnUnloadedhas not been called, the default value will be in effect.- Specified by:
isReturnUnloaded_asyncin interface_SearchOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
isUseProjections_async
public void isUseProjections_async(AMD_Search_isUseProjections __cb, Ice.Current __current) throws ServerError
Description copied from interface:_SearchOperationsReturns the current use-projection setting. If true, the client must be careful with all results that are returned. SeesetUseProjectionsfor more. IfsetUseProjectionshas not been called, the default value will be in effect.- Specified by:
isUseProjections_asyncin interface_SearchOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
next_async
public void next_async(AMD_Search_next __cb, Ice.Current __current) throws ServerError
Description copied from interface:_SearchOperationsReturns the next entity from the current query. If the previous call returned the last entity from a given query, the first entity from the next query will be returned andactiveQueriesdecremented. Since this method only returns the entity itself, a single call tocurrentMetadatamay follow this call to gather the extra metadata which is returned in the map viaresults.- Specified by:
next_asyncin interface_SearchOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
notAnnotatedBy_async
public void notAnnotatedBy_async(AMD_Search_notAnnotatedBy __cb, Details d, Ice.Current __current) throws ServerError
Description copied from interface:_SearchOperationsRestricts entities by who has not annotated them with anAnnotationmatching the other filters. AsnotOwnedBy, theDetails.getOwner()andDetails.getGroup()information is combined with an AND condition.- Specified by:
notAnnotatedBy_asyncin interface_SearchOperations- Parameters:
__cb- The callback object for the operation.d- Can be null, in which case any previous restriction is removed.__current- The Current object for the invocation.- Throws:
ServerError
-
notOwnedBy_async
public void notOwnedBy_async(AMD_Search_notOwnedBy __cb, Details d, Ice.Current __current) throws ServerError
Description copied from interface:_SearchOperationsUses theDetails.getOwner()andDetails.getGroup()information to restrict the entities which will be returned. If both are non-null, the two restrictions are joined by an AND.- Specified by:
notOwnedBy_asyncin interface_SearchOperations- Parameters:
__cb- The callback object for the operation.d- Can be null, in which case the previous restriction is removed.__current- The Current object for the invocation.- Throws:
ServerError
-
not_async
public void not_async(AMD_Search_not __cb, Ice.Current __current) throws ServerError
Description copied from interface:_SearchOperationsApplies the next by* method to the previous by* method, so that a callhasNext,next, orresultssees only the intersection of the two calls. For example,
will return all the Images not annotated with TagAnnotation.service.onlyType(Image.class); service.byFullText("foo"); service.complement(); service.byAnnotatedWith(TagAnnotation.class);Calling this method overrides a previous setting of
ororand. If there is no active queries (i.e.activeQueries > 0), then anApiUsageExceptionwill be thrown.- Specified by:
not_asyncin interface_SearchOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
onlyAnnotatedBetween_async
public void onlyAnnotatedBetween_async(AMD_Search_onlyAnnotatedBetween __cb, RTime start, RTime stop, Ice.Current __current) throws ServerError
Description copied from interface:_SearchOperationsRestricts entities by the time in which any annotation (which matches the other filters) was added them. This matches theDetails.getCreationEvent()creation event of theAnnotation.- Specified by:
onlyAnnotatedBetween_asyncin interface_SearchOperations- Parameters:
__cb- The callback object for the operation.start- Can be null, i.e. interval open to negative infinity.stop- Can be null, i.e. interval open to positive infinity.__current- The Current object for the invocation.- Throws:
ServerError
-
onlyAnnotatedBy_async
public void onlyAnnotatedBy_async(AMD_Search_onlyAnnotatedBy __cb, Details d, Ice.Current __current) throws ServerError
Description copied from interface:_SearchOperationsRestricts entities by who has annotated them with anAnnotationmatching the other filters. AsonlyOwnedBy, theDetails.getOwner()andDetails.getGroup()information is combined with an AND condition.- Specified by:
onlyAnnotatedBy_asyncin interface_SearchOperations- Parameters:
__cb- The callback object for the operation.d- Can be null, in which case any previous restriction is removed.__current- The Current object for the invocation.- Throws:
ServerError
-
onlyAnnotatedWith_async
public void onlyAnnotatedWith_async(AMD_Search_onlyAnnotatedWith __cb, java.util.List<java.lang.String> classes, Ice.Current __current) throws ServerError
Description copied from interface:_SearchOperationsRestricts entities to having anAnnotationof all the given types. This is useful in combination with the other onlyAnnotated* methods to say, e.g., only annotated with a file by user X. By default, this value isnulland imposes no restriction. Passing an empty array implies an object that is not annotated at all. Note: If the semantics were OR, then a client would have to query each class individually, and compare all the various values, checking which ids are where. However, since this method defaults to AND, multiple calls (optionally withisMergedBatchesandisReturnUnloaded) and combine the results. Duplicate ids are still possible so a set of some form should be used to collect the results.- Specified by:
onlyAnnotatedWith_asyncin interface_SearchOperations- Parameters:
__cb- The callback object for the operation.classes- Can be empty, in which case restriction is removed.__current- The Current object for the invocation.- Throws:
ServerError
-
onlyCreatedBetween_async
public void onlyCreatedBetween_async(AMD_Search_onlyCreatedBetween __cb, RTime start, RTime stop, Ice.Current __current) throws ServerError
Description copied from interface:_SearchOperationsRestricts the time between which an entity may have been created.- Specified by:
onlyCreatedBetween_asyncin interface_SearchOperations- Parameters:
__cb- The callback object for the operation.start- Can be null, i.e. interval open to negative infinity.stop- Can be null, i.e. interval opens to positive infinity.__current- The Current object for the invocation.- Throws:
ServerError
-
onlyIds_async
public void onlyIds_async(AMD_Search_onlyIds __cb, java.util.List<java.lang.Long> ids, Ice.Current __current) throws ServerError
Description copied from interface:_SearchOperationsRestricts the set of ids which will be checked. This is useful for testing one of the given restrictions on a reduced set of objects.- Specified by:
onlyIds_asyncin interface_SearchOperations- Parameters:
__cb- The callback object for the operation.ids- Can be null, in which case the previous restriction is removed.__current- The Current object for the invocation.- Throws:
ServerError
-
onlyModifiedBetween_async
public void onlyModifiedBetween_async(AMD_Search_onlyModifiedBetween __cb, RTime start, RTime stop, Ice.Current __current) throws ServerError
Description copied from interface:_SearchOperationsRestricts the time between which an entity may have last been modified.- Specified by:
onlyModifiedBetween_asyncin interface_SearchOperations- Parameters:
__cb- The callback object for the operation.start- Can be null, i.e. interval open to negative infinity.stop- Can be null, i.e. interval open to positive infinity.__current- The Current object for the invocation.- Throws:
ServerError
-
onlyOwnedBy_async
public void onlyOwnedBy_async(AMD_Search_onlyOwnedBy __cb, Details d, Ice.Current __current) throws ServerError
Description copied from interface:_SearchOperationsUses theDetails.getOwner()andDetails.getGroup()information to restrict the entities which will be returned. If both are non-null, the two restrictions are joined by an AND.- Specified by:
onlyOwnedBy_asyncin interface_SearchOperations- Parameters:
__cb- The callback object for the operation.d- Can be null, in which case the previous restriction is removed.__current- The Current object for the invocation.- Throws:
ServerError
-
onlyType_async
public void onlyType_async(AMD_Search_onlyType __cb, java.lang.String klass, Ice.Current __current) throws ServerError
Description copied from interface:_SearchOperationsRestricts the search to a single type. All return values will match this type.- Specified by:
onlyType_asyncin interface_SearchOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
onlyTypes_async
public void onlyTypes_async(AMD_Search_onlyTypes __cb, java.util.List<java.lang.String> classes, Ice.Current __current) throws ServerError
Description copied from interface:_SearchOperationsRestricts searches to a set of types. The entities returned are guaranteed to be one of these types.- Specified by:
onlyTypes_asyncin interface_SearchOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
or_async
public void or_async(AMD_Search_or __cb, Ice.Current __current) throws ServerError
Description copied from interface:_SearchOperationsApplies the next by* method to the previous by* method, so that a callhasNext,nextorresultssees only the union of the two calls. For example,
will return both Images and Datasets together. Calling this method overrides a previous setting ofservice.onlyType(Image.class); service.byFullText("foo"); service.or(); service.onlyType(Dataset.class); service.byFullText("foo");andornot. If there is no active queries (i.e.activeQueries > 0), then anApiUsageExceptionwill be thrown.- Specified by:
or_asyncin interface_SearchOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
remove_async
public void remove_async(AMD_Search_remove __cb, Ice.Current __current) throws ServerError
Description copied from interface:_SearchOperationsUnsupported operation.- Specified by:
remove_asyncin interface_SearchOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
resetDefaults_async
public void resetDefaults_async(AMD_Search_resetDefaults __cb, Ice.Current __current) throws ServerError
Description copied from interface:_SearchOperationsResets all settings (non-query state) to the original default values, as if the instance had just be created.- Specified by:
resetDefaults_asyncin interface_SearchOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
results_async
public void results_async(AMD_Search_results __cb, Ice.Current __current) throws ServerError
Description copied from interface:_SearchOperationsReturns up togetBatchSizebatch size number of results along with the related query metadata. IfisMergedBatchesbatches are merged then the results from multiple queries may be returned together.- Specified by:
results_asyncin interface_SearchOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
setAllowLeadingWildcard_async
public void setAllowLeadingWildcard_async(AMD_Search_setAllowLeadingWildcard __cb, boolean allowLeadingWildcard, Ice.Current __current) throws ServerError
Description copied from interface:_SearchOperationsPermits full-text queries with a leading query if true.- Specified by:
setAllowLeadingWildcard_asyncin interface_SearchOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
setBatchSize_async
public void setBatchSize_async(AMD_Search_setBatchSize __cb, int size, Ice.Current __current) throws ServerError
Description copied from interface:_SearchOperationsSets the maximum number of results that will be returned by one call toresults. If batches are not merged, then results may often be less than the batch size. If batches are merged, then only the last call toresultscan be less than batch size. Note: some query types may not support batching at the query level, and all instances must then be loaded into memory simultaneously.- Specified by:
setBatchSize_asyncin interface_SearchOperations- Parameters:
__cb- The callback object for the operation.size- maximum number of results per call toresults__current- The Current object for the invocation.- Throws:
ServerError
-
setCaseSentivice_async
public void setCaseSentivice_async(AMD_Search_setCaseSentivice __cb, boolean caseSensitive, Ice.Current __current) throws ServerError
Description copied from interface:_SearchOperationsSets the case sensitivity on all queries where case-sensitivity is supported.- Specified by:
setCaseSentivice_asyncin interface_SearchOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
setCaseSensitive_async
public void setCaseSensitive_async(AMD_Search_setCaseSensitive __cb, boolean caseSensitive, Ice.Current __current) throws ServerError
Description copied from interface:_SearchOperationsSets the case sensitivity on all queries where case-sensitivity is supported.- Specified by:
setCaseSensitive_asyncin interface_SearchOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
setMergedBatches_async
public void setMergedBatches_async(AMD_Search_setMergedBatches __cb, boolean merge, Ice.Current __current) throws ServerError
Description copied from interface:_SearchOperationsSet whether or not results from two separate queries can be returned in the same call toresults.- Specified by:
setMergedBatches_asyncin interface_SearchOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
setReturnUnloaded_async
public void setReturnUnloaded_async(AMD_Search_setReturnUnloaded __cb, boolean returnUnloaded, Ice.Current __current) throws ServerError
Description copied from interface:_SearchOperationsDetermines if all results should be returned as unloaded objects. This is particularly useful for creating lists for further querying viaIQuery. This value overrides thesetUseProjectionssetting.- Specified by:
setReturnUnloaded_asyncin interface_SearchOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
setUseProjections_async
public void setUseProjections_async(AMD_Search_setUseProjections __cb, boolean useProjections, Ice.Current __current) throws ServerError
Description copied from interface:_SearchOperationsDetermines if Lucene queries should not hit the database. Instead all values which are stored in the index will be loaded into the object, which includes the id. However, the entity will not be marked unloaded and therefore it is especially important to not allow a projection-instance to be saved back to the server. This can result in DATA LOSS.- Specified by:
setUseProjections_asyncin interface_SearchOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
unordered_async
public void unordered_async(AMD_Search_unordered __cb, Ice.Current __current) throws ServerError
Description copied from interface:_SearchOperationsRemoves the current stack of order statements.- Specified by:
unordered_asyncin interface_SearchOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
bySimilarTerms_async
public void bySimilarTerms_async(AMD_Search_bySimilarTerms __cb, java.util.List<java.lang.String> terms, Ice.Current __current) throws ServerError
Description copied from interface:_SearchOperationsReturns transient (without ID)TextAnnotationinstances which represent terms which are similar to the given terms. For example, if the argument is cell, one return value might have as its textValue: cellular while another has cellularize. No filtering or fetching is performed.- Specified by:
bySimilarTerms_asyncin interface_SearchOperations- Parameters:
__cb- The callback object for the operation.terms- Cannot be empty.__current- The Current object for the invocation.- Throws:
ServerError
-
preClose
protected void preClose(Ice.Current current) throws java.lang.Throwable- Specified by:
preClosein classAbstractCloseableAmdServant- Throws:
java.lang.Throwable
-
postClose
protected void postClose(Ice.Current current)
Description copied from class:AbstractCloseableAmdServantShould not throw any exceptions which should be detected by clients since it is called in a finally block after the client thread has been released.- Specified by:
postClosein classAbstractCloseableAmdServant
-
-